Open N4DAR opened 2 years ago
Hi.
I will try to help you with this problem. Here are my propositions to do:
/var/www/armnas
directory.If this will not work
root
or armnas
-> su root
cd /var/www/armnas/backend/WebApi
./stop.sh
rm -rf armnas.db
./start.sh
armnas.db
file should be created again.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}
If this will not work
/var/www/armnas/backend/WebApi/webapi.log
file. I will try to check it.
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)![Capture](https://user-images.githubusercontent.com/47666040/167755940-968f1b1f-342c-4958-b9ad-7934c4e532db.PNG)
Sorry for such a 'low level issue' but well, i'm stuck :/
.