Błąd podczas uploadu video

Hej

Dostaje taki błąd podczas uploadu video na serwerze.W localhoście wszystko działa.

There was an error processing the thumbnail for fffab4b718ae52756ff1c92392d1220620171022-14288-1kun8o

http://iv.pl/images/19736388605717102886.png

Rzuć okiem na logi na serwerze, może brakuje Ci jakiejś biblioteki systemowej

To są logi z nginxa, może ktoś rzuci okiem i znajdzie coś, czego ja nie widzę?

 [ N 2017-10-22 19:12:53.3777 14062/T4 age/Cor/CoreMain.cpp:994 ]: Checking whether to disconnect long-running connections for process 14288, application /home/medianarodowe/public (development)
2017/10/22 19:24:21 [info] 630#630: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:72

[ N 2017-10-22 19:24:21.3661 14062/T8 age/Cor/CoreMain.cpp:589 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ N 2017-10-22 19:24:21.3661 14062/T1 age/Cor/CoreMain.cpp:1080 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ N 2017-10-22 19:24:21.3662 14062/T1 age/Cor/CoreMain.cpp:994 ]: Checking whether to disconnect long-running connections for process 31414, application /home/medianarodowe/public (development)
[ N 2017-10-22 19:24:21.3665 14062/Tn Ser/Server.h:886 ]: [ApiServer] Freed 0 spare client objects
[ N 2017-10-22 19:24:21.3666 14062/Tn Ser/Server.h:531 ]: [ApiServer] Shutdown finished
[ N 2017-10-22 19:24:21.3674 14062/Tb Ser/Server.h:886 ]: [ServerThr.3] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3674 14062/T8 Ser/Server.h:886 ]: [ServerThr.1] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3674 14062/Tb Ser/Server.h:531 ]: [ServerThr.3] Shutdown finished
[ N 2017-10-22 19:24:21.3675 14062/T8 Ser/Server.h:531 ]: [ServerThr.1] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/Td Ser/Server.h:886 ]: [ServerThr.4] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/T9 Ser/Server.h:886 ]: [ServerThr.2] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/Th Ser/Server.h:886 ]: [ServerThr.6] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/Tj Ser/Server.h:886 ]: [ServerThr.7] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/Td Ser/Server.h:531 ]: [ServerThr.4] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/Th Ser/Server.h:531 ]: [ServerThr.6] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/T9 Ser/Server.h:531 ]: [ServerThr.2] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/Tl Ser/Server.h:886 ]: [ServerThr.8] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/Tj Ser/Server.h:531 ]: [ServerThr.7] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/Tf Ser/Server.h:886 ]: [ServerThr.5] Freed 128 spare client objects
[ N 2017-10-22 19:24:21.3676 14062/Tl Ser/Server.h:531 ]: [ServerThr.8] Shutdown finished
[ N 2017-10-22 19:24:21.3676 14062/Tf Ser/Server.h:531 ]: [ServerThr.5] Shutdown finished
[ N 2017-10-22 19:24:21.3677 14062/T1 age/Cor/CoreMain.cpp:994 ]: Checking whether to disconnect long-running connections for process 31414, application /home/medianarodowe/public (development)
[ N 2017-10-22 19:24:21.6721 14062/T1 age/Cor/CoreMain.cpp:1150 ]: Passenger core shutdown finished
[ N 2017-10-22 19:24:22.4031 641/T1 age/Wat/WatchdogMain.cpp:1267 ]: Starting Passenger watchdog...
[ N 2017-10-22 19:24:22.4108 644/T1 age/Cor/CoreMain.cpp:1165 ]: Starting Passenger core...
[ N 2017-10-22 19:24:22.4111 644/T1 age/Cor/CoreMain.cpp:249 ]: Passenger core running in multi-application mode.
[ N 2017-10-22 19:24:22.4217 644/T1 age/Cor/CoreMain.cpp:905 ]: Passenger core online, PID 644
[ N 2017-10-22 19:24:24.5926 644/T5 age/Cor/SecurityUpdateChecker.h:374 ]: Security update check: no update found (next check in 24 hours)
App 699 stdout:
App 699 stderr:  [passenger_native_support.so] trying to compile for the current user (nobody) and Ruby interpreter...
App 699 stderr:      (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable)
App 699 stderr:      Warning: compilation didn't succeed. To learn why, read this file:
App 699 stderr:      /tmp/passenger_native_support-1v6c5nj.log
App 699 stderr:  [passenger_native_support.so] finding downloads for the current Ruby interpreter...
App 699 stderr:
App 699 stderr:      (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable)
App 699 stderr:      # tar xzf rubyext-ruby-2.4.1-x86_64-linux.tar.gz
App 699 stderr:      # rm -f rubyext-ruby-2.4.1-x86_64-linux.tar.gz
App 699 stderr:      Checking whether downloaded binary is usable...
App 699 stderr:      # /usr/local/rvm/gems/ruby-2.4.1/wrappers/ruby -I. test.rb
App 699 stderr:      Binary is usable.
App 699 stderr:      # current user is: nobody
App 699 stderr:      # mkdir -p /nonexistent/.passenger/native_support/5.1.11/ruby-2.4.1-x86_64-linux
App 699 stderr:      Encountered permission error, but no more directories to try. Giving up.
App 699 stderr:      -------------------------------
App 699 stderr:  [passenger_native_support.so] will not be used (can't compile or download)
App 699 stderr:   --> Passenger will still operate normally.
App 741 stdout:
App 757 stdout:
App 771 stdout:
[ N 2017-10-22 19:29:30.5457 644/T4 age/Cor/CoreMain.cpp:994 ]: Checking whether to disconnect long-running connections for process 757, application /home/medianarodowe/public (development)
[ N 2017-10-22 19:29:30.6113 644/T4 age/Cor/CoreMain.cpp:994 ]: Checking whether to disconnect long-running connections for process 771, application /home/medianarodowe/public (development)
[ W 2017-10-22 19:34:45.7680 644/Tf Ser/Server.h:1063 ]: [Client 5-2] Disconnecting client with error: error reading request body: Unexpected end-of-stream (errno=-1004)
App 699 stderr: Bad request content body

Wygląda jakbyś miał limit na czas requestu albo jego wielkość, spróbuj z mniejszym plikiem < 2MB

600kb video też nie przechodzi ;/

albo tak jak mówił @michalg jest problem z timeoutem - ogólnie z limitami (nginx/passenger)

albo nie ma obsługi contentu mp4 - mimetype mp4 nie jest rozpoznawany przez nginx i/lub passenger

3cia opcja (tu już trochę odpłynąłem :blush: bo logi tego nie sygnalizują) konfiguracja jest dobra, ale user używany na produkcji nie ma uprawnień by zapisać plik mp4

Mam rozwiązanie

$ sudo apt-get update
$ sudo apt-get install imagemagick --fix-missing

2 Likes