Open vipxsc opened 1 month ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
We'd need to see what's in your app logs that's causing the 500. I cannot reproduce this locally or on the demo.
i do restart httpd and create maintenances,the httpd log show: [Mon Aug 05 09:21:42.235572 2024] [mpm_prefork:notice] [pid 37733] AH00170: caught SIGWINCH, shutting down gracefully [Mon Aug 05 09:21:43.333135 2024] [suexec:notice] [pid 118362] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Aug 05 09:21:43.481957 2024] [:error] [pid 118362] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name. [Mon Aug 05 09:21:43.532089 2024] [lbmethod_heartbeat:notice] [pid 118362] AH02282: No slotmem from mod_heartmonitor [Mon Aug 05 09:21:43.636512 2024] [mpm_prefork:notice] [pid 118362] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_auth_gssapi/1.5.1 mod_nss/1.0.14 NSS/3.28.4 mod_wsgi/3.4 Python/2.7.5 PHP/8.1.29 configured -- resuming normal operations [Mon Aug 05 09:21:43.636566 2024] [core:notice] [pid 118362] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Mon Aug 05 09:21:43.743843 2024] [:error] [pid 118369] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name. [Mon Aug 05 09:21:43.747832 2024] [:error] [pid 118367] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.comas virtual name. [Mon Aug 05 09:21:43.789098 2024] [:error] [pid 118366] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name. [Mon Aug 05 09:21:43.793980 2024] [:error] [pid 118371] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name. [Mon Aug 05 09:21:43.815811 2024] [:error] [pid 118368] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name. [Mon Aug 05 09:23:08.820565 2024] [:error] [pid 118395] Misconfiguration of certificate's CN and virtual name. The certificate CN has localhost4.localdomain4. We expected my.com as virtual name.
The apache log doesn't seem to be any error about 500.
the apache access log show: 172.31.x.x - - [05/Aug/2024:09:31:44 +0800] "GET /hardware/maintenances/create?asset_id=250 HTTP/1.1" 200 57780 "http://my.com/hardware/250" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" 172.31.x.x - - [05/Aug/2024:09:31:44 +0800] "GET /uploads/avatars/default.png HTTP/1.1" 404 1568 "http://my.com/hardware/maintenances/create?asset_id=250" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" 172.31.x.x - - [05/Aug/2024:09:31:47 +0800] "GET /api/v1/suppliers/selectlist?page=1 HTTP/1.1" 200 344 "http://my.com/hardware/maintenances/create?asset_id=250" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" 172.31.x.x - - [05/Aug/2024:09:31:59 +0800] "POST /hardware/maintenances HTTP/1.1" 500 6609 "http://my.com/hardware/maintenances/create?asset_id=250" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
172.31.x.x - - [05/Aug/2024:09:37:48 +0800] "GET /admin HTTP/1.1" 200 66065 "http://my.com/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" 172.31.x.x - - [05/Aug/2024:09:37:48 +0800] "GET /uploads/avatars/default.png HTTP/1.1" 404 1568 "http://my.com/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36" 172.31.x.x - - [05/Aug/2024:09:37:57 +0800] "GET /admin/purge HTTP/1.1" 500 6609 "http://my.com/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
"GET /uploads/avatars/default.png HTTP/1.1" 404 Does this have any impact ?
We need app logs, not apache logs. storage/logs/laravel.log
Debug mode
Describe the bug
172.16.x.x - - [01/Aug/2024:10:59:43 +0800] "GET /hardware/maintenances/create?asset_id=1 HTTP/1.1" 200 48084 "http://my.com/hardware/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:10:59:43 +0800] "GET /uploads/avatars/default.png HTTP/1.1" 404 1568 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:11:00:09 +0800] "GET /api/v1/suppliers/selectlist?page=1 HTTP/1.1" 200 344 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:11:00:17 +0800] "POST /hardware/maintenances HTTP/1.1" 500 6609 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Reproduction steps
1. 2. 3. ... 172.16.x.x - - [01/Aug/2024:10:59:43 +0800] "GET /hardware/maintenances/create?asset_id=1 HTTP/1.1" 200 48084 "http://my.com/hardware/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:10:59:43 +0800] "GET /uploads/avatars/default.png HTTP/1.1" 404 1568 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:11:00:09 +0800] "GET /api/v1/suppliers/selectlist?page=1 HTTP/1.1" 200 344 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0" 172.16.x.x - - [01/Aug/2024:11:00:17 +0800] "POST /hardware/maintenances HTTP/1.1" 500 6609 "http://my.com/hardware/maintenances/create?asset_id=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
Expected behavior
create maintenances show " 500 Server Error"
Screenshots
Snipe-IT Version
v7.0.8
Operating System
centos7.9
Web Server
apache
PHP Version
8.1.29
Operating System
Windows
Browser
Google
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response