LibrePhotos / librephotos

A self-hosted open source photo management service. This is the repository of the backend.
MIT License
7.01k stars 309 forks source link

Cannot login, gunicorn[xx] trap invalid opcode #75

Closed jaykumar2001 closed 3 years ago

jaykumar2001 commented 3 years ago

Deployed using Docker Compose on a x86_64 Ubuntu 20.04.1 LTS system (5.4.0-58-generic).

Docker Server Version: 20.10.1

Librephotos deploys without any errors

librephotos-db is up-to-date
librephotos-redis is up-to-date
librephotos-backend is up-to-date
librephotos-frontend is up-to-date
librephotos-proxy is up-to-date

Dmesg out logs following, other than that, no errors in the application logs

[23250.331125] traps: gunicorn[319934] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]
[23251.048550] traps: gunicorn[319939] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]
[23251.513296] traps: gunicorn[319964] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]
[23252.211993] traps: gunicorn[319969] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]
[23252.675719] traps: gunicorn[319974] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]
[23253.383585] traps: gunicorn[319987] trap invalid opcode ip:7fd207d3a817 sp:7fff262843c0 error:0 in _dlib_pybind11.cpython-38-x86_64-linux-gnu.so[7fd2074b8000+91e000]

I can access the Librephotos Frontend on port 3000, I see the login screen, but nothing happens when I enter the User/Pass and click on "Log In". Page doesn't even refreshes, User/pass fields remain populated with the entries I made.

Here are the logs from librephotos-proxy

librephotos-proxy    | 192.168.2.118 - - [01/Jan/2021:19:36:35 +0000] "POST /api/auth/token/obtain/ HTTP/1.1" 499 0 "http://jkumar-server.local.lan:3000/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36"

EDIT: Adding my cpuinfo

processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 18
model       : 1
model name  : AMD A6-3650 APU with Radeon(tm) HD Graphics
stepping    : 0
microcode   : 0x3000027
cpu MHz     : 2595.092
cache size  : 1024 KB
physical id : 0
siblings    : 4
core id     : 0
cpu cores   : 4
apicid      : 0
initial apicid  : 0
fpu     : yes
fpu_exception   : yes
cpuid level : 6
wp      : yes
flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall arat npt lbrv svm_lock nrip_save pausefilter
bugs        : fxsave_leak sysret_ss_attrs null_seg spectre_v1 spectre_v2
bogomips    : 5190.18
TLB size    : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
robertcontois commented 3 years ago

Can you share the output from the librephotos-backend container?

jkumar2001 commented 3 years ago

Pulled the latest release, and it seems to have resolved the issue.