New Install Https://[server_ip]/login Returns 404 Not Found

I’m trying to perform a fresh install using the install script on Pritunl.com for Debian 12 (using 12.13) on a Lenovo M710q Tiny.

After the script is done running and I don’t see any errors that I can recognize. Going to the IP just returns:

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

  • I tried using Ubuntu 24.04 and using the Ubuntu 24.04 installation instructions.
  • I tried using older versions of Debian 12 as far back as Debian 12.0.0.
  • I tried using a different client browser.
  • I tried using a different client computer/OS
  • I tried using a different computer for the server (Optiplex 7060 Micro)
  • I tried using a different network at a different location.

It’s directing me to the /login page but apparently it does not exist? I feel like the issue is something very simple and right in front of my face but I cannot see it.

Open the Chrome developer tools and in then network tab enable Preserve log. Then hod shift right click refresh and select Empty Cache and Hard Reload. Check the network tab for redirect issues.

Run sudo netstat -tulpn verify the process pritunl-web is using :80 and :443 then verify the python3 process is using :9755. The first process is the external web server process, the second is the internal root process.

On the server run curl http://localhost:9755/login this will attempt the request directly on the internal root process web server. This should return the login page.

Verify the ls command below shows the files listed below.

sudo ls -la /usr/share/pritunl/www/
total 420
drwxr-xr-x 5 root root  4096 Feb 12 19:54 .
drwxr-xr-x 3 root root  4096 Jan 18 21:39 ..
drwxr-xr-x 2 root root  4096 Feb 12 19:54 css
-rw-rw-r-- 1 root root 38047 Feb  4 23:23 dbconf.html
-rw-rw-r-- 1 root root 28485 Feb  4 23:23 duo.html
drwxr-xr-x 2 root root  4096 Feb 12 19:54 fonts
-rw-rw-r-- 1 root root  7945 Feb  4 23:23 index.html
drwxr-xr-x 2 root root  4096 Feb 12 19:54 js
-rw-rw-r-- 1 root root 57588 Feb  4 23:23 key_view_dark.html
-rw-rw-r-- 1 root root 57822 Feb  4 23:23 key_view.html
-rw-rw-r-- 1 root root 87872 Feb  4 23:23 login.html
-rw-rw-r-- 1 root root  3656 Feb  4 23:23 logo.png
-rw-rw-r-- 1 root root    26 Feb  4 23:23 robots.txt
-rw-rw-r-- 1 root root 18753 Feb  4 23:23 success.html
-rw-rw-r-- 1 root root 38435 Feb  4 23:23 upgrade.html
-rw-rw-r-- 1 root root 45259 Feb  4 23:23 yubico.html

I’m using Firefox. On Windows I tried Edge. Have not tested Chrome to get those logs.

These are the only lines containing pritunl-web & python3

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::443                  :::\*                    LISTEN      5078/pritunl-web
tcp6       0      0 :::80                   :::\*                    LISTEN      5078/pritunl-web
tcp6       0      0 ::1:9755                :::\*                    LISTEN      4986/python3

Curl returns:
curl: (7) Failed to connect to localhost port 9756 after 0 ms: Couldn't connect to server

Ls command does appear to return all of that information.

Run curl http://localhost:9755/login with port 9755.

It returns 5 lines of HTML that composes the 404 Not Found page.

I have found the cause of this. Manually enter /setup in the path. This will be fixed in the next release.

1 Like

Looks like that did it. Glad it was something simple.