spree / deployment_service_puppet Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
when modifying spree extensions, cap deploy or foreman:restart does not apply changes.
After each deploy, I always have to manually do
cap foreman:stop
cap foreman:start
Not necessarily part of this repo, but very strongly related so I figured I'd ask the question here, for reference.
Was it a conscious decision to not precompile deface overrides in the default deploy.rb script offered by the spree deployment services ?
If not, should we add it ?
Getting this when I run the script on a clean Ubuntu 12.04 sys. My guess is bluepill moved its repo, would fix if I knew how... Please advise.
info: Applying configuration version '1368440121'
err: /Stage[main]/Ruby/Package[bundler]/ensure: change from absent to present failed: Execution of '/usr/local/bin/gem install --include-dependencies --no-rdoc --no-ri bundler' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
err: /Stage[main]/Ruby/Package[backup]/ensure: change from absent to present failed: Execution of '/usr/local/bin/gem install --include-dependencies --no-rdoc --no-ri backup' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
err: /Stage[main]/Ruby/Package[bluepill]/ensure: change from absent to present failed: Execution of '/usr/local/bin/gem install --include-dependencies --no-rdoc --no-ri bluepill' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
err: /Stage[main]/Ruby/Package[foreman]/ensure: change from absent to present failed: Execution of '/usr/local/bin/gem install --include-dependencies --no-rdoc --no-ri foreman' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
err: /Stage[main]/Ruby/Package[net-ssh]/ensure: change from absent to 2.1.4 failed: Could not update: Execution of '/usr/local/bin/gem install -v 2.1.4 --include-dependencies --no-rdoc --no-ri net-ssh' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
at /etc/puppet/modules/ruby/manifests/init.pp:115
err: /Stage[main]/Ruby/Package[net-scp]/ensure: change from absent to 1.0.4 failed: Could not update: Execution of '/usr/local/bin/gem install -v 1.0.4 --include-dependencies --no-rdoc --no-ri net-scp' returned 1: ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies
at /etc/puppet/modules/ruby/manifests/init.pp:121
notice: /Stage[main]/Common/Service[bluepill]: Dependency Package[bluepill] has failures: true
warning: /Stage[main]/Common/Service[bluepill]: Skipping because of failed dependencies
notice: Finished catalog run in 6.56 seconds
I have a custom checkout step:
# order_decorator.rb
Spree::Order.class_eval do
insert_checkout_step :company, :before => :address
end
# _company.html.erb
<%= button_tag "Go to next step", :type => "submit", :class => 'btn btn-success' %>
Works fine in development. Works fine in production, until a sudo bluepill restart
is run. After a restart is run the site continues to load fine but I can't advance past this custom checkout step.
I'm stumped on this one: not sure what could be causing the issue. I messed around with spree.pill with no luck. Has anyone encountered this problem?
Some posts I found while trying to solve the issue:
Hello,
My app sometime does not restart properly between deploys...
When this is occuring, I manually login on the server and do :
sudo bluepill spree restart
bluepill.log : https://gist.github.com/sbounmy/4744603
The pid monitored by bluepill is not correct and bluepill tries to kill the wrong pid or somehow...
So far, to restart properly unicorn I have to :
sudo bluepill spree stop
sudo bluepill spree start
I am still investigating but any help is appreciated : )
Currently it replaces the entire file.
We should swap to using:
Tried on a fresh Ubuntu 12.04, Spree 1.1, Ruby 2.0. any help here is much appreciated:
info: Retrieving plugin
info: Caching certificate_revocation_list for ca
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client Could not retrieve file metadata for puppet://puppet/plugins: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client Could not retrieve file metadata for puppet://puppet/plugins: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client Could not retrieve file metadata for puppet://puppet/plugins: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
Would be great if the Capistrano recipe was in this repo so the community could make improvements (deface precompile for example).
dbserver
Hi
I'm having this problem with upstart /etc/init/bluepill.conf
The log trace of /etc/init/bluepill.conf :
Failed to start bluepill:
NoMethodError undefined method
EPERM' for Errno:Module /usr/local/lib/ruby/gems/1.9.1/gems/bluepill-0.0.62/lib/bluepill/application.rb:123:in
rescue in start_server'
/usr/local/lib/ruby/gems/1.9.1/gems/bluepill-0.0.62/lib/bluepill/application.rb:123:in start_server' /usr/local/lib/ruby/gems/1.9.1/gems/bluepill-0.0.62/lib/bluepill/application.rb:44:in
load'
/usr/local/lib/ruby/gems/1.9.1/gems/bluepill-0.0.62/lib/bluepill/dsl.rb:10:in `application'
Dedicating it to latest Ubuntu LTS version to ease maintenance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.