I'm trying to debug my rails application on rubymine 8.0.1 and but when I put a breakpoint it's interrupted with exit code -1.
I use a remote server with vagrant I set in rubymine debug config the host and the port that I use.
My workspace
ruby 2.2.1
rails 4.2
rubymine 8.0.1
vagrant
Gem file
actionmailer (4.2.5, 4.2.0)
actionpack (4.2.5, 4.2.0)
actionview (4.2.5, 4.2.0)
activejob (4.2.5, 4.2.0)
activemodel (4.2.5, 4.2.0)
activerecord (4.2.5, 4.2.0)
activesupport (4.2.5, 4.2.0)
arel (6.0.3)
aws-sdk (2.2.1)
aws-sdk-core (2.2.1)
aws-sdk-resources (2.2.1)
bcrypt (3.1.10)
bigdecimal (1.2.6)
builder (3.2.2)
bundler (1.8.4)
bundler-unload (1.0.2)
capistrano (3.4.0)
capistrano-bundler (1.1.4)
capistrano-rails (1.1.5)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
colorize (0.7.7)
debase (0.2.1)
debase-ruby_core_source (0.8.1)
erubis (2.7.0)
execjs (2.6.0)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jmespath (1.1.3)
json (1.8.3, 1.8.1)
libv8 (3.16.14.7 x86_64-linux)
loofah (2.0.3)
mail (2.6.3)
mime-types (2.99, 2.6.2)
mini_portile (0.6.2)
minitest (5.8.3, 5.4.3)
mock_redis (0.15.4)
multi_json (1.11.2)
net-scp (1.2.1)
net-ssh (3.0.1)
nokogiri (1.6.6.4)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.4)
rack-cors (0.4.0)
rack-test (0.6.3)
rails (4.2.5, 4.2.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.5, 4.2.0)
rake (10.4.2)
rdoc (4.2.0)
redis (2.1.1)
ref (2.0.0)
responders (2.1.0)
ruby-debug-ide (0.6.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
sdoc (0.4.1)
spring (1.4.4)
sprockets (3.4.1, 3.4.0)
sprockets-rails (2.3.3)
sqlite3 (1.3.11)
sshkit (1.7.1)
test-unit (3.0.8)
therubyracer (0.12.2)
thor (0.19.1)
thread_safe (0.3.5)
turbolinks (2.5.3)
tzinfo (1.2.2)
Error shows.
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 127.0.0.1:45202
^C/home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `sleep': Interrupt
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `wait'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:80:in `block in prepare_debugger'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `synchronize'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:79:in `prepare_debugger'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:85:in `debug_program'
from /home/vagrant/.rvm/gems/ruby-2.2.1/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code -1
I've just tried to add translation_center to my app but have come across numerous errors.
There is a line in the translation_center gem which uses a symbol as a value for an attribute when creating a new active record object. The line reads:
translation = self.translations.build(value: self.name.to_s.split('.').last.titleize, lang: :en, status: 'accepted')
notice the
lang: :en
part
this raises an error
PG::UndefinedColumn: ERROR: column translation_center_translations.en does not exist
if I replace this part with
lang: 'en'
then it works fine
This is just one issue, there are a few others that raise this kind of error all related to symbols in the queries. e.g now whenever I call i18n.t(:a_symbol) I get an error
I'm using Rails 3.2.19 and translation_center 1.7.0
I found this "When using Postgres along with the Geocoder gem, your queries cannot use symbolized keys" in this issue Receiving the error PG::UndefinedColumn: ERROR: column mymodels.distance does not exist when using Geocoder's near method
I am not using geocoder, but I wonder if any of my other gems could be causing this conflict.
Here is my list of gems
bundle show
Gems included by the bundle:
RedCloth (4.2.9)
ZenTest (4.5.0)
actionmailer (3.2.19)
actionpack (3.2.19)
activemodel (3.2.19)
activerecord (3.2.19)
activeresource (3.2.19)
activesupport (3.2.19)
acts_as_votable (0.10.0)
amq-protocol (1.9.2)
ancestry (2.1.0)
arel (3.0.3)
audited (3.0.0)
audited-activerecord (3.0.0)
bcrypt (3.1.7)
bcrypt-ruby (3.1.5)
better_errors (1.1.0)
binding_of_caller (0.7.2)
bootstrap-sass (3.0.3.0)
bootstrap-wysihtml5-rails (0.3.1.24)
builder (3.0.4)
bullet (4.11.3)
bundler (1.6.0)
bunny (1.0.7)
capistrano (2.15.5)
capistrano-ext (1.2.1)
celluloid (0.15.2)
chronic (0.10.2)
cocoon (1.1.2)
coderay (1.1.0)
coercible (1.0.0)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.7.0)
country-select (1.1.1)
date_validator (0.7.0)
debug_inspector (0.0.2)
declarative_authorization (0.5.7)
descendants_tracker (0.0.4)
devise (3.0.4)
devise_invitable (1.2.1)
diff-lcs (1.2.5)
erubis (2.7.0)
ethon (0.7.1)
exception_notification_rails3 (1.2.0)
excon (0.38.0)
execjs (2.2.1)
factory_girl (4.4.0)
factory_girl_rails (4.4.1)
ffi (1.9.3)
fog (1.22.1)
fog-brightbox (0.1.1)
fog-core (1.22.0)
fog-json (1.0.0)
font-awesome-rails (4.1.0.0)
formatador (0.2.5)
formtastic (2.2.1)
gon (5.1.0)
guard (2.6.1)
guard-rspec (4.2.10)
haml (4.0.5)
haml-rails (0.4)
haml_scaffold (1.1.0)
highline (1.6.21)
hike (1.2.3)
hodel_3000_compliant_logger (0.1.1)
i18n (0.6.11)
inflecto (0.0.2)
ipaddress (0.8.0)
journey (1.0.4)
jqtree-rails (0.1.8.1)
jquery-datatables-rails (1.12.2)
jquery-rails (3.1.1)
jquery-ui-rails (4.2.1)
json (1.8.1)
libv8 (3.16.14.3)
listen (2.7.9)
lodash-rails (2.4.0)
lumberjack (1.0.9)
mail (2.5.4)
metaclass (0.0.4)
method_source (0.8.2)
mime-types (1.25.1)
mini_portile (0.6.0)
mocha (1.1.0)
multi_json (1.10.1)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (2.9.1)
net-ssh-gateway (1.2.0)
newrelic_rpm (3.9.0.229)
nifty-generators (0.4.6)
nokogiri (1.6.3.rc3)
oink (0.10.1)
oj (2.9.9)
orm_adapter (0.5.0)
pg (0.17.1)
polyamorous (0.6.4)
polyglot (0.3.5)
pry (0.9.12.6)
pry-doc (0.6.0)
pry-nav (0.2.3)
pry-rails (0.3.2)
puma (2.8.2)
rabl (0.10.1)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (3.2.19)
railties (3.2.19)
rake (10.3.2)
rb-fsevent (0.9.4)
rb-inotify (0.9.5)
rdoc (3.12.2)
ref (1.0.5)
request_store (1.0.6)
routing-filter (0.3.1)
rspec (3.0.0)
rspec-core (3.0.2)
rspec-expectations (3.0.2)
rspec-mocks (3.0.2)
rspec-rails (3.0.1)
rspec-support (3.0.2)
rvm-capistrano (1.5.3)
sass (3.3.9)
sass-rails (3.2.6)
slop (3.5.0)
spork (0.9.2)
spring (1.1.3)
spring-commands-rspec (1.0.2)
sprockets (2.2.2)
squeel (1.1.1)
state_machine (1.2.0)
symmetric-encryption (3.6.0)
syntax (1.2.0)
syslog-logger (1.6.8)
therubyracer (0.12.1)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
timers (1.1.0)
translation_center (1.7.0)
treetop (1.4.15)
typhoeus (0.6.9)
tzinfo (0.3.39)
uglifier (2.5.1)
uniform_notifier (1.6.2)
warden (1.2.3)
webrat (0.7.3)
whenever (0.9.2)
will_paginate (3.0.7)
ya2yaml (0.31)
yard (0.8.7.4)
This issue is because of the sqeel gem. It does not allow using symbols for values in queries.
Therefore, it cannot be used with the translation_center gem.
remove from gemfile and bundle install
I've tried what was recommended here: Passenger: internal server error , but found no references to STDOUT in config.ru
I'm on ruby-2.0.0-p247 and passenger (4.0.17)
Console output after attempting to load page:
[ 2013-09-16 14:34:07.3648 4197/b72beb40 Pool2/Spawner.h:738 ]: [App 4435 stdout]
Connecting to database specified by database.yml
[ 2013-09-16 14:35:37.4570 4197/b72beb40 Pool2/Implementation.cpp:849 ]: Could not spawn process for group /media/sf_John/product#default: An error occurred while starting up the preloader: it did not write a startup response in time.
in 'void Passenger::ApplicationPool2::SmartSpawner::throwPreloaderSpawnException(const std::string&, Passenger::SpawnException::ErrorKind, boost::shared_ptr&, const boost::shared_ptr&)' (SmartSpawner.h:150)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:558)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:206)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner::spawn(const Passenger::ApplicationPool2::Options&)' (SmartSpawner.h:744)
in 'void Passenger::ApplicationPool2::Group::spawnThreadRealMain(const Passenger::ApplicationPool2::SpawnerPtr&, const Passenger::ApplicationPool2::Options&, unsigned int)' (Implementation.cpp:782)
[ 2013-09-16 14:35:37.4578 4197/b60fdb40 agents/HelperAgent/RequestHandler.h:1952 ]: [Client 20] Cannot checkout session. An error occurred while starting up the preloader: it did not write a startup response in time.
Gem list:
actionmailer (3.2.14, 3.2.13)
actionpack (3.2.14, 3.2.13)
active_hash (1.0.1, 0.9.14)
activemodel (3.2.14, 3.2.13)
activerecord (3.2.14, 3.2.13)
activeresource (3.2.14, 3.2.13)
activesupport (3.2.14, 3.2.13)
acts_as_paranoid (0.4.2)
addressable (2.3.5, 2.3.4)
american_date (1.1.0)
arbre (1.0.1)
arel (3.0.2)
attr_required (0.0.5)
bcrypt-ruby (3.1.2, 3.1.1, 3.0.1)
better_errors (0.9.0)
binding_of_caller (0.7.2)
bourbon (3.1.8)
builder (3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
cancan (1.6.10)
capybara (2.1.0)
childprocess (0.3.9)
chronic (0.10.0, 0.9.1)
chunky_png (1.2.8)
cliver (0.2.1)
coderay (1.0.9)
coffee-rails (3.2.2)
coffee-rails-source-maps (1.3.6, 1.3.5)
coffee-script (2.2.0)
coffee-script-source (1.6.3, 1.6.2)
compass (0.12.2)
compass-rails (1.0.3)
crack (0.4.1, 0.4.0)
daemon_controller (1.1.4)
daemons (1.1.9)
dalli (2.6.4)
database_cleaner (1.1.1, 0.9.1)
debug_inspector (0.0.2)
devise (3.0.3, 3.0.2, 3.0.1, 2.2.4)
devise_oauth2_providable (1.1.2)
diff-lcs (1.2.4)
dotenv (0.8.0)
dragonfly (0.9.15)
draper (1.2.1)
erubis (2.7.0)
ethon (0.6.1, 0.6.0, 0.5.12)
eventmachine (1.0.3)
excon (0.25.3, 0.23.0)
execjs (2.0.1, 1.4.0)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faraday (0.8.8)
faraday_middleware (0.9.0)
fastercsv (1.5.5)
ffaker (1.18.0, 1.16.1)
ffi (1.9.0)
fog (1.15.0, 1.14.0, 1.12.1)
foreman (0.63.0)
formatador (0.2.4)
formtastic (2.2.1)
forward (0.3.2)
fssm (0.2.10)
fuubar (1.2.1, 1.1.1)
gherkin (2.12.1, 2.12.0)
guard (1.8.2, 1.8.1)
guard-rspec (3.0.2)
guard-spork (1.5.1, 1.5.0)
haml (4.0.3)
haml-rails (0.4)
has_scope (0.6.0.rc, 0.5.1)
highline (1.6.19)
hike (1.2.3)
httpclient (2.3.4.1, 2.3.3)
i18n (0.6.5, 0.6.4, 0.6.1)
inherited_resources (1.4.1, 1.4.0)
journey (1.0.4)
jquery-rails (2.3.0)
jquery-ui-rails (4.0.4, 4.0.3)
json (1.7.7)
jwt (0.1.8)
kaminari (0.14.1)
kgio (2.8.0)
kramdown (1.1.0, 1.0.2)
launchy (2.3.0)
listen (1.3.0, 1.2.2)
lumberjack (1.0.4)
mail (2.5.4)
mail_view (1.0.3)
meta_search (1.1.3)
method_source (0.8.2, 0.8.1)
mime-types (1.24, 1.23)
mini_magick (3.6.0)
mini_portile (0.5.1)
mock_redis (0.9.0, 0.8.2, 0.7.0)
modernizr-rails (2.6.2.3)
modular-scale (1.0.6)
mono_logger (1.1.0)
multi_json (1.7.9, 1.7.8, 1.7.7)
multipart-post (1.2.0)
mysql2 (0.3.13, 0.3.11)
net-scp (1.1.2, 1.1.1)
net-ssh (2.6.8, 2.6.7)
newrelic_rpm (3.6.6.147, 3.6.3.111)
nokogiri (1.6.0, 1.5.10)
oily_png (1.1.0)
orm_adapter (0.4.0)
paper_trail (2.7.2)
passenger (4.0.17)
polyamorous (0.5.0)
polyglot (0.3.3)
pry (0.9.12.2)
quiet_assets (1.0.2)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-oauth2 (0.11.0)
rack-protection (1.5.0)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.14, 3.2.13)
railties (3.2.14, 3.2.13)
raindrops (0.11.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.1, 0.9.0)
rb-kqueue (0.2.0)
rdoc (3.12.2)
redcarpet (3.0.0, 2.3.0)
redis (3.0.4)
redis-namespace (1.3.1, 1.3.0)
request_store (1.0.5)
responders (1.0.0.rc, 0.9.3)
resque (1.24.1)
resque_mailer (2.2.4)
rspec (2.14.1)
rspec-core (2.14.5, 2.14.4, 2.14.3)
rspec-expectations (2.14.2, 2.14.0)
rspec-instafail (0.2.4)
rspec-mocks (2.14.3, 2.14.2, 2.14.1)
rspec-rails (2.14.0)
ruby-hmac (0.4.0)
ruby-progressbar (1.2.0, 1.1.1)
rubygems-bundler (1.2.2)
rvm (1.11.3.8)
safe_yaml (0.9.5, 0.9.4, 0.9.3)
sass (3.2.10, 3.2.9)
sass-rails (3.2.6)
sassy-math (1.5)
shoulda-matchers (2.3.0, 2.2.0)
simple_form (2.1.0)
simplecov (0.7.1)
simplecov-html (0.7.1)
sinatra (1.4.3)
slop (3.4.6, 3.4.5)
spork-rails (3.2.1)
sprockets (2.2.2)
stamp (0.5.0)
state_machine (1.2.0)
subexec (0.2.3)
thin (1.5.1)
thor (0.18.1)
tilt (1.4.1)
travis-artifacts (0.1.0)
treetop (1.4.15, 1.4.14)
turnip (1.1.0)
twilio-ruby (3.10.1, 3.9.0)
typhoeus (0.6.5, 0.6.4, 0.6.3)
tzinfo (0.3.37)
uglifier (2.2.0, 2.1.2, 2.1.1)
unicorn (4.6.3, 4.6.2)
valid_attribute (1.3.1)
vcr (2.5.0)
vegas (0.1.11)
verbs (2.1.3)
warden (1.2.3, 1.2.1)
webmock (1.11.0)
websocket-driver (0.2.3, 0.2.1)
whenever (0.8.4, 0.8.2)
xpath (2.0.0)
For me, it works
cd <usr name>
rails new myapp
sudo bundle install
mkdir /home/<user name>/myapp
chmod 701 /home/myapp
chmod -R 705 /home/<user name>/myapp
chgrp -R www-data /home/<user_name>/myapp
chown -R <user_name> /home/<user_name>
For some reason my deployed rails app is now giving me a:
Haml::Error in Explore#index
Filter "coffee" is not defined.
...after updating to latest version rails and latest haml 4.
Locally, I do not get this error. Haml version 4 should support the coffee filter. All other filters seem to work fine.
Here's the bundle list on the deploy server:
actionmailer (3.2.12)
actionpack (3.2.12)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (3.2.12)
addressable (2.3.2)
anjlab-bootstrap-rails (2.3.0.0)
arel (3.0.2)
aws-sdk (1.3.9)
bcrypt-ruby (3.0.1)
builder (3.0.4)
bundler (1.2.1)
capistrano (2.14.2)
cocaine (0.4.2)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
devise (2.2.3)
erubis (2.7.0)
execjs (1.4.0)
faraday (0.8.5)
font-awesome-sass-rails (3.0.2.1)
haml (4.0.0)
haml-rails (0.4)
hashie (1.2.0)
highline (1.6.15)
hike (1.2.1)
httparty (0.10.2)
httpauth (0.2.0)
i18n (0.6.1)
journey (1.0.4)
jquery-fileupload-rails (0.4.0)
jquery-rails (2.2.1)
json (1.7.7)
jwt (0.1.5)
kgio (2.8.0)
koala (1.6.0)
mail (2.4.4)
mime-types (1.21)
multi_json (1.6.1)
multi_xml (0.5.3)
multipart-post (1.1.5)
mysql2 (0.3.11)
net-scp (1.1.0)
net-sftp (2.1.1)
net-ssh (2.6.5)
net-ssh-gateway (1.2.0)
nokogiri (1.5.6)
oauth2 (0.8.0)
omniauth (1.1.3)
omniauth-facebook (1.4.1)
omniauth-oauth2 (1.1.1)
orm_adapter (0.4.0)
paperclip (3.4.0)
paperclip-remote (0.5.0)
polyamorous (0.5.0)
polyglot (0.3.3)
rabl (0.8.0)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
railties (3.2.12)
raindrops (0.10.0)
rake (10.0.3)
rdoc (3.12.1)
right_aws (3.0.4)
right_http_connection (1.3.0)
rmagick (2.13.2)
rocket_tag (0.5.6)
sass (3.2.5)
sass-rails (3.2.6)
sprockets (2.2.2)
squeel (1.0.16)
sugar-rails (1.3.7)
thor (0.17.0)
tilt (1.3.3)
treetop (1.4.12)
twitter-text (1.5.0)
tzinfo (0.3.35)
uglifier (1.3.0)
unicorn (4.6.0)
uuidtools (2.1.3)
warden (1.2.1)
will_paginate (3.0.4)
Simple coffee filter:
%html
...
:coffee
alert "hello"
First, make sure you're using an execjs compatible runtime in production. If you're deploying to Window or Mac OS, or you have node.js installed in production, you should be fine.
Then, be sure to restart the application in production after adding any gems. It seems that the coffee filter would only be loaded after restarting the server in production (see https://github.com/paulnicholson/coffee-filter/issues/6).
When I run the command
$rails generate scaffold User name:string email:string
/home/user/.rvm/gems/ruby-1.9.2-p290#rails3tutorial/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
I get the above error...
I installed sqlite but it is version 2.8.17
my gem list returns this:
actionmailer (3.1.0.rc8)
actionpack (3.1.0.rc8)
activemodel (3.1.0.rc8)
activerecord (3.1.0.rc8)
activeresource (3.1.0.rc8)
activesupport (3.1.0.rc8)
addressable (2.2.6)
ansi (1.3.0)
arel (2.2.1)
bcrypt-ruby (3.0.0)
builder (3.0.0)
bundler (1.0.18)
coffee-rails (3.1.0.rc.7)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
erubis (2.7.0)
execjs (1.2.4)
heroku (2.6.1)
hike (1.2.1)
i18n (0.6.0)
jquery-rails (1.0.13)
launchy (2.0.5)
mail (2.3.0)
mime-types (1.16)
multi_json (1.0.3)
polyglot (0.3.2)
rack (1.3.2)
rack-cache (1.0.3)
rack-mount (0.8.3, 0.8.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.0.rc8)
railties (3.1.0.rc8)
rake (0.9.2 ruby)
rdoc (3.9.4)
rest-client (1.6.7)
rubyzip (0.9.4)
sass (3.1.7)
sass-rails (3.1.0, 3.1.0.rc.7)
sprockets (2.0.0, 2.0.0.beta.15)
sqlite3 (1.3.4, 1.3.3)
term-ansicolor (1.0.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
turn (0.8.2)
tzinfo (0.3.29)
uglifier (1.0.2)
any ideas ? :/