Error incorrect login on clean install
Welp, almost 5 hours have passed and i still don't know what's wrong. This is now the sixth time i reainstall all from scratch, thinking i may have missed something.
Right after finishing the install, reboot, then try to reach the login page: Asks for a password, should i guess be the 'armnas user password' i typed during the install. Incorrect. Inspected the page and get looping errors "CORS header 'access-control-allow-origin' missing".
I'm not familiar with caddy AT ALL but it seems it should be something in the caddyfile ?
OrangePi Zero2, here (H616, armbian 22.02.1)
Sorry for such a 'low level issue' but well, i'm stuck :/
.
Hi.
I will try to help you with this problem. Here are my propositions to do:
Option 1 - Reinstall
- Delete
/var/www/armnasdirectory. - Install again.
- Try to login.
If this will not work
Option 2 - Manual register
- Login as
rootorarmnas->su root - Execute
cd /var/www/armnas/backend/WebApi
./stop.sh
rm -rf armnas.db
./start.sh
- Wait couple seconds.
armnas.dbfile should be created again. - Execute (put password and armnas api ip)
curl --header "Content-Type: application/json" --request POST --data "{\"id\":0,\"login\":\"admin\",\"password\":\"YOUR_PASSWORD_HERE\"}" http://ARMNAS_API_IP_PORT_HERE/user/register
Good example with response
> curl --header "Content-Type: application/json" --request POST --data "{\"id\":0,\"login\":\"admin\",\"password\":\"superpassword\"}" http://192.168.254.128:9970/user/register
{"id":1,"login":"admin","password":null}
- Try to login.
If this will not work
Option 3 - Logs
- Please put somewhere your
/var/www/armnas/backend/WebApi/webapi.logfile. I will try to check it.