API Key Changes on Reset

General Discussion

Re: API Key Changes on Reset

Postby smurfgun » Fri Sep 29, 2017 9:56 am

Do you know why there are 3 sets? I don't mean the double instance causing the problem... But I mean how there is one in volumes directory (which seems to be the one in use), one in overlay2/merged and one in overlay2/diff?

Lastly, is the docker directory expected? You mentioned it should be in /opt/alarmdecoder_webapp but it's actually in /var/lib/docker/......

Thanks!!!!

Ray
smurfgun
Junior Nut
Junior Nut
 
Posts: 21
Joined: Mon Jul 31, 2017 12:32 pm

Re: API Key Changes on Reset

Postby kevin » Fri Sep 29, 2017 10:51 am

Would have to do a little research on docker volumes to understand that - will take some time.

But if you attach to the docker container, you will see it is indeed at /opt/alarmdecoder-webapp according to docker - but the local filesystem where the overlay filesystem for docker happens you will see it as you see it

So to get the real skinny, you have to attach to your docker container and see what's going on there - are there multiple copies in the docker container? Or just 2 keys in the one instance of the database?

Docker volumes are incremental so it could show up multiple times from the base OS but in the docker container itself, I'd be surprised if you had access to more than one of them. Likely just a duplicate key entry in that singular database in the docker container.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: API Key Changes on Reset

Postby smurfgun » Fri Sep 29, 2017 11:07 am

Ok... Thanks Kevin. The exercise is probably not required... If I have more problems with the double instance, I'd probably just nuke the SD card and start all over... It's a fairly quick process.

For now, it's fine... I used cmdline sqlite3 to modify the key and make sure it's the same on both. It can now come up as either instance on a reset and it should work fine...
smurfgun
Junior Nut
Junior Nut
 
Posts: 21
Joined: Mon Jul 31, 2017 12:32 pm

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron