# Can't auto-build (and build) with Zola

**URL:** <https://forum.yunohost.org/t/cant-auto-build-and-build-with-zola/41725>\
**Category:** Support apps\
**Tags:** zola, french, english\
**Created:** [March 3, 2026, 9:00am UTC](https://forum.yunohost.org/t/cant-auto-build-and-build-with-zola/41725 "2026-03-03T09:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliennatione](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aliennatione/32/13364_2.png) [@aliennatione](https://forum.yunohost.org/u/aliennatione)\
**Post date:** [March 3, 2026, 9:00am UTC](https://forum.yunohost.org/t/cant-auto-build-and-build-with-zola/41725/1 "2026-03-03T09:00:19Z")

</div>

**What app is this about, and its version** : Zola, 0.21.0~ynh3  
**What YunoHost version are you running** : 12.1.39  
**What type of hardware are you using** : VPS bought online

### Describe your issue

Hi, I’m newbe wannabe-poweruser possible wannago-contributor definitely messy, sometime I make things for random, I’m going with disorder and sentiment.

Working on my x86 Debian 12 I don’t understand when an if is systemd or who and how start auto-build the HTML from content Markdown files (githubCom \> YunoHost-Apps/zola\_ynh/blob/main/conf/systemd.service), but i can’t achiev it with the commands described in “Admin doc” section:  
_If you have to manually launch the site build, use the following command: `sudo -u zola -g www-data /var/www/zola/zola build`  
If your website shows a 403 error, please fix the permissions using this command: `chown -R zola:www-data /var/www/zola`_  
nor other attempts to these confusingly (or foolishly) inspired.

I attach the last tryes made (relevant logs or error messages).  
Thanks for all your work and passion!

(Sorry for my english, wanna do practice and take this opportunity)

* * *

Salut, je suis newbe wannabe-power-poweruse possible wannago-contributeur définitivement en désordre, parfois je fais des choses pour le hasard, je vais avec le désordre et le sentiment.

En travaillant sur mon x86 Debian 12 Je ne comprends pas quand a if is systemd ou qui et comment démarrer automatiquement-construisez le HTML à partir de fichiers Markdown de contenu (githubCom \> YunoHost-Apps/zola\_ynh/blob/main/conf/systemd.service), mais je ne peux pas le réaliser avec les commandes décrites dans la section “Admin doc”:  
_Si vous devez lancer manuellement la version du site, utilisez la commande suivante: `sudo -u zola -g www-data /var/www/zola/zola build`  
Si votre site Web montre une erreur 403, veuillez corriger les autorisations en utilisant cette commande: `chown -R zola:www-data /var/www/zola`_  
ni d’autres tentatives à ces inspirations confuses (ou bêtes).

Je joins les dernières tentatives faites (logs ou messages d’erreur pertinents).  
Merci pour tout votre travail et votre passion!

(Version française entièrement auto-traslée)

### Share relevant logs or error messages

my@test:~$ sudo ls /var/www/zola/content  
[sudo] password for my:  
\_index.md test.md test.md.save  
my@test:~$ sudo ls /var/www/zola/public  
404.html atom.xml index.html robots.txt sitemap.xml  
my@test:~$ sudo ls -l /var/www/zola/content  
total 12  
-rw------- 1 zola zola 780 Feb 24 06:33 \_index.md  
-rw-r–r-- 1 root root 37 Mar 2 18:28 test.md  
-rw------- 1 root root 2 Mar 2 18:13 test.md.save  
my@test:~$ sudo -u root -g zola nano /var/www/zola/content/test1.md  
my@test:~$ sudo ls -ld /var/www/zola/content  
drwxr-xr-x 2 root root 4096 Mar 3 04:28 /var/www/zola/content  
my@test:~$ sudo ls -l /var/www/zola/content  
total 16  
-rw------- 1 zola zola 780 Feb 24 06:33 \_index.md  
-rw-r–r-- 1 root zola 59 Mar 3 04:28 test1.md  
-rw-r–r-- 1 root root 37 Mar 2 18:28 test.md  
-rw------- 1 root root 2 Mar 2 18:13 test.md.save  
my@test:~$ sudo ls /var/www/zola/public  
404.html atom.xml index.html robots.txt sitemap.xml  
my@test:~$ sudo -u root -g zola /var/www/zola/zola build  
Building site…  
Error: config.toml not found in current directory or ancestors, current\_dir is /home/my  
my@test:~$ sudo -u zola -g www-data /var/www/zola/zola build  
Sorry, user my is not allowed to execute ‘/var/www/zola/zola build’ as zola:www-data on test.home.local.  
my@test:~$ sudo chown -R zola:www-data /var/www/zola  
my@test:~$ sudo -u zola -g www-data /var/www/zola/zola build  
Sorry, user my is not allowed to execute ‘/var/www/zola/zola build’ as zola:www-data on test.home.local.  
my@test:~$ sudo -s  
root@test:/home/my# sudo -u zola -g www-data /var/www/zola/zola build  
Building site…  
Error: config.toml not found in current directory or ancestors, current\_dir is /home/my  
root@test:/home/my# exit  
exit  
my@test:~$ sudo -D /var/www/zola/ -u zola -g www-data /var/www/zola/zola build  
sudo: you are not permitted to use the -D option with /var/www/zola/zola  
my@test:~$ sudo -D /var/www/zola -u zola -g www-data /var/www/zola/zola build  
sudo: you are not permitted to use the -D option with /var/www/zola/zola  
my@test:~$ sudo -s  
root@test:/home/my# sudo -D /var/www/zola -u zola -g www-data /var/www/zola/zola build  
sudo: you are not permitted to use the -D option with /var/www/zola/zola  
root@test:/home/my# sudo -D /var/www/zola/content/ -u zola -g www-data /var/www/zola/zola build  
sudo: you are not permitted to use the -D option with /var/www/zola/zola

---

<div class="post-metadata">

**Author:** ![aliennatione](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aliennatione/32/13364_2.png) [@aliennatione](https://forum.yunohost.org/u/aliennatione)\
**Post date:** [March 4, 2026, 6:44am UTC](https://forum.yunohost.org/t/cant-auto-build-and-build-with-zola/41725/2 "2026-03-04T06:44:00Z")

</div>

I solved partially, at least the build problem (the auto-build function still failed to get it).

several errors:

- I have to learn to use better `su` and `sudo`, and in general the Linux shell, to work as a terminal
- I must understand the workings of Zola, the structure in `content/` and the behavior of the themes
- Zola (`zola build`) must be launched in the site directory
- the files must belong to the user `zola` and, also to solve in a simple way the next point probably (otherwise I have not yet clear why), to the group `www-data`
- currently, **it seems not to do default auto-builds anyway** which becomes more and more sense

I start to think that the best way now would be to consider opening an issue on `YunoHost-Apps/zola_ynh` and possibly, perhaps also supported by the mainteiners of the package, then propose my pull-request

(automatic translation, forgive any errors anyway)

* * *

J’ai résolu partiellement, au moins le problème de construction (la fonction de construction automatique n’a toujours pas réussi à l’obtenir).

Plusieurs erreurs:

- Je dois apprendre à utiliser mieux `su` et `sudo`, et en général le shell Linux, pour travailler comme terminal
- Je dois comprendre le fonctionnement de Zola, la structure en `contenu/` et le comportement des thèmes
- Zola (`zola build`) doit être lancé dans le répertoire du site
- les fichiers doivent appartenir à l’utilisateur `zola` et, aussi pour résoudre de manière simple le point suivant probablement (sinon je n’ai pas encore clair pourquoi), au groupe `www-data`
- actuellement, **il semble ne pas faire de moyens automatiques par défaut** ce qui devient de plus en plus logique

Je commence à penser que la meilleure façon maintenant serait d’envisager d’ouvrir une question `YunoHost-Apps/zola_ynh` et peut-être aussi, peut-être aussi soutenu par les mainteneurs du paquet, alors proposez ma pull-request

(traduction automatique, pardonnez des erreurs de toute façon)

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [March 19, 2026, 6:44am UTC](https://forum.yunohost.org/t/cant-auto-build-and-build-with-zola/41725/3 "2026-03-19T06:44:22Z")

</div>

Closed on March 19, 2026, 6:44am UTC

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