Skip to content

Commit dc4ad17

Browse files
authored
Merge pull request #1684 from input-output-hk/jpraynaud/fix-squid-config-spo-signer-guide
Fix `squid` service configuration in signer guide for SPO
2 parents 481b7e7 + 7d789e8 commit dc4ad17

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

docs/website/root/manual/getting-started/run-signer-node.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ sudo systemctl restart mithril-signer
511511
512512
:::info
513513
514-
- If you have already installed `Squid` via `apt` package manager, we recommend that you delete it before manually building it from source by running the commands: `sudo apt remove squid` and `sudo apt autoremove`.
514+
- If you have already installed `Squid` via `apt` package manager, we recommend that you delete it before manually building it from source by running the following commands:
515+
- `sudo systemctl stop squid`
516+
- `sudo apt remove squid`
517+
- `sudo apt autoremove`
515518
516519
- The FAQ for compiling `Squid` is available [here](https://wiki.squid-cache.org/SquidFaq/CompilingSquid).
517520
@@ -742,7 +745,7 @@ Restart=always
742745
RestartSec=60
743746
User=squid
744747
Group=squid
745-
ExecStart=/opt/squid/sbin/squid -f /etc/squid/squid.conf
748+
ExecStart=/opt/squid/sbin/squid -f /etc/squid/squid.conf -d5
746749
PIDFile=/opt/squid/var/run/squid.pid
747750
748751
[Install]
@@ -786,6 +789,14 @@ And monitor squid access logs:
786789
sudo tail -f /opt/squid/var/log/squid/access.log
787790
```
788791
792+
:::tip
793+
794+
If your **Squid service** does not start properly and you have the error message `FATAL: /dev/null (13) Permission denied` in the logs of the service, it means that some permissions need to be fixed following the creation of the new `squid` user by running the following commands:
795+
- `sudo chmod 666 /dev/null`
796+
- `sudo systemctl restart squid`
797+
798+
:::
799+
789800
### Firewall configuration
790801
791802
:::info

docs/website/versioned_docs/version-maintained/manual/getting-started/run-signer-node.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,10 @@ sudo systemctl restart mithril-signer
511511
512512
:::info
513513
514-
- If you have already installed `Squid` via `apt` package manager, we recommend that you delete it before manually building it from source by running the commands: `sudo apt remove squid` and `sudo apt autoremove`.
514+
- If you have already installed `Squid` via `apt` package manager, we recommend that you delete it before manually building it from source by running the following commands:
515+
- `sudo systemctl stop squid`
516+
- `sudo apt remove squid`
517+
- `sudo apt autoremove`
515518
516519
- The FAQ for compiling `Squid` is available [here](https://wiki.squid-cache.org/SquidFaq/CompilingSquid).
517520
@@ -742,7 +745,7 @@ Restart=always
742745
RestartSec=60
743746
User=squid
744747
Group=squid
745-
ExecStart=/opt/squid/sbin/squid -f /etc/squid/squid.conf
748+
ExecStart=/opt/squid/sbin/squid -f /etc/squid/squid.conf -d5
746749
PIDFile=/opt/squid/var/run/squid.pid
747750
748751
[Install]
@@ -786,6 +789,14 @@ And monitor squid access logs:
786789
sudo tail -f /opt/squid/var/log/squid/access.log
787790
```
788791
792+
:::tip
793+
794+
If your **Squid service** does not start properly and you have the error message `FATAL: /dev/null (13) Permission denied` in the logs of the service, it means that some permissions need to be fixed following the creation of the new `squid` user by running the following commands:
795+
- `sudo chmod 666 /dev/null`
796+
- `sudo systemctl restart squid`
797+
798+
:::
799+
789800
### Firewall configuration
790801
791802
:::info

0 commit comments

Comments
 (0)