Skip to content

Commit f09bdd2

Browse files
hoholethanh
authored andcommitted
Fix: Kubo 33.2 crashed on Ubuntu 22.04
Due to an error reading the denylist. The error was: ``` Error: constructing the node (see log for full detail): error walking /home/ipfs/.config/ipfs/denylists: lstat /home/ipfs/.config/ipfs/denylists: permission denied ``` The [documentation](https://specs.ipfs.tech/compact-denylist-format/) mentions that: > Implementations SHOULD look in /etc/ipfs/denylists/ and > $XDG_CONFIG_HOME/ipfs/denylists/ (default: ~/.config/ipfs/denylists) > for denylist files. I am not sure why this only failed on Ubuntu 22.04 and not Debian 12 or Ubuntu 24.04. My first assumption would be a difference in Systemd.
1 parent 02db781 commit f09bdd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packaging/aleph-vm/etc/systemd/system/ipfs.service

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ CapabilityBoundingSet=CAP_NET_BIND_SERVICE
5858
# enable to specify a higher limit for open files/connections
5959
#LimitNOFILE=1000000
6060

61+
# Avoid a permission denier error when running `lstat /home/ipfs/.config/ipfs/denylists`
62+
# due to checking $XDG_CONFIG_HOME/ipfs/denylists/
63+
Environment=XDG_CONFIG_HOME=/etc
64+
6165
#don't use swap
6266
MemorySwapMax=0
6367

0 commit comments

Comments
 (0)