New install - nginx fails

hi, install went ok
I tried to install adguard that failed…then I powered off the box and back on and nginx won’t start
there is no nginx folder in /var/log???
merci buckets!

Nov 17 18:44:15 systemd[1]: Starting A high performance web server and a reverse proxy server…
Nov 17 18:44:15 nginx[15553]: nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (2: No such file or directory)
Nov 17 18:44:15 nginx[15553]: 2021/11/17 18:44:15 [info] 15553#15553: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
Nov 17 18:44:15 nginx[15553]: 2021/11/17 18:44:15 [emerg] 15553#15553: open() “/var/log/nginx/access.log” failed (2: No such file or directory)
Nov 17 18:44:15 nginx[15553]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 17 18:44:15 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 17 18:44:15 systemd[1]: nginx.service: Failed with result ‘exit-code’.
Nov 17 18:44:15 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

I see than your error is related to a missing file. Try to run this command via SSH: sudo touch /var/log/nginx/error.log.

1 Like

woohoo we’re back in!
I actually just needed to create the folder ie `sudo mkdir /var/log/nginx/

1 Like

Uh yeah mkdir is gonna create a directory named error.log. As @ukispoo said, just need to create /var/log/nginx

Though what’s puzzling is that it should have been created during nginx install automatically

not sure what happened, manual install on an odroid c2 with armbian that had been previously running homeassistant using ‘curl https://install.yunohost.org | bash’
that went fine but after I rebooted the problems started…
I’ve had to manually create log files for fail2ban, redis-server and rspamd services too
now it thinks adguard is installed but it isn’t…persevering lol
but I like the look of it, nice easy to use interface and the diagnosis tool is good :stuck_out_tongue_closed_eyes:
any idea what to do with this?
Error: Failed to read info for adguardhome : Corrupted JSON read from /etc/yunohost/apps/adguardhome/manifest.json (reason: Extra data: line 2 column 1 (char 3))

Uuuuh idk, when does that happens ?

Sounds like there’s an issue line 2 of that file x_X

trying to install adguard…the web interface thinks it’s installed but it’s not so I think I need to clear out the ‘aborted install’ for starters?

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