June 15th, 2012, 10:45 AM
ExexJS::Runtime Error in Users#index and Encoding::InvalidByteSequenceError Cygwin
Below is what the page tells me at http://localhost:3000/ I am trying to figure out how to fix this but I don't know why it's occuring in the first place any ideas?
So far I tried updating gems I still have the same problem however.
Sometimes comes up as
Encoding::InvalidByteSequenceError in Users#index
Frequently comes up as ExecJS::RuntimeError in Users#index
Showing /home/Doug/Projects/demo_app/app/views/layouts/application.html.erb where line #6 raised:
incomplete "\n" on UTF-16LE
this occures after I've run the following commands in this order and then try to view my rails app on my local machine for testing purposes.
2. 3. 4. I type in localhost:3000/users
rails generate scaffold User name:string email:string
the error log on the server localhost:3000.
[2012-06-15 11:19:44] INFO WEBrick 1.3.1
[2012-06-15 11:19:44] INFO ruby 1.9.3 (2012-04-20) [i386-cygwin]
[2012-06-15 11:19:44] INFO WEBrick::HTTPServer#start: pid=1632 port=3000
0 [main] ruby 5332 child_info_fork::abort: address space needed by 'md5.so' (0x460000) is already occupied
Started GET "/users/" for 127.0.0.1 at 2012-06-15 11:30:44 -0400
Processing by UsersController#index as HTML
User Load (0.0ms) SELECT "users".* FROM "users"
Rendered users/index.html.erb within layouts/application (62.4ms)
Completed 500 Internal Server Error in 2917ms
ActionView::Template::Error (incomplete "\n" on UTF-16LE
5: <%= stylesheet_link_tag "application", :media => "all" %>
7: <%= csrf_meta_tags %>
Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.0ms)
Rendered /home/Doug/.rvm/gems/ruby-1.9.3-p194/gems/actionpack-3.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (31.2ms)
Last edited by TaronDcross; June 18th, 2012 at 08:45 PM.
Reason: To make question more succintly written for easier search engines for the next person with this problem on cygwin
June 18th, 2012, 08:40 PM
Many thanks to James on stackoverflow for the compilable code version of node.js for cygwin.
tar xvfz node-v0.4.12.tar.gz