litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.16k stars 189 forks source link

OpenLiteSpeed 1.8.2 ocspcache permission denied #421

Open mrwindowsx opened 2 weeks ago

mrwindowsx commented 2 weeks ago

After reboot, I got this ERROR when successfully updating to OLS 1.8.2 on Almalinux 9 machine: ERROR [2401] HttpFetch[1]::failed to create file /dev/shm/ols//ocspcache/Rf02866171c5d94bb6228d4c865048f2d.tmp: Permission denied. The default permission of ocspcache folder is set to nobody:nobody. What is the correct permission? I also see double // in the errorlog URL ocspcache.

litespeedtech commented 2 weeks ago

The permission problem is with /dev/shm/ols/. Please run lsup.sh again, it should have been fixed.

nirkons commented 1 week ago

The permission problem is with /dev/shm/ols/. Please run lsup.sh again, it should have been fixed.

unfortunately, still unresolved for me

2024-09-18 17:42:02.080106 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! -- | -- | -- 2024-09-18 17:42:02.024352 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:02.024352 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:02.024477 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:01.088000 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:01.022090 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:01.022090 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:01.022163 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:00.085757 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:00.020008 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2!
mrwindowsx commented 1 week ago

The permission problem is with /dev/shm/ols/. Please run lsup.sh again, it should have been fixed.

unfortunately, still unresolved for me

2024-09-18 17:42:02.080106 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! -- | -- | -- 2024-09-18 17:42:02.024352 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:02.024352 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:02.024477 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:01.088000 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:01.022090 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:01.022090 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:01.022163 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:00.085757 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:00.020008 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2!

I also had this problem before, but it was solved when I rebooted my machine, you can try it.

nirkons commented 1 week ago

The permission problem is with /dev/shm/ols/. Please run lsup.sh again, it should have been fixed.

unfortunately, still unresolved for me 2024-09-18 17:42:02.080106 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! -- | -- | -- 2024-09-18 17:42:02.024352 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:02.024352 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:02.024477 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:01.088000 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:01.022090 | ERROR | [1705483] Failed to open the real time report: /dev/shm/ols/status/.rtreport.3! 2024-09-18 17:42:01.022090 | ERROR | [1705484] Failed to open the real time report: /dev/shm/ols/status/.rtreport.4! 2024-09-18 17:42:01.022163 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2! 2024-09-18 17:42:00.085757 | ERROR | [1705481] Failed to open the real time report: /dev/shm/ols/status/.rtreport! 2024-09-18 17:42:00.020008 | ERROR | [1705482] Failed to open the real time report: /dev/shm/ols/status/.rtreport.2!

I also had this problem before, but it was solved when I rebooted my machine, you can try it.

I just tried it but same result unfortunately (reverting to 1.8.1 works fine), thanks for the suggestion