When trying to install virtualmin on a server installation seems to go fine but when it get’s to configure:usermin I get an error:
Configuring Usermin ▒▒▒Error: Failed to open PID file
Error
Failed to open PID file
I tried to configure it manually by using virtualmin config-system --include Virtualmin but I am getting the same error.
Configuring other components are running fine.
That’s the Virtualmin plugin of virtualmin-config. Your error is in the Usermin plugin.
Edit: Ilia tells me he’s tested pre-installing MySQL with good results with our more recent stack packages, so I guess that’s the thing to do now. So, I’ve removed my comments about not preinstalling MySQL. That’s fine as long as you’re using MySQL from the OS standard repos. (But you should stick with MariaDB unless you have a compelling reason not to.)
Is this caused by something I missed? Or an error in the install script?
No, this is our bug.
@Jamie, you have a bug in your Usermin build script, which supposed to resolve the link to the new ../webadmin/miniserv.pem (2.89 KiB) upon build but instead it uses very old and no longer working miniserv.pem file (974 bytes) … and, in case openssl command fails in the scriptlet (i.e. setup.sh) then Usermin won’t be able to start.
In other words, just make sure to put ../webadmin/miniserv.pem to usermin package.
@Jamie I know that it is, and in my nightly builds it’s correctly linked but in production builds the old miniserv.pem is coming out of the blue. Therefore, I assumed that there is something happening on your built system.
I don’t remember if I ran virtualmin-config-system -i Virtualmin on your system. I would suggest running this and that’s it. You cannot resume the install.