cap -S stage=staging deploy:setup to setup capistrano on the server" I get following error:(base) Mac:alaveteli miroslav$ cap -S stage=staging deploy:setup
invalid option: -S
![]() | Miroslav Schlossberg Code for Croatia |
(base) Mac:alaveteli miroslav$ bundle exec cap -S stage=staging deploy:setup
Could not find rake-12.0.0 in any of the sources
Run `bundle install` to install missing gems.
(base) Mac:alaveteli miroslav$ bundle install
Fetching gem metadata from https://rubygems.org/.............
Fetching https://github.com/heapsource/active_model_otp.git
Fetching https://github.com/technoweenie/acts_as_versioned.git
Fetching https://github.com/mysociety/ruby-msg.git
NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed on or after 2018-12-01.
Gem::Specification#has_rdoc= called from /Users/miroslav/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/bundler/gems/ruby-msg-fae72e547299/ruby-msg.gemspec:24.
Fetching https://github.com/mysociety/strip_attributes.git
rails (4.2.9) has dependency bundler (>= 1.3.0, < 2.0), which is unsatisfied by the current bundler version 2.0.2, so the dependency is being ignored
Fetching rake 12.0.0
Installing rake 12.0.0
Fetching i18n 0.8.6
Installing i18n 0.8.6
Fetching minitest 5.10.3
Installing minitest 5.10.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.3
Installing tzinfo 1.2.3
Fetching activesupport 4.2.9
Installing activesupport 4.2.9
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing mini_portile2 2.1.0
Fetching nokogiri 1.6.8.1
Installing nokogiri 1.6.8.1 with native extensions
Fetching rails-deprecated_sanitizer 1.0.3
Installing rails-deprecated_sanitizer 1.0.3
Fetching rails-dom-testing 1.0.8
Installing rails-dom-testing 1.0.8
Fetching loofah 2.0.3
Installing loofah 2.0.3
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching actionview 4.2.9
Installing actionview 4.2.9
Fetching rack 1.6.8
Installing rack 1.6.8
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching actionpack 4.2.9
Installing actionpack 4.2.9
Fetching globalid 0.4.0
Installing globalid 0.4.0
Fetching activejob 4.2.9
Installing activejob 4.2.9
Fetching mime-types 2.99.3
Installing mime-types 2.99.3
Fetching mail 2.6.6
Installing mail 2.6.6
Fetching actionmailer 4.2.9
Installing actionmailer 4.2.9
Fetching activemodel 4.2.9
Installing activemodel 4.2.9
Fetching rotp 3.3.0
Installing rotp 3.3.0
Using active_model_otp 1.2.0 from https://github.com/heapsource/active_model_otp.git (at 55d93a3@55d93a3)
Fetching arel 6.0.4
Installing arel 6.0.4
Fetching activerecord 4.2.9
Installing activerecord 4.2.9
Using acts_as_versioned 0.6.0 from https://github.com/technoweenie/acts_as_versioned.git (at 63b1fc8@63b1fc8)
Fetching addressable 2.4.0
Installing addressable 2.4.0
Fetching flipper 0.10.2
Installing flipper 0.10.2
Fetching flipper-active_record 0.10.2
Installing flipper-active_record 0.10.2
Using bundler 2.0.2
Fetching thor 0.19.4
Installing thor 0.19.4
Fetching railties 4.2.9
Installing railties 4.2.9
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching sprockets-rails 3.2.0
Installing sprockets-rails 3.2.0
Fetching rails 4.2.9
Installing rails 4.2.9
Using alaveteli_features 0.0.1 from source at `gems/alaveteli_features`
Fetching annotate 2.7.2
Installing annotate 2.7.2
Fetching debug_inspector 0.0.3
Installing debug_inspector 0.0.3 with native extensions
Fetching binding_of_caller 0.7.2
Installing binding_of_caller 0.7.2 with native extensions
Fetching sass 3.4.21
Installing sass 3.4.21
Fetching bootstrap-sass 2.3.2.2
Installing bootstrap-sass 2.3.2.2
Fetching uniform_notifier 1.10.0
Installing uniform_notifier 1.10.0
Fetching bullet 5.5.1
Installing bullet 5.5.1
Fetching cancancan 1.12.0
Installing cancancan 1.12.0
Fetching highline 1.7.8
Installing highline 1.7.8
Fetching net-ssh 2.9.4
Installing net-ssh 2.9.4
Fetching net-scp 1.2.1
Installing net-scp 1.2.1
Fetching net-sftp 2.1.2
Installing net-sftp 2.1.2
Fetching net-ssh-gateway 1.3.0
Installing net-ssh-gateway 1.3.0
Fetching capistrano 2.15.9
Installing capistrano 2.15.9
Fetching mini_mime 0.1.3
Installing mini_mime 0.1.3
Fetching xpath 2.1.0
Installing xpath 2.1.0
Fetching capybara 2.15.1
Installing capybara 2.15.1
Fetching charlock_holmes 0.7.5
Installing charlock_holmes 0.7.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
![]() | Miroslav Schlossberg Code for Croatia |
--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/a5b8e869-4fc6-4355-a6fd-2088ce322126%40googlegroups.com.
I have tried and 0.7.6 can be installed.
Is it safe that I update this gem version from 0.7.5 to 0.7.6?
If yes, what is the safest way to do it? Just by updating Gemfile (or Gemfile.lock)?
Also I see it should be using version 0.7.0: https://github.com/mysociety/alaveteli/blob/release/0.30.0.0/Gemfile#L90
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAH3C4kvT3BYY9%3DheLc6SeSvx2t0-Bkd9ymBaF%2BVBpTX7gNt%2B1w%40mail.gmail.com.
(base) Mac:alaveteli miroslav$ bundle exec cap -S stage=production deploy:setup
* executing "cat /var/www/imamopravoznati.org/alaveteli/shared/rbenv-version 2>/dev/null || true"
servers: ["xxx.xxx.xxx.xxx"]
/Users/miroslav/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-ssh-2.9.4/lib/net/ssh/transport/session.rb:67: warning: Object#timeout is deprecated, use Timeout.timeout instead.
/Users/miroslav/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-ssh-2.9.4/lib/net/ssh/transport/session.rb:84: warning: Object#timeout is deprecated, use Timeout.timeout instead.
/Users/miroslav/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-ssh-2.9.4/lib/net/ssh/transport/cipher_factory.rb:98: warning: constant OpenSSL::Cipher::Cipher is deprecated
connection failed for: xxx.xxx.xxx.xxx (NoMethodError: undefined method `p=' for #<OpenSSL::PKey::DH:0x00007fcc55038a58>
Did you mean? p)
Tried with newer net-ssh but it will insist specifically to use 2.9.4:
(base) Mac:alaveteli miroslav$ bundle exec cap -S stage=production deploy:setup
Could not find net-ssh-2.9.4 in any of the sources
Run `bundle install` to install missing gems.
![]() | Miroslav Schlossberg Code for Croatia |
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAD%3D4AyhmzZQ60TAfD85%2BjXX7Ckp_9bvDMrC2X-SEesZXm7vxzQ%40mail.gmail.com.
(base) Mac:alaveteli miroslav$ bundle exec cap -S stage=production deploy:setup
* executing "cat /var/www/imamopravoznati.org/alaveteli/shared/rbenv-version 2>/dev/null || true"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 390ms
* 2019-10-01 21:23:05 executing `deploy:setup'
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli /var/www/imamopravoznati.org/alaveteli/releases /var/www/imamopravoznati.org/alaveteli/shared /var/www/imamopravoznati.org/alaveteli/shared/system /var/www/imamopravoznati.org/alaveteli/shared/log /var/www/imamopravoznati.org/alaveteli/shared/pids"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 79ms
* executing "chmod g+w /var/www/imamopravoznati.org/alaveteli /var/www/imamopravoznati.org/alaveteli/releases /var/www/imamopravoznati.org/alaveteli/shared /var/www/imamopravoznati.org/alaveteli/shared/system /var/www/imamopravoznati.org/alaveteli/shared/log /var/www/imamopravoznati.org/alaveteli/shared/pids"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 81ms
triggering after callbacks for `deploy:setup'
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/files"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 89ms
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/cache"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 114ms
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/log"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 76ms
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/tmp/pids"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 78ms
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/xapiandbs"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 76ms
* executing "mkdir -p /var/www/imamopravoznati.org/alaveteli/shared/themes"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
command finished in 77ms
![]() | Miroslav Schlossberg Code for Croatia |
*** [err :: xxx.xxx.xxx.xxx] I, [2019-10-02T19:02:45.040221 #88422] INFO -- : Writing /var/www/imamopravoznati.org/alaveteli/releases/20191002185052/public/assets/favicon-3e06c6d6cb34168fb0342ef3186f733b2c7d1c44422d1136013ad3cca6c4694f.ico
** transaction: commit
* 2019-10-02 21:07:29 executing `deploy:restart'
* executing "/etc/init.d/alaveteli restart"
servers: ["xxx.xxx.xxx.xxx"]
[xxx.xxx.xxx.xxx] executing command
*** [err :: xxx.xxx.xxx.xxx] su: must be run from a terminal
command finished in 77ms
failed: "sh -c '/etc/init.d/alaveteli restart'" on xxx.xxx.xxx.xxx
![]() | Miroslav Schlossberg Code for Croatia |
--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/a504a149-bd53-42ac-aa33-6ac02bd5b5e8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-dev+unsubscribe@googlegroups.com.