Hi,
I’ve just created a Rails application using the following commands:
$ rails new rails_test -d mysql
$ cd rails_test/
$ rake db:create
$ rails g scaffold user name:string age:integer
$ rake db:migrate
When I start the webserver and try to access http://localhost:3000/users I got the following error on WEBrick’s output:
ExecJS::RuntimeError: axconfig: unable to open axports file /etc/ax25/axports (No such file or directory)
(in /home/gustavo/Projetos/rails_test/app/assets/javascripts/users.js.coffee)
Served asset /application.js - 500 Internal Server Error
Any ideas?
Thanks in advance,
Gustavo
I’m using Rails 3.1.rc4 with ruby 1.9.2, and I just made a new app to test this out. I ran your exact commands, except I used the standard sqlite3 development db. I did not get any errors - the scaffold worked fine, and so does creating users.
Maybe it’s an SQL development database issue - e.g. is your db properly created/configured and everything?
I’m using Rails 3.1.rc4 with ruby 1.9.2, and I just made a new app to test this out. I ran your exact commands, except I used the standard sqlite3 development db. I did not get any errors - the scaffold worked fine, and so does creating users.
Maybe it’s an SQL development database issue - e.g. is your db properly created/configured and everything?
David, everything is OK in my database. I’m suspecting that ExecJS uses some native extension that is not working very well on my system.
Note that: this error only happens in production mode.