Problème d'autorisation avec /var/lib/mobilizon/

What app is this about, and its version: Mobilizon 5.1.5 ARM64
What YunoHost version are you running: 12.1.39 (stable)
What type of hardware are you using: Raspberry Pi 3, 4+

Describe your issue

I read the post regarding the same issue with permission [info] {"error":"** (File.Error) could not write to file \"/var/lib/mobilizon/sitemap/sitemap-00001.xml\": permission denied"
So I changed the permissions for this file and folders with chown -R mobilizon:mobilizon /var/lib/mobilizon and also I changed the rights to 660.
But I still get the error message on that file /var/lib/mobilizon/sitemap/sitemap-00001.xml

Here is my ls -al in the folder :

/var/lib/mobilizon/sitemap# ls -al
total 1032
drw-rw---- 2 mobilizon mobilizon    4096 Jul 26  2025 .
drwxrwxrwx 3 mobilizon mobilizon    4096 Jan 21 07:27 ..
-rw-rw---- 1 mobilizon mobilizon 1041922 Jan 21 02:00 sitemap-00001.xml
-rw-rw---- 1 mobilizon mobilizon     412 Jan 21 02:00 sitemap.xml

One thing which could be linked (or not) is I found owner and group to nextcloud:nextcloud which, l’m sure I didn’t do such mistake (even if I can do some) and other point I did migration from one server to another recently. So perhaps, there was something wrong with the users uiid (I checked the ls -an, and the /etc/passwd, nothing special). Just in case.

Share relevant logs or error messages

Service log : hastebin

Hi,

The issue comes from the permissions on the directory sitemap, not the files themselves. Your ls -al shows it clearly:

drw-rw---- 2 mobilizon mobilizon    4096 Jul 26  2025 .

The execute (x) bit is missing on the folder. In UNIX, the x bit on a directory is required to traverse it and access its contents → without it, even the owner is locked out. By applying chmod 660, you inadvertently removed that bit from the directories.

To fix it:

chmod -R u+rwX,g+rwX /var/lib/mobilizon
systemctl restart mobilizon

The uppercase X is key here: it adds the execute bit only on directories, leaving files untouched. Your folders will go from drw-rw---- to drwxrwx---, and the BuildSiteMap worker should be able to write the sitemap again.

By the way, Mobilizon seems to be listed as compatible with amd64 only in the YunoHost app store → I’m curious to know how well it runs on a Pi! :slightly_smiling_face:

2 Likes

Thank you very much. I had no idea the x was also for directories.

Regarding the ARM64 question, for now, I’m stuck to 5.1.5 which is the last release Framasoft delivered an ARM64 archive Framasoft - Index of /5.1.5/
I hope they gonna continue to deliver ARM64 release time to time, otherwise, I gonna have to leave this app (which I don’t want cause it’s a Fediverse one and we support Fediverse).
Or other option, I finally manage to understand reverse proxy (redirect app at least) to put this service on another server amd64.

So it work as well as it can. I say that cause I had many troubles with this app and many pain to find solutions most of the time. If it was not a Fediverse, it would have been thrown by window since a while.
Thank you again. I close this subject. edit : Well seems I can’t close it (or don’t know how).

1 Like

Hello @CatsLover71 ,

Few months ago the developers told me they will not maintain builds for the package for amd64.

Perhaps we could build one from the amd64 with some script, but I never do this. I could ask how do that and try add it, if I have enough time…

Anyway I will add also the permissions chmod -R u+rwX,g+rwX /var/lib/mobilizon

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.