Opened 6 years ago

Closed 6 years ago

#2182 closed task (fixed)

Strange message from git.osgeo.org after commit

Reported by: dbaston Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords:
Cc:

Description

A commit push succeeds but gives some error messages implying that it didn't:

Username for 'https://git.osgeo.org': dbaston
Password for 'https://dbaston@git.osgeo.org': 
Counting objects: 4, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 406 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Error: Unable to get database connection within 0 seconds. (OperationalError: fe_sendauth: no password supplied
remote: )
remote: <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S'/><script>window.location.replace('/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S');</script></head><body style='background-color:white; color:white;'>
remote: 
remote: 
remote: Authentication required
remote: <!--
remote: -->
remote: 
remote: </body></html>                                                                                                                                                                                                                                                                                                            <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S'/><script>window.location.replace('/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S');</script></head><body style='background-color:white; color:white;'>
remote: 
remote: 
remote: Authentication required
remote: <!--
remote: -->
remote: 
remote: </body></html>                                                                                                                                                                                                                                                                                                            Thanks for letting us know
To https://git.osgeo.org/gitea/geos/geos.git
   311989f..c13f075  master -> master

Change History (4)

comment:1 by strk, 6 years ago

commit c13f07516098e0cb4b4fe5c58c678d27b38b580e landed in the repository, so I guess the error was sent by a post-receive hook.

One thing done by it is invokation of trac-admin. For trac.osgeo.org we have trac run under the name of "www-data" user, which sets the password in its .pgpass file, but Gitea runs as user "git", which didn't have the .pgpass file. Now it does.

Can you please check if the problem is now fixed ?

Ideally we should update some wiki page about this (osgeo-sac)

comment:2 by dbaston, 6 years ago

Now I get this message. Not sure if this is expected.

Username for 'https://git.osgeo.org': dbaston
Password for 'https://dbaston@git.osgeo.org': 
Counting objects: 11, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 832 bytes | 0 bytes/s, done.
Total 11 (delta 10), reused 0 (delta 0)
remote: <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S'/><script>window.location.replace('/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S');</script></head><body style='background-color:white; color:white;'>
remote: 
remote: 
remote: Authentication required
remote: <!--
remote: -->
remote: 
remote: </body></html>                                                                                                                                                                                                                                                                                                            <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S'/><script>window.location.replace('/login?from=%2Fview%2FGEOS%2Fjob%2F%2FGEOS_Master%2FbuildWithParameters%3Ftoken%3Dge0S');</script></head><body style='background-color:white; color:white;'>
remote: 
remote: 
remote: Authentication required
remote: <!--
remote: -->
remote: 
remote: </body></html>
Thanks for letting us know
To https://git.osgeo.org/gitea/geos/geos.git

comment:3 by strk, 6 years ago

Sounds like Jenkins needs some love. Regina, can you fix this one ?

comment:4 by strk, 6 years ago

Resolution: fixed
Status: newclosed

Should be fixed now, that error was from Jenkins, which a post-update hook was hitting on an obsoleted URL. I dropped hitting that URL completely, as now that communication is done via web-hooks instead. See https://git.osgeo.org/gitea/geos/geos-git-hooks/commit/e4c31e33c38c425d737dece6a6268d4d455a0eae

Note: See TracTickets for help on using tickets.