GreenDelta / olca-app

Source code of openLCA
openlca.org
Mozilla Public License 2.0
184 stars 41 forks source link

question #345

Closed iamlinguo closed 10 months ago

iamlinguo commented 11 months ago

Git push exception 'Caused by: org. eclipse. jgit. errors. TransportException: http://localhost:8080/admin/test: Authentication not supported

” What could be the problem?

Leeeks commented 10 months ago

Hello, i have the same Problem. Setup and connection to the 2.0 Collaboration Server went seamless. Git push doesn't work for me though. Repo Connection Error Error2

SebastianGreve-GreenDelta commented 10 months ago

You are using the same credentials, with which you can login to the web interface?

Leeeks commented 10 months ago

Yes, exactly. The Login in the Webinterface works fine for Admin as well as for the user i created.

Sebastian Greve @.***> schrieb am Di., 15. Aug. 2023, 12:16:

You are using the same credentials, with which you can login to the web interface?

— Reply to this email directly, view it on GitHub https://github.com/GreenDelta/olca-app/issues/345#issuecomment-1678713589, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIBPOFFFFUZHV4YYZBKZRDXVND7PANCNFSM6AAAAAA3LIY55I . You are receiving this because you commented.Message ID: @.***>

SebastianGreve-GreenDelta commented 10 months ago

Did you install Java JDK or JRE on the server? I found an article describing an issue with JGit authentication when using the JRE

Leeeks commented 10 months ago

this is the java version running on the system: image

I tested this with OpenLCA 2.0 and 2.0.1. No luck unfortunately.

SebastianGreve-GreenDelta commented 10 months ago

I have installed the same java version, this should not be the issue. Are you behind a firewall or proxy? I can't reproduce the problem

Leeeks commented 10 months ago

Definitely no proxy. I also deactivated https and used the Linux Server machine to run the OpenLCA client to make sure, that the firewall is not the problem. I connected to the localhost succesfully: Error Localhost

I get the same error though: Localhost Error

Here is the according log text: Error3

SebastianGreve-GreenDelta commented 10 months ago

FYI Leeeks was able to push to a different server with the same client. So it seems to be something related to the server setup. The working server is an Ubuntu 22 with openjdk 17.0.8 installed and is using Apache2 as Reverse Proxy. Maybe that helps for further analysis

SebastianGreve-GreenDelta commented 10 months ago

The problem occurs with the admin user only it seems, we are working on a fix for this, but it seems you can avoid the issue by creating a another user and create repositories and push with this user. Thank you Leeeks for helping finding the cause of the problem

SebastianGreve-GreenDelta commented 10 months ago

The problem is related to a change in reserved names, which was not reflected in the installer. The name 'admin' is not allowed anymore. I updated the installer on the openLCA website. If you want to fix it in your running server, create a new admin user e.g. 'administrator' and delete the automatically created 'admin' user.