Hi Guys,
I am trying to deploy a Rails app to my linux (Centos 6) VPS. I am
running jRuby 1.7.11 on it.
The problem is that when I try to start Puma I get this error:
The signal USR1 is in use by the JVM and will not work correctly on this
platform
[deprecated] I18n.enforce_available_locales will default to true in the
future. If you really want to skip validation of your locale you can set
I18n.enforce_available_locales = false to avoid this message.
- Listening on
unix:///home/user/apps/myapp/current/tmp/sockets/myapp.socket
NativeLibrary.java:87:inloadNativeLibraries': java.lang.UnsatisfiedLinkError: /lib/libc.so.6: wrong ELF class: ELFCLASS32 from NativeLibrary.java:70:in
getNativeLibraries’
from NativeLibrary.java:49:ingetSymbolAddress' from NativeLibrary.java:59:in
findSymbolAddress’
from AsmLibraryLoader.java:117:ingenerateInterfaceImpl' from AsmLibraryLoader.java:59:in
loadLibrary’
from NativeLibraryLoader.java:43:inloadLibrary' from LibraryLoader.java:228:in
load’
from Library.java:123:inloadLibrary' from Library.java:80:in
loadLibrary’
from Native.java:40:in<clinit>' from Native.java:60:in
libsocket’
from Native.java:68:insocket' from UnixServerSocketChannel.java:38:in
’
from UnixServerSocket.java:29:in<init>' from UnixServerSocketChannel.java:48:in
open’
from RubyUNIXSocket.java:243:ininit_unixsock' from RubyUNIXServer.java:69:in
initialize’
from RubyUNIXServer$INVOKER$i$1$0$initialize.gen:-1:incall' from JavaMethod.java:971:in
call’
from JavaMethod.java:677:incall' from CachingCallSite.java:286:in
cacheAndCall’
from CachingCallSite.java:81:incallBlock' from CachingCallSite.java:85:in
call’
from RubyClass.java:825:innewInstance' from RubyIO.java:852:in
newInstance’
from RubyIO$INVOKER$s$0$0$newInstance.gen:-1:incall' from DynamicMethod.java:210:in
call’
from DynamicMethod.java:206:incall' from CachingCallSite.java:326:in
cacheAndCall’
from CachingCallSite.java:170:incall' from CallOneArgNode.java:57:in
interpret’
from LocalAsgnNode.java:123:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from EnsureNode.java:96:in
interpret’
from BeginNode.java:83:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from ASTInterpreter.java:74:in
INTERPRET_METHOD’
from InterpretedMethod.java:225:incall' from DefaultMethod.java:214:in
call’
from CachingCallSite.java:346:incacheAndCall' from CachingCallSite.java:204:in
call’
from FCallTwoArgNode.java:38:ininterpret' from DAsgnNode.java:110:in
interpret’
from NewlineNode.java:105:ininterpret' from BlockNode.java:71:in
interpret’
from IfNode.java:118:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from WhenOneArgNode.java:36:in
whenSlowTest’
from WhenOneArgNode.java:46:inwhen' from CaseNode.java:133:in
interpret’
from NewlineNode.java:105:ininterpret' from BlockNode.java:71:in
interpret’
from ASTInterpreter.java:112:inINTERPRET_BLOCK' from Interpreted19Block.java:206:in
evalBlockBody’
from Interpreted19Block.java:157:inyield' from Block.java:142:in
yield’
from RubyArray.java:1606:ineachCommon' from RubyArray.java:1613:in
each’
from RubyArray$INVOKER$i$0$0$each.gen:-1:incall' from CachingCallSite.java:316:in
cacheAndCall’
from CachingCallSite.java:145:incallBlock' from CachingCallSite.java:154:in
callIter’
from CallNoArgBlockNode.java:64:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from ASTInterpreter.java:74:in
INTERPRET_METHOD’
from InterpretedMethod.java:225:incall' from DefaultMethod.java:214:in
call’
from CachingCallSite.java:346:incacheAndCall' from CachingCallSite.java:204:in
call’
from CallTwoArgNode.java:59:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from ASTInterpreter.java:74:in
INTERPRET_METHOD’
from InterpretedMethod.java:139:incall' from DefaultMethod.java:182:in
call’
from CachingCallSite.java:306:incacheAndCall' from CachingCallSite.java:136:in
call’
from VCallNode.java:88:ininterpret' from NewlineNode.java:105:in
interpret’
from IfNode.java:116:ininterpret' from NewlineNode.java:105:in
interpret’
from BlockNode.java:71:ininterpret' from IfNode.java:116:in
interpret’
from NewlineNode.java:105:ininterpret' from BlockNode.java:71:in
interpret’
from ASTInterpreter.java:74:inINTERPRET_METHOD' from InterpretedMethod.java:139:in
call’
from DefaultMethod.java:182:incall' from CachingCallSite.java:306:in
cacheAndCall’
from CachingCallSite.java:136:incall' from CallNoArgNode.java:60:in
interpret’
from NewlineNode.java:105:ininterpret' from BlockNode.java:71:in
interpret’
from ASTInterpreter.java:74:inINTERPRET_METHOD' from InterpretedMethod.java:139:in
call’
from DefaultMethod.java:182:incall' from CachingCallSite.java:306:in
cacheAndCall’
from CachingCallSite.java:136:incall' from CallNoArgNode.java:60:in
interpret’
from NewlineNode.java:105:ininterpret' from BlockNode.java:71:in
interpret’
from RootNode.java:129:ininterpret' from ASTInterpreter.java:121:in
INTERPRET_ROOT’
from Ruby.java:838:inrunInterpreter' from Ruby.java:2766:in
loadFile’
from ExternalScript.java:66:inload' from LoadService.java:359:in
load’
from RubyKernel.java:1109:inloadCommon' from RubyKernel.java:1101:in
load19’
from RubyKernel$INVOKER$s$0$1$load19.gen:-1:incall' from DynamicMethod.java:210:in
call’
from DynamicMethod.java:206:incall' from CachingCallSite.java:326:in
cacheAndCall’
from CachingCallSite.java:170:incall' from bin/puma:16:in
file’
from bin/puma:-1:inload' from Ruby.java:811:in
runScript’
from Ruby.java:804:inrunScript' from Ruby.java:673:in
runNormally’
from Ruby.java:522:inrunFromMain' from Main.java:395:in
doRunFromMain’
from Main.java:290:ininternalRun' from Main.java:217:in
run’
from Main.java:197:in `main’
! Error starting new process as daemon, exitting
Any idea why this happens? I’ve also tried to use bundle instate
—binstubs and start puma using bin/puma instead of bundle exec, but the
same problem occurs.
Best Wishes,
Matt