Hi
I've deployed the FusionAuth server on my Debian 11 installation running on a VPS, and made a bunch of configurations. I had chosen the Fast Path installation. According to docs here, the command to "[i]nstall for all users on the system using DEB or RPM packages, requires sudo access", is:
sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
Since it said "requires sudo access", I ran it this way:
$ sudo sh -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | sh"
[sudo] password for <username>:
sh: 64: [[: not found
As you can see, I got an error message, and seemingly nothing was installed. I discovered that by changing sh
to bash
, it worked:
$ sudo bash -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | bash"
However, it installed using zip packages into my home folder, instead of system-wide using packages. I figured that didn't matter, and backed my whole server installation into a previous snapshot, from before I started installing FusionAuth, created a normal user with no sudo access (thought it might be safer to run FusionAuth-app as that user), and ran the same script without sudo:
$ bash -c "curl -fsSL https://raw.githubusercontent.com/FusionAuth/fusionauth-install/master/install.sh | bash"
Downloading zip packages
######################################################################## 100.0%
Installing packages
Install is complete. Time for tacos.
1. To start FusionAuth run the following command
/home/fusion/fusionauth/bin/startup.sh
2. To begin, access FusionAuth by opening a browser to http://localhost:9011
3. If you're looking for documentation, open your browser and navigate to https://fusionauth.io/docs
Thank you for using FusionAuth. Happy coding!
I figured I might deal with the issue of getting it to run on startup later. Now, after doing lots of administration via the web interface, the time has come to do that, but I discovered that according to the forum, rather than trying to set up systemd manually, I should install FusionAuth via packages instead. Now, I don't remember what password FusionAuth set for its own Postgresql user, but I have a superuser password for Postgresql. What do you recommend next:
- Reinstall FusionAuth using packages manually (or perhaps get the Fast Path script to work somehow), and then get FusionAuth to use the already configured db?
- Find out how to setup systemd manually from where I am now?
I don't know which of the two is the smallest amount of hassle, and cleanest solution.
There is one more issue. When I run startup.sh
, the logs indicate that it is listening on two ports, both 9011 and 9012. Is that wrong, and why does it happen?
2023-03-04 06:15:52.041 PM INFO io.fusionauth.http.server.HTTPServer - Starting the HTTP server. Buckle up!
2023-03-04 06:15:52.051 PM INFO io.fusionauth.http.server.HTTPServer - HTTP server listening on port [9011]
2023-03-04 06:15:52.052 PM INFO io.fusionauth.http.server.HTTPServer - HTTP server started successfully
2023-03-04 06:15:52.052 PM INFO io.fusionauth.http.server.HTTPServer - Starting the HTTP server. Buckle up!
2023-03-04 06:15:52.054 PM INFO io.fusionauth.http.server.HTTPServer - HTTP server listening on port [9012]
2023-03-04 06:15:52.055 PM INFO io.fusionauth.http.server.HTTPServer - HTTP server started successfully
Netstat indicates java is listening on both those two ports.