Closed sushant-varanasi closed 1 year ago
I didn't merge because of "[DON'T MERGE]" in the name.
Why downgrade to older version of android?
https://github.com/RoboTutorLLC/RTFace_Login/blob/development/app/build.gradle Build.gradle specifies compileSdkVersion as 23
Code apparently assumes there's only one .apk file, which it moves to temp.apk, then renames.
Yes, usually Travis builds and adds the latest apk to an empty directory. A similar protocol has been followed for RoboTutor too.
@JackMostow Everything happens very perfectly until there's some authentication issue at the end :(
Check line 1493 - https://app.travis-ci.com/github/RoboTutorLLC/RTFace_Login
Where does the access attempt occur, with what user and password? https://github.com/sushant-varanasi has write access in Settings for RTFace_Login.
Where does the access attempt occur, with what user and password? https://github.com/sushant-varanasi has write access in Settings for RTFace_Login.
GitHub token has been specified (in encrypted form) in .travis.yml for Travis to have write access. Can you generate a new GH token, and I'll try again then?
I don't really understand how tokens work, and fear that if I generate a new token, something else may stop working. Can you use this token that I generated previously? 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
RoboTutor_2020 uses android-26. Why use a different version here? I don't do the merge because [DON'T MERGE].
The compileSdkVersions set in both projects are different.
This error continues. I've tried some alternate combinations (using the GH Token that you had shared).
Google found this; I don't know if it's news or useful: How do I fix authentication failed in git? It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager too. type "Credential Manager" in Windows Search menu open it. Windows Credentials Manager->Windows Credential and under Generic Credentials edit your git password.
Stackoverflow reports a problem like you found: Password for 'https://git@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://git@github.com/eurydyce/MDANSE.git/'
Your log doesn't show a password request. What username and password is the failed script using? Did you already find this article? Does it help?
Google found this; I don't know if it's news or useful: How do I fix authentication failed in git? It happens if you change your login or password of git service account (Git). You need to change it in Windows Credentials Manager too. type "Credential Manager" in Windows Search menu open it. Windows Credentials Manager->Windows Credential and under Generic Credentials edit your git password.
Stackoverflow reports a problem like you found: Password for 'https://git@github.com': remote: Invalid username or password. fatal: Authentication failed for 'https://git@github.com/eurydyce/MDANSE.git/'
Your log doesn't show a password request. What username and password is the failed script using? Did you already find this article? Does it help?
GitHub Token is used as an alternative to access using username and password. I've seen the stack overflow answers but none helped. The windows credential manager that you mentioned has no relation as it isn't any particular user/local system trying to access this repo, it's Travis that isn't able to push to the repo using the GitHub Token.
I tried to browse to github.com/eurydyce to understand the problem but I don't have access to it. I'm able to browse to https://git@github.com but it's stuck on "loading activity". (I'll try to upload a screenshot in case it helps.) Can you see MDANSE.git? Is the error that your script can't see it in the first place, or that MDANSE.git tries to do something you lack privs for?
One hypothesis is that the token doesn't have the authorization it needs. E.g. is the token limited to specific repos, not this one? Does the same script work in, e.g., RoboTutor_2020 or any of our other repos? What is the failing part of the script trying to do?
Can you test a variant of the failing step that accesses some other site (e.g. other repo) you know the token works for?
As a fallback, can you use a username and password to get the access you need?
This error continues. I've tried some alternate combinations (using the GH Token that you had shared).
I think I had a similar issue with the exact same error message when trying to push a commit to RoboTutor2020. For me, it turned out to be an issue with my github login on my laptop. Are you able to push any commits to this repo? Maybe try pushing an empty commit?
@sushant-varanasi - Chirag suggested I try creating another token. If I do, which scopes do you need?
@sushant-varanasi - Chirag mentioned that logging into git on the local machine isn't the same as logging into GitHub.
8/26/2021 update:
update_apk.sh is generating the new apk but can't push it to GitHub due to failing authentication, even though we can manually push it to GitHub using a token.
Tokens were missing some apparently required "powers" (checkboxes) so Jack updated the tokens to add them. The newest token (expires 9/2/2021) has even more (for public repos) but Travis authentication still fails.
Why does Travis work in robotutor_2020 but not RTFaceLogin? Because robotutor_2020 is private but RTFaceLogin is public?
Sushant will review travis.yml and update_apk.sh line by line for clues, focusing on lines different between the two repos.
@sushant-varanasi @sansyrox - PR #10 got automatically merged when I merged #18. We don't know why: Merged JackMostow merged 2 commits into development from apk_generation 5 minutes ago
If appropriate, please reopen #18 (by reverting it?). Still do whatever is needed to make apk generation work. Then merge or delete PR #13, whichever is appropriate. Thanks! - Jack
@rohankulkz if you are also working on the same issue, you might want to have a look at this thread.
RoboTutorLLC/RTFace_Login, 13
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.SdkManagerCli.main(SdkManagerCli.java:103)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 4 more
@sushant-varanasi The licenses problem that we had got fixed by explicitly running
yes | sdkmanager "platforms;android-29"
yes | sdkmanager "build-tools;26.0.1"
I am currently blocked on the above issue. It seems like it is not being able to find the Android SDK/JAVA. Do you have any idea about this?
Girish – Just the usual, which is to ask Dr. Google. java.lang.noclassdeffounderror javax/xml/bind/jaxbexception. Does it help? - Jack
RoboTutorLLC/RTFace_Login, 13
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.SdkManagerCli.main(SdkManagerCli.java:103)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 4 more
From: Girish Garg @.> Sent: Tuesday, July 05, 2022 3:28 PM To: RoboTutorLLC/RTFace_Login @.> Cc: Jack Mostow @.>; Mention @.> Subject: Re: [RoboTutorLLC/RTFace_Login] Travis APK build fixes (#13)
@sushant-varanasihttps://github.com/sushant-varanasi The licenses problem that we had got fixed by explicitly running yes | sdkmanager "platforms;android-29" yes | sdkmanager "build-tools;26.0.1" I am currently blocked on the above issue. It seems like it is not being able to find the Android SDK/JAVA. Do you have any idea about this?
— Reply to this email directly, view it on GitHubhttps://github.com/RoboTutorLLC/RTFace_Login/pull/13#issuecomment-1175418691, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC64MWPUUVKJODHZINGGHRLVSSECNANCNFSM5CSGN3MA. You are receiving this because you were mentioned.Message ID: @.**@.>>
Girish - These changes seem like increasingly desperate measures. Did you ask Sushant or Sanskar? Did either of them reply?
I'm happy to ask them if you send me a precise description of the problem and our unsuccessful attempts to solve it.
For now, do you want to compile the apk manually, upload it to the Download RoboTutor folder in GDrive, and move on to MAB?
On Tue, Aug 2, 2022 at 10:32 AM Girish Garg @.***> wrote:
- Setup Travis CLI on local machine
- Run travis login -g
--debug - Run travis encrypt
- Put the encrypted token in travis.yml file
— Reply to this email directly, view it on GitHub https://github.com/RoboTutorLLC/RTFace_Login/pull/13#issuecomment-1202703045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC64MWKQ5XJXUYGZS73AXXLVXEWPXANCNFSM5CSGN3MA . You are receiving this because you were mentioned.Message ID: @.***>
Hello Prof. As far as I remember, apk generation remained an unsolved issue. I had worked with Sushant on it.
replaced with GitHub actions
APK build fails in Travis logs, and as a result, a new apk doesn't get added to apk branch
https://app.travis-ci.com/github/RoboTutorLLC/RTFace_Login