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

Unable to Login at all using touchUI on 3.5" screen PI B #272

Closed
SandwichRising opened this issue Dec 29, 2018 · 19 comments
Closed

Unable to Login at all using touchUI on 3.5" screen PI B #272

SandwichRising opened this issue Dec 29, 2018 · 19 comments
Labels

Comments

@SandwichRising
Copy link

SandwichRising commented Dec 29, 2018

OctoPrint 1.3.10
TouchUI 0.3.12
octopi 0.15.1

I have competed setup of touchui on my pi, and am able to login using my credentials using a PC over the network. I have also setup the touchui to auto-load on my pi on startup. When it finishes loading it prompts me to "Please log in" even though I set it to autologin my user. My octoprint login doesn't work, it gives me an "Incorrect name or password" error, and does the same thing with my pi su login as well. However I am using the same credentials I use to login with a pc over the network and it appears to be logging in passively just fine.

I have attempted editing my ~/.octoprint/config.yaml to the following:

AccessControl:
autologinAs: myoctopilogin
autologinLocal: true
localNetworks:
- 127.0.0.0/8
- ::1/128
salt: 4zwrHYQ3BoWqDbSWYIyHIGhM29sn7jRW
api:
key:

But when I try to login a couple times and check the file again is has been updated to:

AccessControl:
autologinAs: myoctopilogin
autologinLocal: true
localNetworks:
- 127.0.0.0/8
- ::1/128
salt: 4zwrHYQ3BoWqDbSWYIyHIGhM29sn7jRW
accessControl:
salt: EuN40TnP6BbPn1hF2mwTtH5coHxDOdMP
api:
key: 75D081F106BA4B2AA400140CB5D2DBEA

So it adds the extra accessControl: line but only after I try to login, and I'm not sure why. Also, that's not my actual user api key from inside octoprint, and adding it from the used settings to that file doesn't seem to help. I am restarting both octoprint and touchui after any changes are made.

In the log it looks like I'm getting some sort of 401 POST error. My octoprint.log is here and also attached.

octoprint.log

@BillyBlaze
Copy link
Owner

BillyBlaze commented Dec 30, 2018

Make sure you have the right whitespaces (2 before autoLoginAs etc, and 4 underneath localnetworks:). Also it's accessControl and not AccessControl

it should look something like this:

accessControl:
  autologinAs: myoctopilogin
  autologinLocal: true
  salt: somelonghash
  localnetworks:
    - "127.0.0.1/8"
    - "::1/128"

@SandwichRising
Copy link
Author

Yeah, githubs autoformat was getting rid of my spaces. And I think because mine has "Access" instead of "access" that's probably the root of all my problems, and I'm not sure how it happened. And that's why it keeps remaking it when I try to log in. I will make the changes and try again, thanks! Ill keep you updated.

@SandwichRising
Copy link
Author

Okay, that was the root of the problem. Now I've got it auto logging in. My touchscreen stopped working at that point, so now I have to figure out if that's hardware or software. Thank you for the help though, my original issue is resolved.

@SandwichRising
Copy link
Author

I damaged my touchscreen hardware, but have it replaced now. All my issues are solved. Thank you for the help, BillyBlaze!

@jeor112
Copy link

jeor112 commented Jan 7, 2019

Hi BillyBlaze
I have the same issue. I have tried to reinstalling a few times with the same results.
I have tried to do follow this steps and inserted this:
localnetworks:
- "127.0.0.1/8"
- "::1/128"
in the config.yaml file, but there is still no autologin.

Now, the config file looks like this:

accessControl:
autologinLocal: true
autologinAs: " myusername "
salt: " somelonghash "
localnetworks:
- "127.0.0.1/8"
- "::1/128"
api:
key: " It is the correct API key "
plugins:
announcements:
_config_version: 1
channels:
_blog:
read_until: 1545132000
_important:
read_until: 1521111600
_octopi:
read_until: 1527588900

To be able to login, I will have to connect USB keyboard :-(

I hope you can help!
Thx in advance

Edit: I forgot to tell, that the virtual keyboard works when I´m in the touch GUI. And it´s only when I reboot the RPI.

Update:
I have disablet the Themeify plugin and after reboot it sems to work now.

@docb7
Copy link

docb7 commented Jan 12, 2019

Hi, I have the same issue. I did not have Themeify installed but I took the chance and deactivated all Plugins I had, but nothing helps. My config.yaml looks good and the autologin works from a normal browser. But not via Touch UI on the octopi. Also there is no virtual keyboard and when I attach a real keyboard I always get username/password wrong. Anyone got an idea what went wrong?
Ocotpi is 1.3.10, TouchUI 0.3.12

@SandwichRising
Copy link
Author

SandwichRising commented Jan 13, 2019

One of the problems I had with the pi was passwords. My pi defaults to a UK layout typically, and I have to tell it to use a US layout instead. The symbols are at different locations for both layouts which was the root of my password problems. Also, did you set the api key to match your octopi api in the config.yaml? I think it needs to be set.

@docb7
Copy link

docb7 commented Jan 14, 2019

Ha, I tried that and it might help for finding the problem. I changed my password to 123 (just for testing of course ;-) and when I use that via a real keyboard (virtual keyboard does not pop up unfortunately) the site just seems to reload. There is no "incorrect user/password" message like when I punch in a wrong password but the same login page again without any change.

@SandwichRising
Copy link
Author

Did you add the api key from octoprint?

@docb7
Copy link

docb7 commented Jan 14, 2019

Nope, where can I do that? I have installed touch ui on the same raspi as Octopi runs on, is there still a need for putting the api key somewhere? If yes - where?

@docb7
Copy link

docb7 commented Jan 14, 2019

Do I need to put the Octoprint Api Key into the config.yaml?

@SandwichRising
Copy link
Author

I put the OctoPrint api from inside the OctoPrint interface into the config.yaml on mine before it would autologin.

@docb7
Copy link

docb7 commented Jan 16, 2019

Ah, that was done automatically somehow. The api key is in config.yaml so that is not the error.

@sbias
Copy link

sbias commented Jan 17, 2019

try to set AUTODETECT_PORT=false in /etc/default/touchui . Don't know why (yet) ... but this solved the problem for me.

@docb7
Copy link

docb7 commented Jan 18, 2019

Real crazy, after about 10 restarts (cause I shutdown the system when not printing) the login works. I have changed nothing ;-) Really funny. Thanks for all your support!

@stale
Copy link

stale bot commented Feb 3, 2019

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Feb 3, 2019
@jglazer63
Copy link

jglazer63 commented Feb 9, 2019

Nothing I can do will automatically log into TouchUI. It constantly stops for username/password. I checked the config and the spaces are correct. There is an API value (hopefully the correct one). I cannot edit touchui to set AUTODETECT_PORT to false. It's "not allowed". Any more ideas?

@stale stale bot removed the inactive label Feb 9, 2019
@stale
Copy link

stale bot commented Feb 23, 2019

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Feb 23, 2019
@stale stale bot closed this as completed Mar 2, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants