Ruby on rails Ruby on Rails,Apache,在生产中尝试上载图像时出错500

Ruby on rails Ruby on Rails,Apache,在生产中尝试上载图像时出错500,ruby-on-rails,apache,passenger,dragonfly-gem,Ruby On Rails,Apache,Passenger,Dragonfly Gem,我有一个ubuntu服务器,带有apache(2.4.7)+passenger(5.0.0.beta2)+rails(4.2.0)+dragonfly(1.0.7) 该网站运行正常,但当我上传图像时,服务器发送500错误。有时允许我上传一张图像,第二张发送500,有时在我尝试上传第三张图像时出现错误。(图像大小约为100KB和700KB) 在production.log中没有错误。但是在apache error.log中,我有很多信息,但没有什么可以帮助我,也许你们中的一个人可以理解日志: [

我有一个ubuntu服务器,带有apache(2.4.7)+passenger(5.0.0.beta2)+rails(4.2.0)+dragonfly(1.0.7)

该网站运行正常,但当我上传图像时,服务器发送500错误。有时允许我上传一张图像,第二张发送500,有时在我尝试上传第三张图像时出现错误。(图像大小约为100KB和700KB)

在production.log中没有错误。但是在apache error.log中,我有很多信息,但没有什么可以帮助我,也许你们中的一个人可以理解日志:

[ pid=25856, timestamp=1422360930 ] Process aborted! signo=SIGSEGV(11), reason=SEGV_MAPERR, si_addr=0x10, randomSeed=1422360655
[ pid=25856 ] Crash log dumped to /var/tmp/passenger-crash-log.1422360930
[ pid=25856 ] Date, uname and ulimits:
Tue Jan 27 07:15:30 EST 2015
Linux 3.13.0-042stab094.8 #1 SMP Tue Dec 16 20:36:56 MSK 2014 x86_64 x86_64
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        10240
coredump(blocks)     0
memory(kbytes)       unlimited
locked memory(kbytes) 64
process              1029939
nofiles              8192
vmemory(kbytes)      unlimited
locks                unlimited
[ pid=25856 ] Phusion Passenger version: 5.0.0.beta2
[ pid=25856 ] libc backtrace available!
--------------------------------------
[ pid=25856 ] Backtrace with 23 frames:
Using backtrace sanitizer.
PassengerAgent server[0x4d08d3]
PassengerAgent server[0x4d0185]
PassengerAgent server[0x4d1483]
PassengerAgent server[0x4d213d]
/lib/x86_64-linux-gnu/libpthread.so.0(?? at ??:0; +0x10340) [0x7fb9f915c340]
PassengerAgent server[0x5013de]
PassengerAgent server[0x5050b9]
PassengerAgent server[0x6858fb]
PassengerAgent server[0x6878db]
PassengerAgent server[0x539c40]
PassengerAgent server[0x68111e]
PassengerAgent server[0x681ff8]
PassengerAgent server[0x539bc2]
PassengerAgent server[0x5c68c9]
PassengerAgent server[0x5c16ed]
PassengerAgent server[0x5bc69a]
PassengerAgent server[0x64f027]
PassengerAgent server[0x4cec46]
PassengerAgent server[0x4ce831]
PassengerAgent server[0x4ce01c]
PassengerAgent server[0x6226b9]
/lib/x86_64-linux-gnu/libpthread.so.0(?? at ??:0; +0x8182) [0x7fb9f9154182]
/lib/x86_64-linux-gnu/libc.so.6(?? at ??:0; clone+0x6d) [0x7fb9f845900d]
--------------------------------------
[ pid=25856 ] Dumping additional diagnostical information...
--------------------------------------
### Backtraces
Thread 'Main thread' (0x7fb9f99ef7c0, LWP 25856):
     in 'void waitForExitEvent()' (Main.cpp:778)
     in 'void mainLoop()' (Main.cpp:671)
     in 'int runServer()' (Main.cpp:893)

Thread 'Pool analytics collector' (0x7fb9f99ed700, LWP 25856):
     in 'static void
Passenger::ApplicationPool2::Pool::collectAnalytics(Passenger::ApplicationPool2::PoolPtr)' (Pool.h:829)

     Thread 'Pool garbage collector' (0x7fb9f99ac700, LWP 25856):
     in 'static void
Passenger::ApplicationPool2::Pool::garbageCollect(Passenger::ApplicationPool2::PoolPtr)' (Pool.h:684)

Thread 'Main event loop: thread 1' (0x7fb9f2a6c700, LWP 25856):
 (empty)
文件还在继续

另外,在error.log的末尾,我看到一个:

 No locals.[ 2015-01-27 07:15:34.0702 12438/7f20597d2700 agents/Watchdog/AgentWatcher.cpp:96 ]: Phusion Passenger helper agent (pid=25856) crashed with signal SIGSEGV, restarting it...

[Tue Jan 27 07:15:34.077773 2015] [core:error] [pid 12483:tid 140022065903360]  [client 200.71.213.222:50038] End of script output before headers: profiles, referer: http://www.xxxxxxxxxxx.com/profiles/username-something/avatar/edit
[ 2015-01-27 07:15:34.0849 26021/7f56396e37c0 agents/HelperAgent/Main.cpp:881 ]: Starting PassengerAgent server...
[ 2015-01-27 07:15:34.0852 26021/7f56396e37c0 agents/HelperAgent/Main.cpp:232 ]: PassengerAgent server running in multi-application mode.
[ 2015-01-27 07:15:34.0965 26021/7f56396e37c0 agents/HelperAgent/Main.cpp:635 ]: PassengerAgent server online, PID 26021
App 26054 stdout: 
App 26071 stdout:

我如何尝试解决此问题?非常感谢您的帮助

好吧,现在我降级到乘客4.0.58并重新加载/重新启动所有内容。我在网站的不同部分做了一些上传文件的测试,一切都正常。目前,这是一个很好的解决方案