Your question
I’m trying to login over the web but no matter what I try I cannot reach the login page. I’ve tried;
http://121.333.333.444:8080/admin
https://121.333.333.444:8080/admin
http://domain.name:8080/admin/login
https://domain.name:8080/admin/login
http://domain.name:8080/admin/
Is there another way to set the admin information, say from the command line?
Here are the most likely causes and fixes:
1. The WebUI bundle was never downloaded (404)
On first start, Stalwart fetches the WebUI from GitHub (github.com / objects.githubusercontent.com on TCP 443). If that outbound connection is blocked or failed, every route under /admin returns 404. Check that your server can reach those hosts and then restart Stalwart so it retries the download.
2. Accessing by IP or plain HTTP causes sign-in to loop or fail
The OAuth flow is tied to the configured defaultHostname over HTTPS. Accessing by raw IP (e.g. http://121.333.333.444:8080/admin) will load the page visually but fail at the OAuth callback. According to the docs, http://<host>:8080/admin (using the actual hostname, not an IP) is the exception that is exempt from the hostname check while TLS isn’t yet in place. Try:
http://domain.name:8080/admin
3. Setting the admin password from the command line
If you still can’t get in, you can use the stalwart-cli tool to update the admin account’s password directly:
stalwart-cli update account/admin --field 'password=YourNewPassword'
The CLI connects to the server’s JMAP API and can be used to manage accounts without needing the WebUI.
References:
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
Fails with "An error occurred during a connection to domain.name:8080. PR_END_OF_FILE_ERROR
Error code: PR_END_OF_FILE_ERROR"
The Github.com content is reachable;
PING objects.githubusercontent.com (185.199.108.133) 56(84) bytes of data.64 bytes from cdn-185-199-108-133.github.com (185.199.108.133): icmp_seq=1 ttl=54 time=0.480 ms
PING github.com (4.225.11.194) 56(84) bytes of data.
64 bytes from 4.225.11.194: icmp_seq=1 ttl=107 time=4.30 ms
64 bytes from 4.225.11.194: icmp_seq=2 ttl=107 time=4.30 ms
Gah, stalwart-cli update account/admin --field 'password=YourNewPassword' fails with;
error: unrecognized subcommand ‘update’
Usage: stalwart-cli [OPTIONS]
If this happens to you, update to the latest version of stalwart-cli.
My diagnoses is that the UI was not downloaded.
I’ve restarted stalwart in recovery mode a number of times and objects.githubusercontent.com as well as github.com are reachable - why doesn’t stalwart download the WebUI?
Is there another way to download the WebUI?
Please check your logs for details, if there is an issue downloading the WebUI it will appear there.
The logs did not have anything, I had to retry a number of times and wait for the download too occur.