ubuntuusers.de

Move Squid Swap Directory Ubuntu Server 20.04 - Permissions for access?

Status: Ungelöst | Ubuntu-Version: Server 20.04 (Focal Fossa)
Antworten |

dirk.weihrauch

Anmeldungsdatum:
13. März 2023

Beiträge: Zähle...

Hallo allerseits,

ich verzweifel gerade an einer aktuellen Installation und bräuchte etwas Hilfestellung:

Ubuntu Server 20.04 (alle aktuellen Updates und Upgrades) Image wegen des einfachen Weges von: https://wiki.radxa.com/Rockpi4/Ubuntu Aktueller Squid Services vom Rep

Squid Dienst läuft solange ich das Swap-Verzeichnis nicht umziehe. Nachdem ich aber die EMMC-Disk nicht quälen möchte hab ich eine NVME gemountet, das Swap-Verzeichnis sollte auf diesen Mount liegen.

root@rockpi-4b:~# df =⇒ Deleted all non entries: /dev/nvme0n1p1 479669932 33628196 421606076 8% /squid

Berechtigungen auf dieses Verzeichnis wurden dem User/Group: Proxy zugeteilt: root@rockpi-4b:/squid# ls -al =⇒ Deleted all non relevant entries: {{{#!code bash drwxr-xr-x 2 proxy proxy 4096 Mar 12 19:36 squid-cache -rw-––– 1 root root 34359738368 Mar 12 17:48 swapfile }}}

In der squid.conf wurde das Swap Directory correct angelegt, ebenso auch cache_effective_user / group: jeweils auf proxy

Trotzdem bekomme ich eine Fehlermeldung:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
root@rockpi-4b:~# systemctl status squid.service
● squid.service - Squid Web Proxy Server
     Loaded: loaded (/lib/systemd/system/squid.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2023-03-13 13:28:59 UTC; 6h ago
       Docs: man:squid(8)
    Process: 798 ExecStartPre=/usr/sbin/squid --foreground -z (code=exited, status=1/FAILURE)

Mar 13 13:28:59 rockpi-4b squid[808]: 2023/03/13 13:28:59 kid1| F'''ATAL: Failed to make swap directory /squid/squid-cache: (13) Permission denied'''
Mar 13 13:28:59 rockpi-4b squid[808]: 2023/03/13 13:28:59 kid1| Squid Cache (Version 4.10): Terminated abnormally.
Mar 13 13:28:59 rockpi-4b (squid-1)[808]: FATAL: Failed to make swap directory /squid/squid-cache: (13) Permission denied
Mar 13 13:28:59 rockpi-4b squid[798]: Squid Parent: squid-1 process 808 exited with status 1
Mar 13 13:28:59 rockpi-4b squid[798]: Squid Parent: squid-1 process 808 will not be restarted for 3600 seconds due to repeated, frequent failures
Mar 13 13:28:59 rockpi-4b squid[798]: Exiting due to repeated, frequent failures
Mar 13 13:28:59 rockpi-4b squid[798]: 2023/03/13 13:28:59| Removing PID file (/var/run/squid.pid)
Mar 13 13:28:59 rockpi-4b systemd[1]: squid.service: Control process exited, code=exited, status=1/FAILURE
Mar 13 13:28:59 rockpi-4b systemd[1]: squid.service: Failed with result 'exit-code'.
Mar 13 13:28:59 rockpi-4b systemd[1]: Failed to start Squid Web Proxy Server.

SELinux und Appamore sind nicht installiert!

Vielleicht kann mir jemand noch einen Tip geben, oder....?

Gruesse

Dirk

Bilder
Antworten |