Comments (10)
In the file lib/capistrano/tasks/symfony.rake
line 53
Shouldn't we replace this
if test "[ -d #{symfony_cache_path} ]"
execute :rm, "-rf", symfony_cache_path
with this
if test "[ -d #{symfony_cache_path} ]"
execute :rm, "-rf", fetch(:symfony_cache_path)
?
from symfony.
i think, it doesn't load DSL libs of capistrano/symfony
from symfony.
We managed to 'solve' the issue. While we were changing stuff, we continuously tested with the --dry-run
option. An that's exactly the issue; it looks like that this module breaks in dry-run-mode, the normal run-mode is working like a charm!
from symfony.
I have exactly the same problem here!
Capistrano v3.4, capistrano/symfony v1.0.0.rc2
** Execute symfony:create_cache_dir
cap aborted!
NameError: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x007fb6a54d93e8>
/Library/Ruby/Gems/2.0.0/gems/capistrano-symfony-1.0.0.rc2/lib/capistrano/tasks/symfony.rake:52:in `block (4 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:85:in `within'
/Library/Ruby/Gems/2.0.0/gems/capistrano-symfony-1.0.0.rc2/lib/capistrano/tasks/symfony.rake:51:in `block (3 levels) in <top (required)>'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:29:in `instance_exec'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/backends/abstract.rb:29:in `run'
/Library/Ruby/Gems/2.0.0/gems/sshkit-1.11.1/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => symfony:create_cache_dir
The deploy has failed with an error: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x007fb6a54d93e8>
** Invoke deploy:failed (first_time)
** Execute deploy:failed
@folliked have you found how to fix this?
from symfony.
Did anybody find a workaround? @folliked seems to be right since the offending variable is defined in the DSL folder but I don't have enough experience with Capistrano to figure out how to include it manually and even google does not yield anythiong useful.
from symfony.
Same problem for me and "symfony_console" is not defined too ...
Ruby 2.3.3, Capistrano 3.7.1 and capistrano/symfony 1.0.0-rc2
Could you look @peterjmit ? I don't have enough experience with Ruby and Capistrano ...
from symfony.
Having recreated my Vagrant box after running for a year, I now have this error too.
(Backtrace restricted to imported tasks)
cap aborted!
NameError: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x000000015ad308>
Tasks: TOP => symfony:create_cache_dir
(See full trace by running task with --trace)
The deploy has failed with an error: undefined local variable or method `symfony_cache_path' for #<SSHKit::Backend::Printer:0x000000015ad308>
from symfony.
Same issue here, both undefined local variable or method `symfony_cache_path' and 'symfony_console'. It seems that the DSL file is parsed (putting gibberish in it results in an parse error), but not actually used/available.
- Ruby 2.5.1
- Capistrano 3.10.2
- capistrano/symfony 1.0.0-rc3
Nobody found a workaround yet? I don't have a lot of experience with Ruby in order to do proper debugging.
from symfony.
Closing this due inactivity. Feel free to ping me if this is still an issue.
from symfony.
I ran into this issue today. Trying to use --dry-run
seems broken, which is sad as it prevents proper debugging.
from symfony.
Related Issues (20)
- Error task symfony:clear_controllers HOT 2
- NoMethodError: undefined method `symfony_console' HOT 2
- Website unreachable during deploy HOT 3
- Error: `execute' should be wrapped in an `on'
- Task for running (and enforcing passed) tests HOT 3
- v1.0 tasks don't run on Symfony 2.8 HOT 1
- Cache warmup SSH commands being executed multiple times per host HOT 2
- Capistrano roles ignored for symfony_command HOT 1
- Symfony messenger stop workers HOT 1
- Capfile: cannot load such file -- capistrano/symfony HOT 1
- Make :symfony_console_path executable HOT 2
- Task symfony:set_permissions invokes task deploy:set_permissions:* for each server in "release_roles :all"
- Release a stable release? HOT 8
- Symfony 4 directory structure HOT 15
- Symfony Flex?
- Cache warmup error HOT 1
- Uploads linked dirs
- symfony_deploy_roles in place of symfony_roles HOT 2
- exclude folders before deploy from local !?
- PHP Errors not displaying in the log HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony.