Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied on login page #169

Closed
stoinov opened this issue Jul 7, 2018 · 9 comments
Closed

Permission denied on login page #169

stoinov opened this issue Jul 7, 2018 · 9 comments

Comments

@stoinov
Copy link

stoinov commented Jul 7, 2018

I am using docker image like this:
docker run -d --restart unless-stopped --name tasmoadmin -p 9001:80 -v /etc/tasmoadmin:/data -e APACHE_SERVER_NAME=tasmoadmin.example.com raymondmm/tasmoadmin
It was working fine and I updated a sonoff. I Tried logging today after the machine was off for a week or so and I got:
Warning: session_start(): open(/tmp/sess_151oa80i2sgrv2buqi9eld5l0i, O_RDWR) failed: Permission denied (13) in /var/www/tasmoadmin/includes/top.php on line 7
Warning: session_start(): Failed to read session data: files (path: ) in /var/www/tasmoadmin/includes/top.php on line 7

I tried restarting and reinstalling, which updated to version 1.3.1 but the issue is the same. I removed the configuration folder and it recreated it while asking me to register. It them updated the file with username and pass but I still cannot login and see those messages.

@reloxx13
Copy link
Collaborator

reloxx13 commented Jul 7, 2018

i dotn know what caused it, but i changed the session path now to inside the tasmoadmin dir.
pls wait for the next release or check the rights of /tmp on your sever.

@stoinov
Copy link
Author

stoinov commented Jul 7, 2018

I checked and they are rwxrwxrwt. I've recently updated my distro which could've caused it, but still this should work as far as I can see. Waiting for the update to confirm your fix.

@reloxx13
Copy link
Collaborator

reloxx13 commented Jul 8, 2018

heya,

do you set the data dir on a CIFS mount if you create the container?

@RaymondMouthaan
Copy link
Contributor

just a remark : "APACHE_SERVER_NAME=tasmoadmin.example.com" is no longer required in your docker command. ps not related to your issue.

@stoinov
Copy link
Author

stoinov commented Jul 8, 2018

It's local file on the system an it worked fine initially. I tried recreating it as I said and it created the files anew and set the proper permissions. No errors in the docker LOG.

@stoinov
Copy link
Author

stoinov commented Jul 8, 2018

OK confirming that it works with 1.3.3 and 1.4.0 now.

One side question - on my changelog page it shows Old Commit Revision => Unknown is this expected for docker? I removed the old image and downloaded the 1.4.0 but still the same.

@stoinov
Copy link
Author

stoinov commented Jul 8, 2018

oh and one minor cosmetic issue that I forgot to mention - the both error messages I saw initially were partially hidden by the top navigation bar. I just saw the first one because it was rendered for half a second before the navigation and then went to see the page source.

@reloxx13
Copy link
Collaborator

reloxx13 commented Jul 8, 2018

heya,

changelog)
yup, its supposed to be "Unknown", cuz their is no way atm to get the currect docker version.
if you use git&selfupdate function, the version is known. the page is the selfupdate page and was hidden for docker and is now showing up again as changelog page :)

cosmetic)
ideally you should never see those errors, devs can edit the css with the developer toolbar of the browser to remove the header.
todo: catch the fail and show proper error msg box

Offtopic: im looking for a GUI to see if the containers git image updates, do you know sth? how do you know their is a new update for tasmoadmin docker? portiner just allows me to pull the latest, but it does now show a notification for a new update.

@reloxx13 reloxx13 closed this as completed Sep 4, 2018
@stoinov
Copy link
Author

stoinov commented Sep 6, 2018

Sorry for the delay - I missed the notification for your last comment.
I use https://github.com/v2tec/watchtower for the automatic updates - set to check every day at 4 AM and it will auto deploy whatever it founds.

inverse pushed a commit to inverse/TasmoAdmin that referenced this issue Oct 14, 2020
inverse pushed a commit to inverse/TasmoAdmin that referenced this issue Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants