Hello, after running your script I am encountering a few errors/problems. This was done on a fresh install of Almalinux 9.1 Minimal (I also selected the "development" additional package in the installer) in a bhyve VM. I ran dnf update before running the script and dnf install wget. I selected install both panel and wings from the script. (If you want me to post these as individual issues let me know and I'll edit this post.) Thanks and sorry if this is all "user error" and it is because I am new to Pterodactyl.
1) DNF Package Conflicts with NGINX
When I run "dnf update" after the install I now get a conflict error. nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64. Full error here:
[root@pterodactyl ~]# dnf update
Last metadata expiration check: 0:01:25 ago on Sun Jan 15 22:55:10 2023.
Dependencies resolved.
=================================================================================================================================================================================================================================================================== Package Architecture Version Repository Size
===================================================================================================================================================================================================================================================================Upgrading:
epel-release noarch 9-4.el9 epel 18 k
nginx x86_64 1:1.23.3-1.el9.ngx nginx-mainline 868 k
Transaction Summary
===================================================================================================================================================================================================================================================================Upgrade 2 Packages
Total download size: 886 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): epel-release-9-4.el9.noarch.rpm 69 kB/s | 18 kB 00:00
(2/2): nginx-1.23.3-1.el9.ngx.x86_64.rpm 1.0 MB/s | 868 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 54 kB/s | 886 kB 00:16
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
file /etc/logrotate.d/nginx from install of nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64
file /etc/nginx/mime.types from install of nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64
file /etc/nginx/nginx.conf from install of nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64
file /usr/sbin/nginx from install of nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64
file /var/log/nginx from install of nginx-1:1.23.3-1.el9.ngx.x86_64 conflicts with file from package nginx-core-1:1.20.1-13.el9.alma.x86_64
[root@pterodactyl ~]#
2) Database Doesn't Start Correctly
I think this is because I am running it on a homelab VM and without the proper portfording setup letsencrypt wasn't able to get a cert. In the end I want the panel to run on HTTP and I will be setting up forwarding in a nginx proxy maanger VM that has the certs. Maybe the script could setup without SSL on things if letsencrypt can't get a cert?
Jan 15 22:55:46 pterodactyl.local systemd[1]: Starting MariaDB 10.10.2 database server...
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] /usr/sbin/mariadbd (server 10.10.2-MariaDB) starting as process 21017 ...
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Number of transaction pools: 1
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Using Linux native AIO
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Completed initialization of buffer pool
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: 128 rollback segments are active.
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: log sequence number 3151949; transaction id 3475
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] Plugin 'FEEDBACK' is disabled.
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [ERROR] Failed to setup SSL
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [ERROR] SSL error: SSL_CTX_set_default_verify_paths failed
Jan 15 22:55:47 pterodactyl.local mariadbd[21017]: 2023-01-15 22:55:47 0 [ERROR] Aborting
Jan 15 22:55:47 pterodactyl.local systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 22:55:47 pterodactyl.local systemd[1]: mariadb.service: Failed with result 'exit-code'.
Jan 15 22:55:47 pterodactyl.local systemd[1]: Failed to start MariaDB 10.10.2 database server.
I fixed this by removing the generated "ssl-" lines in the mysql config file /etc/my.cnf.d/server.cnf.
3) Wings Fails To Start Correctly
I see you have a note in the script about wings and a command not found error. I don't think my install had that problem, but it was hard to know since my shell (tabby.sh) butchered the output (note I renamed the install script to pterodactyl.sh):
The journalctl command tells me that it failed to start because the config file is missing. /etc/pterodactyl/config.yml doesn't exist. I am new to Pterodactyl so maybe that is expected until you have configured a node?
4) This site canβt be reached. pterodactyl.localhost refused to connect.
NGINX fails to start due to a missing cert. Again, probably due to letsencrypt. I generated a self-signed cert with openssl:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/certs/pterodactyl.localhost.key -out /etc/ssl/certs/pterodactyl.localhost.crt
and edited the nginx config and removed the HSTS config. I am now able to connect in browser.