-
Notifications
You must be signed in to change notification settings - Fork 37
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
"Login failed" error #138
Comments
Any progress? |
I've been watching this page couple of days with a hope of any progress here too :-) |
Some people have reported that this has solved itself. If this is not the case feel free to share your Pattypan logs, nothing has changed on Pattypan's side, and "it works on my machine". 😕 Additionally, you can try using a bot password to sign in instead of your regular one. |
Same problem, I will try using a different account for now. |
I have no other account. How I can share my log? |
One can generate bot passwords at https://commons.wikimedia.org/wiki/Special:BotPasswords. In the most recent version of Pattypan, one should be able to see a link to one's log at the start screen. |
Thanks, I generated a bot password and have tried to use that but still face the same problem. |
I have now been able to reproduce this error on a Windows computer. There is no indication of what could cause this in the logs. Two ideas I will be investigating in the coming days:
Two things that should be done/tested anyway and might contribute to a solution:
|
Not sure if it's related but I couldn't login either today. Here is the error log I had:
It may come from the network of the organisation where I work. |
Probably not. There is a movement to deprecate old methods of requesting tokens on MediaWiki, but Pattypan already uses the current method to make these requests. |
Hi, since it would be a bit more useful to provide you guys with more data, here is from me: OS: Ubuntu 20.04. java version "1.8.0_301" Log: aktron@aktron-ntb:~/Stažené$ java -jar p20.jar |
My last upload using pattypan was on 28th/Sep and I encountered the same problem probably on 1st/Oct. Isn't something expired on 30th/Sep? |
I have been able to track down a solution(#139) but not the exact cause. It seems to me like something changed on the Wikimedia side of things. It will still take me an evening or two to get a release out as my Pattypan environment isn't made for Java 8 which releases are currently based on. |
Another update. The solution doesn't support Java 8 which is currently used to build Pattypan. Two potential ways forward:
|
Is there any way how can I (as a non-programmer) help? I tried to compile the updated code but I failed (clearly well yes, but at least I tried ;- |
One question though: Given the similarity of Pattypan to other two uploaders (Vicuna and Commonist) and given the fact that their users reported difficulties with uploading (while logging in works just fine afaik) – shouldn't we be also affected by this? I am trying to foresee a new issue here (ritschwumm/commonist#26) |
This is almost certainly the Letsencrypt issue indicating outdated Certificate Authority files being used by the Java environment of the person running the code (whom should probably just update their Java installation or possibly even their OS, as sometimes JAVA uses the CAs of the Operating System) I'm not saying there might not also be a token issue, but |
There appear to be two behaviors reported here, one that results in an SSL error in the log and one which is completely silent. If it is caused by the Letsencrypt issue one should be able to resolve it by updating Java 8 to 8u141 or later. I however have similar issues with Java 11+. I'm working on porting Pattypan to Java 11+ to resolve this but it includes several migrations(wiki-java, openjfx) and there are some major changes needed to deal with distubrations as Java 11 no longer supports JavaFX which Pattypan is built upon. |
My Windows 10 Pattypan fails on login and simply logs this since two weeks: Oct 15, 2021 6:39:22 AM pattypan.Main main INFO: Wiki set as: commons.wikimedia.org Protocol set as: https:// Script path set as: /w Oct 15, 2021 6:39:22 AM pattypan.Main main INFO: Operating System: Windows 10 Pattypan Version: 20.04
(Alternative to Pattypan is the cumbersome GlamWikiToolset? University etc. system managers resented it.) |
A comment there: The root cause of this is that a MediaWiki change broke my bot framework, which all three of these tools use a legacy version of. This was fixed three months ago but cannot be easily backported - I rewrote that part of the code to use the new HTTP client in Java 11 some time ago. The solution is to port all three tools to Java 11 (and 17) so that they can use the latest version. MER-C 20:37, 13 January 2022 (UTC) |
Another comment there: Please bring back Pattypan for Windows users! I work for Dumbarton Oaks and we have an established workflow that was functional with Pattypan but has been stalled out for months now. You cannot underestimate the lead time that it takes institutions like ours which don't have Wikimedians in residence to be able to start a process like this, and having that process stymied is causing us to lose a lot of momentum. I recognize that we owe a great debt of gratitude to the people who have the knowhow to build these tools, especially when they are doing it on their own free time, so I am not putting this on them, but if there is anything the Wikimedia Foundation can do to help, institutions like mine would be extremely grateful. Bettinche (talk) 03:33, 19 January 2022 (UTC) |
Also the Image Archive of the ETH-Library (who I work for) is very hugely depending on the functionality and functioning of Pattypan! We are planning to upload more than 100'000 Swissair areal images and other. We used to work with GWToolset but as it was communicated that this tool is no longer being maintained, we changed our whole workflow to work with Pattypan and also helped other GLAM-institutions to get used with it. We would be very greatful if the tool would work again soon! |
There is now a third experimental release available aimed at resolving the upload issues reported in #144 and #133. Thank you @MER-C for the upstream fixes and your work on Wiki-java! https://github.com/Kartkod/pattypan/releases/tag/v20.10-experimental-3 It's still as tricky to install as the former experimental releases for the time being. I might try to compile it for old versions of Java so that it once again will be easier to use for many of you, however, it's not a long-term solution so in case someone has experience in packaging/publishing of JavaFX applications on Java 11+ please let me know. |
There is a common request for Windows installation instructions in case someone out there is able to test it successfully on Windows feel free to share how you did it here. On my end, I'm only available to refer you to the release page and official Java 11+ and OpenJFX documentation. |
I've managed to make a .jar that runs with Java 11 and includes the required JavaFX components: sebastian-berlin-wmse@8fc329b. I had no previous experience with the process so I took what I could find and put it together. As a result some things may not be done properly even if they work. There are also a few runtime errors that I haven't managed to fix yet (hence out commented code). As far as I can tell they are not critical (things like logging and a logo), though they should of course be fixed. Hopefully this is easy for someone familiar with the code. The commit message contains step-by-step instruction to create the .jar. Most of it probably can and should be automated. I haven't figured out how to add the modules with Ant and there are a few steps that the documentation recommends should be automated. It's only for Linux so far, but according to the documentation:
I think it's just a matter of downloading and copying the libraries for the platform(s) you want. Not sure if it's best to have one .jar per platform or one big for all of them. |
There is now a fourth experimental release available aimed at resolving the upload issues reported in #145. Again thank you @MER-C for the upstream fixes and your work on Wiki-java! https://github.com/Kartkod/pattypan/releases/tag/pattypan-21-10-experimental-4 |
I managed to add Ant stuff for the file juggling required to create the .jar. Only Linux libraries so far. Also, I'm working on a separate branch to make things easier: https://github.com/sebastian-berlin-wmse/pattypan/tree/package-java-11. |
@sebastian-berlin-wmse, that's neat, especially that it targets the zip files directly, maybe it could allow us to actually automate the entire thing because I think Ant can pull things from URLs. I will have a look at your work tomorrow. |
Yep, it looks like https://ant.apache.org/manual/Tasks/get.html could download files, if we want to automate even more. |
I managed to get rid of the errors that were introduced when packaging JavaFX. I'm not sure exactly what the issue was, something with threads :S Anyway, I made a .jar release based on the latest experimental release that includes libraries for Linux, Mac OS and Windows: https://github.com/sebastian-berlin-wmse/pattypan/releases/tag/pattypan-21-10-experimental-4-package This means that you should be able to run by just downloading, giving permissions to execute and double clicking. I only have access to Linux myself, so if anyone can test on Mac OS and Windows that would be great. |
@sebastian-berlin-wmse, that looks promising! To get all of the OS-specific files, do you download each SDKs and merge them? (for the JAR task) Would you be able to make a pull request to the kartkod branch? There are still some question marks regarding #143 and #145 but let's try to put this into the hands of as many testers as possible through an experimental release. |
I wonder to what extent Windows users can run .jar files compiled with Java 11+ as it's not a very common way of publishing apps. |
Yes, that was the way I did it. I thought that having the libraries for the different platforms in the .jar would be enough (Java being platform independent and all that :)). However, I finally managed to get a Virtualbox running Windows 10 up and it wasn't that simple. There are some extra classes in the Windows version of the .jar:s in JavaFX and more issues beyond that.
I'll make a pull request with just Linux support for now, since that actually works. Then I'll continue looking into Windows compatibility in a separate branch. Would it be a good idea to split off this (packaging) into its own issue? It's not directly related to this issue and there will probably be a bit more discussion before it's done. |
The fifth experimental release is here! Now Windows and Linux users should be able to run Pattypan the "good old way" without installing OpenJFX. Thanks to all of you who test these releases, all your feedback is very valuable. Thanks also to @sebastian-berlin-wmse for your work on packaging Pattypan for Linux and Windows. https://github.com/Kartkod/pattypan/releases/tag/pattypan-21-10-experimental-5 |
Dear Albin,
Thanks for the experimental version!
At Leiden University with Windows where pattypan19 still works
- except for the Login of course - it resulted at startup in the error message
"A JNI error has occurred, please check your installation and try again"
(For fear of ransomware, only system managers are allowed to do anything serious...)
Kind regards,
hans muller
User:Hansmuller, wikipedian in residence Leiden University
Op do., feb. 3, 2022 om 18:50, Albin Larsson schreef:
The fifth experimental release is here! Now Windows and Linux users should be able to run Pattypan the "good old way" without installing OpenJFX.
Thanks to all of you who test these releases, all your feedback is very valuable. Thanks also to @sebastian-berlin-wmse (https://github.com/sebastian-berlin-wmse) for your work on packaging Pattypan for Linux and Windows.
https://github.com/Kartkod/pattypan/releases/tag/pattypan-21-10-experimental-5 (https://github.com/Kartkod/pattypan/releases/tag/pattypan-21-10-experimental-5)
—
Reply to this email directly, view it on GitHub (#138 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ADTRB5JBGIIRSELRKORI2WDUZK55NANCNFSM5FC3MPMA).
Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you commented.Message ID:
|
@Hansmuller2, I think that error indicates that you need to update Java, Java 8 which Pattypan previously required will reach its end-of-life in less than two months so it won't be supported going forward. If you are able to you can check your java version with the following terminal command: |
The sixth experimental release is here. This fixes an error with charters from non-English alphabets displaying as question marks and adds support for MacOS. This experimental release is expected to be promoted into a stable release. https://github.com/Kartkod/pattypan/releases/tag/pattypan-21-10-experimental-6 |
Pattypan 22.02 is now available! https://github.com/yarl/pattypan/releases/tag/v22.02 Again thank you, for your issue reports and testing! |
Dear Yarl,
Thanks for the new pattypan 22.02 !
* Can it run on Windows?
Pattypan 22.02 for Windows?
"Java 11" at least was needed. However the latest Java for Windows version is called 8, which i have installed.
https://java.com/en/download/windows_manual.jsp (https://java.com/en/download/windows_manual.jsp)
"Java Downloads for Windows
Recommended Version 8 Update 321
Release date: January 18, 2022"
So pattypan 22.02 delivers an error message:
"Java Virtual Machine Launcher: Error: a JNI error has occurred, please check your installation and try again"
* You have a trick or other solution?
(Unfortunately, Linux is not supported at Leiden University, or allowed in my department.)
Thanks and cheers,
Hans Muller, Wikipedian in Residence Leiden University, African Studies Centre
***@***.***
Raoul Wallenberglaan 46
3527 WN Utrecht
(+31) 030 - 294 95 42
(+31) 06 - 128 24 700
Skype enzovoorts op afspraak
https://nl.linkedin.com/in/hans-muller-conservator
Op ma., feb. 7, 2022 om 16:16, Albin Larsson schreef:
Pattypan 22.02 is now available!
https://github.com/yarl/pattypan/releases/tag/v22.02 (https://github.com/yarl/pattypan/releases/tag/v22.02)
Again thank you, for your issue reports and testing!
—
Reply to this email directly, view it on GitHub (#138 (comment)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ADTRB5JVTG27SGXOVMRYI2LUZ7O37ANCNFSM5FC3MPMA).
Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you were mentioned.Message ID:
|
Hi Hans, The latest version of Java for Windows is Java 17. Java 8 is still recommended sometimes (including on the old java.com website) but it's not the lattest. I use Java 11 (I asked the IT guy at the university where I do my residency to install it) and Pattypan 22.02 works fine with it on Windows. Cheers, |
@Hansmuller2 What you saw is an old JRE page. JRE was a runtime package for Java, but was discontinued by Oracle. Hence the confusing message about its latest version. If you want Java 11 or later you should install either OpenJDK (which only gets few updates per big Java version, but should be fine) or one of other free builds of Java. For example Adoptium is quite popular (previously known as AdoptOpenJDK). Adoptium is now an Eclipse project, so should be pretty stable and the installer is quite friendly. I would probably go with Adpotium if you are not sure. |
Still not working for me, please tell me if it is resolved. I have been using Pattypan for uploading so many images, months have gone since I am not able to upload a single image. I raised this issue there. |
@VinayarajVR : did you install PattyPan 22.02 and Java 11 (or more)? Could you also tell us a bit more: what system do you use (Windows/Mac/Linux/Other, what version of Java, etc.) |
OS:Windows 11 Pro Vinayaraj |
PattyPan 22.02 need Java 11 or later to run. |
Thanks, let me see |
When I try to login, it doesn't work. Maybe is related to #115.
Log:
The text was updated successfully, but these errors were encountered: