Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 24.04..1 and latest DerbyNet Install Error #345

Open
majora15 opened this issue Nov 21, 2024 · 4 comments
Open

Ubuntu 24.04..1 and latest DerbyNet Install Error #345

majora15 opened this issue Nov 21, 2024 · 4 comments

Comments

@majora15
Copy link

Been having troubles installing the latest version on https://derbynet.org/debian stable main. Everytime I install, not matter if I do a sudo su - or do sudo apt-get install XXXXX I get the following error. What I have done to get around this is to remove derbynet-server then reinstall it and everything seems to install fine.

Setting up derbynet-server (10.0-1775) ...
Restarting php8.3-fpm
sed: can't read /etc/nginx/sites-available/default: No such file or directory
sed: can't read /etc/nginx/sites-available/default: No such file or directory
2024/11/21 12:23:04 [emerg] 9986#9986: open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
dpkg: error processing package derbynet-server (--configure):
installed derbynet-server package post-installation script subprocess returned error exit status 1
Setting up nginx-common (1.24.0-2ubuntu7.1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
Processing triggers for ufw (0.36.2-6) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for php8.3-cli (8.3.6-0ubuntu0.24.04.2) ...
Processing triggers for php8.3-fpm (8.3.6-0ubuntu0.24.04.2) ...
Errors were encountered while processing:
derbynet-server
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

@jeffpiazza
Copy link
Owner

Somehow your nginx install isn't where it should be. Maybe try explicitly installing nginx (apt install nginx) before trying to install derbynet-server?

What does

find /etc/nginx

show for you?

@majora15
Copy link
Author

I can definately try that on a new install. I am able to repeat this everytime on a new install. find /etc/nginx results in:

root@derbynetsrv02:~# find /etc/nginx
/etc/nginx
/etc/nginx/win-utf
/etc/nginx/conf.d
/etc/nginx/conf.d/derbynet_log_format.conf
/etc/nginx/koi-win
/etc/nginx/sites-enabled
/etc/nginx/sites-enabled/default
/etc/nginx/fastcgi.conf
/etc/nginx/mime.types
/etc/nginx/derbynet
/etc/nginx/derbynet/location.snippet
/etc/nginx/fastcgi_params
/etc/nginx/uwsgi_params
/etc/nginx/snippets
/etc/nginx/snippets/fastcgi-php.conf
/etc/nginx/snippets/snakeoil.conf
/etc/nginx/sites-available
/etc/nginx/sites-available/default
/etc/nginx/proxy_params
/etc/nginx/modules-available
/etc/nginx/modules-enabled
/etc/nginx/nginx.conf
/etc/nginx/koi-utf
/etc/nginx/scgi_params

@majora15
Copy link
Author

Installing nginx before installing derbynet-server did the trick.

@majora15
Copy link
Author

result of find /etc/nginx after the successful installation:
No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@derbynetsrv02:# find /etc/nginx
/etc/nginx
/etc/nginx/snippets
/etc/nginx/snippets/snakeoil.conf
/etc/nginx/snippets/fastcgi-php.conf
/etc/nginx/proxy_params
/etc/nginx/nginx.conf
/etc/nginx/conf.d
/etc/nginx/conf.d/derbynet_log_format.conf
/etc/nginx/koi-utf
/etc/nginx/fastcgi_params
/etc/nginx/sites-enabled
/etc/nginx/sites-enabled/default
/etc/nginx/fastcgi.conf
/etc/nginx/derbynet
/etc/nginx/derbynet/location.snippet
/etc/nginx/win-utf
/etc/nginx/koi-win
/etc/nginx/modules-enabled
/etc/nginx/sites-available
/etc/nginx/sites-available/default
/etc/nginx/uwsgi_params
/etc/nginx/modules-available
/etc/nginx/scgi_params
/etc/nginx/mime.types
root@derbynetsrv02:
#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants