I’ve tried twice now, virgin installs, following the install instructions for Ubuntu 20.04 but I get the same result both times. I am certain I didn’t make any mistakes.
/var/log/nginx/error.log
2020/09/18 00:39:52 [crit] 19595#19595: *1 connect() to unix:/run/php7.4-fpm-librenms.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.1.5, server: librenms, request: “GET /install HTTP/1.1”, upstream: “fastcgi://unix:/run/php7.4-fpm-librenms.sock:”, host: “librenms”
In the error, the socket file is different then what is in your php-fpm config: connect() to unix:/run/php7.4-fpm-librenms.sock failed
is not the same as: listen = /run/php/php7.4-fpm-librenms.sock
(note the extra /php/ directory)
Thanks Edwin. That was it. The annoying thing is that I did notice that but after a 12 hour day I didn’t process what I was looking at correctly. In the nginx config file in the documentation is missing the /php/ folder. Check here: https://docs.librenms.org/Installation/Install-LibreNMS/
Who should I notify? If anyone does an install using these instructions verbatim will fall into the problem as me.
; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
listen.owner = librenms
listen.group = librenms
;listen.mode = 0660