Can't login at fresh install #182
Replies: 7 comments 10 replies
-
|
Hi @scarecr0w12, thanks for reporting this! We looked into the login flow and the password hashing is consistent between setup and login, so this shouldn't be a general bug. To help us investigate further, could you provide some details?
The logs should show the exact failure reason (user not found, wrong password, account disabled, etc.) which will help us pinpoint the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @scarecr0w12, Thanks for the additional info! The fact that only the frontend is running is actually normal for the Community edition - the container is named Since we haven't had any other reports of this issue, could you try a clean install from scratch? Remove everything and re-run the one-liner installer: cd /opt/proxcenter && docker compose down -v
rm -rf /opt/proxcenterThen re-run the install script. This will regenerate all secrets and the database from scratch. Let us know if the issue persists after that! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @scarecr0w12, Thanks for the screenshot and for testing on a fresh Ubuntu 24.04 install. We appreciate your patience. The To help us pinpoint the actual login failure, could you run this right after a failed login attempt? docker logs proxcenter-frontend 2>&1 | tail -50This will show us the server-side reason for the rejection (user not found, wrong password, etc.) and help us figure out what's going on. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the logs! As expected, the Docker logs only show startup info, not login failures. The auth failures are stored in the database. Could you run this after a failed login attempt? docker exec proxcenter-frontend node -e "
const Database = require('better-sqlite3');
const db = new Database('/app/data/proxcenter.db');
const rows = db.prepare(\"SELECT timestamp, action, user_email, error_message, details FROM audit_logs WHERE action = 'login_failed' ORDER BY timestamp DESC LIMIT 10\").all();
console.log(JSON.stringify(rows, null, 2));
"This will show us the exact failure reason (user not found, wrong password, etc.) from the database. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting! The empty This is most likely caused by a NEXTAUTH_URL mismatch. Could you run: cat /opt/proxcenter/.env | grep NEXTAUTH_URLAnd compare the URL shown there with the URL you're using in your browser to access ProxCenter. They need to match exactly (same IP/hostname, same port, same protocol). |
Beta Was this translation helpful? Give feedback.
-
|
OK, URL matches so that's not the issue. Let's dig deeper. Could you run these two checks? 1. Verify the secret is properly loaded in the container: docker exec proxcenter-frontend printenv NEXTAUTH_SECRET | head -c 5(Only shows the first 5 characters for security) 2. Check the actual HTTP response when login fails: In your browser DevTools, go to the Network tab, attempt a login, and look for the POST request to |
Beta Was this translation helpful? Give feedback.
-
|
Glad we found the root cause! Bitdefender was blocking the unencrypted password in the HTTP request before it could even reach the server. You're right that running ProxCenter over plain HTTP is not ideal, especially since it manages your Proxmox infrastructure. We strongly recommend setting up a reverse proxy with SSL. Here's a quick example with Nginx and Let's Encrypt: sudo apt install nginx certbot python3-certbot-nginx
# Create Nginx config
sudo tee /etc/nginx/sites-available/proxcenter << 'CONF'
server {
listen 80;
server_name proxcenter.yourdomain.com;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
CONF
sudo ln -s /etc/nginx/sites-available/proxcenter /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
# Get SSL certificate
sudo certbot --nginx -d proxcenter.yourdomain.comThis will also resolve the Bitdefender issue since credentials will be encrypted over HTTPS. |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
I'm having an issue where after creating the intial account, i can't login, it just says invalid login. Ive reinstalled and tried several times and does this each time.
Beta Was this translation helpful? Give feedback.
All reactions