Seit gestern bekomme ich folgenden Error beim Aufruf jeder Seite meines aktuellen Rails-Projektes:
Errno::EMULTIHOP in MyBlaController#index
EMULTIHOP (Reserved)
Da ich im Netz weder direkte Hilfe noch Leidensgenossen mit dem gleichen Problem finden konnte möchte ich meine Erfahrungen hier kurz niederschreiben. Der Stack trace selbst weisst auf den Datenbank connect hin was mir aber von Anfang an seltsam vorkam. Debuggen ergab das die zugehörige Exception tief im Kern von Ruby geschmissen wird (jenseits von .process). Der Urspung des Fehlers liegt irgendwo om System und wird von Ruby nur übersetzt (error.c) leider ohne weiterführende Informationen. EMULTIHOP kommt aus der Linux Welt und steht für:
EMULTIHOP
Components of path require hopping to multiple remote machines and file system type does not allow it.
Da ich unter Ubuntu arbeite passt das ganz gut, bringt mich aber auch nicht näher an die Lösung des Problems. So blieb nur stures Try&Error. Das Ergebniss: Die genutzte Ruby-Platform war auf Version 1.1 gestellt (keine Ahnung wieso…), ein Wechsel auf 1.85 lies den Fehler verschwinden. Das seltsame ist das ich mich nicht erinnern kann auf 1.1 gewechselt zu haben. Vieleicht hat Netbeans sich ja verschluckt?! So oder so, das Problem ist gelöst wenn auch nicht völlig verstanden, ich bitte deshalb um Feedback.
blog.janus.cx - NoJs OnlineBlog
on Jul 23rd, 2008
@ 15:04:
Error with RoR project in NetBeans: Errno::EMULTIHOP IN…
Wednesday, July the 23rd 2008 14:55
Being back to more serious development after toying around with tomcat/JSP/Servlets the previous days, after updating my NetBeans to 6.1, RoR threw the following error at me when trying to access a new view in a c…
Adam Davies
on Sep 10th, 2008
@ 01:24:
You were likely using JRuby that came with Netbeans.
JRuby 1,1 is compatible with standard Ruby 1.8.6 and usually presents no problems (unless you access C code).
Not sure about why you got EMULTIHOP yet – I’ve just got it myself and hence your post…
mathias
on Sep 10th, 2008
@ 01:31:
yes true, that is what happend, but I never switched manually to JRuby1.1 that’s the thing that made me so confused …
santosh
on Okt 6th, 2008
@ 23:50:
Hi..
I got the same problem. I didnt find how to solve it.. Can any one help me out please..
Thanks,
santosh
mathias
on Okt 7th, 2008
@ 00:00:
Hi Santosh,
sorry my post was in German, but have a look which Ruby Version you are using. I got the error cause my IDE switched back to 1.1 So have a look there …
Tsuyoshi
on Okt 8th, 2008
@ 16:27:
Hi mathias,
I had a same error in Aptana with Jruby1.1.4 & MySQL. I resolved the issue by adding host endtry with 127.0.0.1(server address) when prepared new project. Jruby&Aptana can’t generate database.yml as the same way as the normal ruby does. In my case, db:migrate works with the change of database.yml although I can’t view the table migrated through data navigator. Therefore I deleted the project and created new project and succesfully generatedand accessed.