-
Notifications
You must be signed in to change notification settings - Fork 34
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
Always Get Incorrect Credentials #54
Comments
Hi @snibbo71, |
Hi, I cannot use App Passwords as it requires 2FA and I do not want to give Google my phone number. I'd appreciate any support. Thanks. |
Is there any more info in the log that you could post? |
This is what I see in my docker logs:
Note that the security errors are most likely due to my restrictive web server config. I don't think they have anything to do with the authentication error. Is there a debug logging I could enable to get more detailed messages? Thanks for looking into this. |
The SecurityCheckError is an exception thrown during login (see service.py and https://github.com/NoMore201/googleplay-api/blob/master/gpapi/googleplay.py#L235). In the current version of googleplay-api the exception text says you shall visit https://accounts.google.com/b/0/DisplayUnlockCaptcha. I don't know how this exactly works but perhaps it helps :) |
Thanks for pointing me to the unlock captcha page. I tried it and it did not help, unfortunately. Same error message. |
Did you check that you have the most recent versions?
|
I'm using the latest docker image from https://github.com/NoMore201/playmaker. This might be out of date, though. |
Yes, unfortunately it is. Can you please either use https://hub.docker.com/r/fellek/playmaker (creator of the PR) or build it yourself (it's as easy as checking it out and calling |
Sorry for my late reply. Using fellek's docker image fixed the issue for me. Thanks for pointing me to it! |
Great :) You're welcome! |
Hello, I'm not opening a new issue as this one is still open, I have the same problem, I never succeed to get pass the credentials. I tried with my main password, with an app password, from the web interface, each time I got a wrong credentials. I tried to create the file credentials.conf with the app password in it as instructed. I'm just not sure where to place it. I mounted my docker volume as /docker/Playmaker to /data, at least it can get the certificate from here, so it should work. I also tried to place the conf file in a fdroid subfolder so within docker it should be seen as /data/fdroid/credentials.conf . But still nothing work, I got the login page at after restarting the container. I used the Fellek Docker container, version is v0.6.4. |
I also have the issue with wrong credentials. However, it just ocured recently, everything worked as expected before. I used the latest noMore201 docker image and also tried the Fellek image. But no luck, always the wrong credentials error. The error in the log is 'server says: BadAuthentication'. I've no idea what to do next. |
I also had the same issue that login didn't work at all, so I checked out the branch from #53 updated googleplay-api to 0.4.4 and it mostly works again. I can log in, manually download apps, but I am not sure if the update check is working. |
Thanks, but how do I do that? I'm using docker and just build the fellek image again but no luck. Still "BadAuthentication". In my understandig if I build the docker image with "docker build https://github.com/fellek/playmaker.git --tag=playmaker:fellek" it should include the updated googleplay-api. Am I wrong? |
Hi @mlmss, can you please paste the output of |
Hi @Jonny007-MKD here is the output of the playmaker logs: `Checking config.py file Appending playmaker data to config.py Skipping fdroid update WARNING:tornado.access:404 GET /favicon.ico (172.17.0.1) 1.94ms LoginError: 'server says: BadAuthentication'` |
I'm following along and working on the same thing. My logs are: I had the same tornado warning but only when downloading the docker image instead of building it. |
I also tried both nomore201/playmaker and fellek/playmaker:fellek from Dockerhub and both can't auth: |
There's a recent issue here as well: |
Meanwhile I did a lot of testing and I have at least a bit of success.
At the moment I don't know how to solve this issue. |
I had also seen this NoMore201/googleplay-api#84 (comment) suggesting python3.7.7. I'm running Ubuntu 18.04 and the repo is showing up to 3.7.5 so pushing past that was another route I was considering. |
But how do I do that? In felleks image it is 3.7.2 and in crazled it is 3.8.3. Where do I get 3.7.7 and how do I get it into the image? |
@mlmss The script from crazled appears to pull it. Or did in the past. Maybe here: https://github.com/docker-library/python/tree/43e801fc6ced5379e70a058a3d4fa3c2ee8c8976 |
It is pulling python 3-buster which is currently 3.8.3. However I figured out how to change felleks dockerfile to pull 3.7.7-stretch. Unfortunately no luck - still "wrong credentials" and "Bad Authentication" in the log. So 3.7.7 is not the solution I'm afraid. |
I'm just trying to use 3.8-rc-stretch with fellek. This is the latest version I could find for stretch. No luck. Container crashes with many errors. |
For reference as I seem to be the only person for whom it works: I am using Debian Stable with Python 3.7.3 [tool.poetry.dependencies]
python = "^3.7"
tornado = "<5"
gpapi = "0.4.4"
tornado-crontab = "^0.4.0"
pycryptodome = "^3.9.6"
pyaxmlparser = "^0.3.24"
sentry_sdk = "^0.14.1"
fdroidserver = "^1.1.6" which means I also use the latest fdroidserver by the fdroid team. This is the output of a (playmaker) ➜ ~ pip freeze
androguard==3.3.5
apache-libcloud==3.0.0
args==0.1.0
asn1crypto==1.3.0
bcrypt==3.1.7
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
click==7.1.2
clint==0.5.1
colorama==0.4.3
crontab==0.22.8
cryptography==2.9.2
cycler==0.10.0
decorator==4.4.2
defusedxml==0.6.0
docker-py==1.10.6
docker-pycreds==0.4.0
fdroidserver==1.1.7
future==0.18.2
gitdb==4.0.5
GitPython==3.1.3
gpapi==0.4.4
idna==2.9
ipython==5.9.0
ipython-genutils==0.2.0
kiwisolver==1.2.0
lxml==4.5.1
matplotlib==3.2.1
mwclient==0.10.1
networkx==2.4
numpy==1.18.4
oauthlib==3.1.0
paramiko==2.7.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==7.1.2
prompt-toolkit==1.0.18
protobuf==3.12.2
ptyprocess==0.6.0
pyasn1==0.4.8
pyasn1-modules==0.2.1
pyaxmlparser==0.3.24
pycparser==2.20
pycryptodome==3.9.7
pydot==1.4.1
Pygments==2.6.1
PyNaCl==1.4.0
pyparsing==2.4.7
python-dateutil==2.8.1
python-vagrant==0.5.15
PyYAML==5.3.1
qrcode==6.1
requests==2.23.0
requests-oauthlib==1.3.0
ruamel.yaml==0.16.10
ruamel.yaml.clib==0.2.0
sentry-sdk==0.14.4
simplegeneric==0.8.1
six==1.15.0
smmap==3.0.4
tornado==4.5.3
tornado-crontab==0.4.0
traitlets==4.3.3
urllib3==1.25.9
wcwidth==0.1.9
websocket-client==0.57.0 I am using 559f770 of the code which at the moment is the latest version of the #53 branch by @fellek |
It works for me with my fork, too. I'm going to have a loo at crazeld's fork. |
@Jonny007-MKD your fork works for me, too. |
Finally, after some more testing that I'm close to a fully functional playmaker again.
I don't know what that key error means or is it something else? |
@mlmss are you using the latest version of fdroidserver? (1.1.7) |
@MLNSS: Interesting you had to upgrade to buster and jdk11, I am using that since December. |
Probably not worth anything but I managed to get everything to install without errors. libncurse5 was not available in apt so I went with 6. openjdk-11 threw errors when installing the sdk-tools so I looked up the alternative command-line-tools info. So, this Dockerfile that uses the new command-line tools:
FROM python:3-buster
RUN apt-get update && #RUN wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip RUN mkdir /opt/android-sdk-linux ENV ANDROID_HOME=/opt/android-sdk-linux RUN echo 'y' | rm -rf tools RUN mkdir -p /data/fdroid/repo && WORKDIR /opt/playmaker RUN groupadd -g 999 pmuser && VOLUME /data/fdroid EXPOSE 5000 But of course it doesn't load at all in the browser. No errors in docker logs. How can I see what's going on under the hood? I'm not familiar with most of the python packages. I broke something, but cannot see what. EDIT: Correction - I had Nginx configured wrong. It works fine now. |
Ok, some more testing. As @Jonny007-MKD said already it was 1.1.4 for fdroidserver.
Now it is 1.1.7 and viola no errors anymore and the fdroid repo updates as expected. Thanks a lot to everybody for all the help. |
@mlmss: great! I'll change my Dockerfile to use pip, too :) thanks! |
I'm sorry, perhaps I was a bit to optimistic. It turned out that there are some more issues. After downloading several apps yesterday and today I now get always an error message:
In the log there is a message:
All the apps I tried are definitely free of charge, so the error doesn't make sense. The second issue is related to the app description in the repo. It is always
I found out that all the files in the metadata folder end with .yml whereas in my old backup folder the files end with .txt.
I probably could remove the "AuthorName" line from each file but there should be a proper solution to that. |
Hi, thanks for pushing this issue forwards!
In this case you have to go first in Google App Store and press button for given App to make download through your server possible... Weird but working for me.
It sounds like #PR53. I had to change some Python files because of casesensitiv fieldnames. If you just switched to #PR53 and you have some old cached files I suggest, there is some incompatibility. It could help to remove all cached files... But of course there will be some work to regain your desired apps.. If someone finds a way to do this in automated way please give a hint! |
@fellek Thanks for the hint, but I've build the whole repo from scratch already. I don't understand, why there are yml files now whereas there were txt files previously. |
@mlmss thnks for your answer. In this case I have no idea. (updatescript is locatet at playmaker/service.py, but I really don't know which code is responsible for .txt files in cache!) |
@fellek Thanks a lot. With regard to the failed downloads, your hint did the trick. I ignore txt files problem at the moment as it is not important. Just for my understanding: the fdroid updater script should convert the yml files to txt right? |
@mlmss good to know that this hint is still working. All about fdroid updater I have no knowlegde.. Sorry! |
@fellek Ok, no problem. But I have two other questions because the problem with fdroidserverupdatetool is back. It seems that it is related to the apksigner and the sdk level. In this respect what should this line in your dockerfile do?
If I put it in my dockerfile I have an error. Could I do it afterwards in the container? |
@mlmss This command replaces
Probably that means it's adding a comment char |
@Jonny007-MKD Thanks for the hint. I figured out that this line isn't necessary anymore. It is related to this issue but seems to be resolved in the latest gpapi. Meanwhile it turned out the the newly occured errors in the fdroid repo update were caused by the Android Webview apk. At the moment where I downloaded that app in my repo I got errors during fdroid repo update:
So apart from the missing description in the metadata everything is working as expected now. |
Just for the sake of completeness and perhaps it will help others here is my Dockerfile:
I'm using it with the repo from @fellek and it is based on the work from @Jonny007-MKD , @crazled and @garrettboone. Thanks a lot for all the support. |
@mlmss thats great, later on I will try to integrate it into my fork / repo. |
I'm using CentOS 8 with python 3.6 and fdroidserver 1.2.0. On every upstreamed fork still get |
@mlmss I was trying to build your dockerfile but stoppt by various rights or files missing, running container. thats why the container stops working. did you have similar problems?
|
@fellek I'm sorry to hear that you have problems. I definitely did not have such issues. By now it is quite a while ago that I did it, so I cannot recall everything and maybe some versions have changed since. I'm on holiday now and cannot check it for the moment. I will do it next week and let you know. |
@mlmss Thanks! Have a nice holiday! |
Follow-up to #54 (comment) I just restarted my server and it seems like without any change to the code, I can't log into playmaker any more. I guess Google randomly rate limits or blocks IP addresses. |
As alternative to playmaker, currently it's possible to use Aurora Store from F-Droid (install/updates apps from Play Store, no account is required, it performs some anonymous login) or alternate stores like Aptoide which covers a lot of apps from Play Store (but Aptoide shows ads sometimes). |
Trying to login for the first time. I've put a credentials.conf in the /data/fdroid directory with the correct credentials. The Docker log shows LoginError: Server Says 'Unknown_ERR'
Trying to login through the login screen always gives Incorrect Credentials and the same error in the Docker log
I've switched Less Secure Apps to be allowed on my Google Account but still no joy. The username and password are definitely correct.
Am I doing something wrong or is this app now broken?
Ta!
The text was updated successfully, but these errors were encountered: