Warning: file '/etc/nginx/conf.d/yunohost_admin.conf' has been manually modified and will not be updated

Hi,

I am getting this “Warning: The configuration file ‘/etc/nginx/conf.d/yunohost_admin.conf’ has been manually modified and will not be updated.” Also, everytime I reboot the system than Nginx fails to start and the only way to make it work again is by shutdown and start of the machine.

I have not modified any of the original code and have also tried running “sudo yunohost service regen-conf” but the problem still persists. Are these two problems interrelated? Any ideas on how to fix them?

Thanks,
AJ

Hi @abhinavjain ,

I’m not from the dev’ team, so backup, export, … before doing anything :wink:
Copy your conf file

cp /etc/nginx/conf.d/yunohost_admin.conf /etc/nginx/conf.d/yunohost_admin.conf_bak

Then, if you haven’t modified any of the original code as you say, so you can try to force regen-conf

yunohost service regen-conf nginx --force #only nginx
yunohost service regen-conf --force #all services make sure you haven’t modified any conf files

Maybe you should use sudo to execute these commands.
Hope it could helps you.

ppr

4 Likes

That’s great!

It seems to have worked… even reboot is working fine.

Thanks for the help