Regression? Can't push to repository after upgrade from 10.7.5 to latest build OD-5111 (10.7.7) (OD-1934)
blackfan23 opened 2 years ago

Working with selfhosted version, that has worked flawlessly until latest upgrade. Getting error:

remote: 001f# service=git-receive-pack remote: 0000Command execution failed (command: git receive-pack --stateless-rpc --advertise-refs ., exit code: 128) fatal: unable to access 'https://xxx.redacted-url.com/myproject/': The requested URL returned error: 500

on git push.

I can still access the web app without problems so the server is reachable.

  • blackfan23 changed fields 2 years ago
    Name Previous Value Current Value
    Priority
    Normal
    Major
  • Robin Shen commented 2 years ago

    Please check server log. There should exist more detail of the error.

  • blackfan23 commented 2 years ago
    2024-06-01 06:22:45,930 ERROR [pool-3-thread-125] i.o.s.g.c.AdvertiseReceiveRefsCommand To add an exception for this directory, call:
    2024-06-01 06:22:45,931 ERROR [pool-3-thread-125] i.o.s.g.c.AdvertiseReceiveRefsCommand 
    2024-06-01 06:22:45,931 ERROR [pool-3-thread-125] i.o.s.g.c.AdvertiseReceiveRefsCommand 	git config --global --add safe.directory .
    2024-06-01 06:22:45,932 ERROR [qtp1536814-84] i.o.s.security.ExceptionHandleFilter Error processing servlet request
    io.onedev.commons.utils.ExplicitException: Command execution failed (command: git receive-pack --stateless-rpc --advertise-refs ., exit code: 128)
    	at io.onedev.commons.utils.command.ExecutionResult.buildException(ExecutionResult.java:54)
    	at io.onedev.commons.utils.command.ExecutionResult.checkReturnCode(ExecutionResult.java:62)
    	at io.onedev.server.git.command.AdvertiseReceiveRefsCommand.run(AdvertiseReceiveRefsCommand.java:53)
    	at io.onedev.server.git.GitFilter.processRefs(GitFilter.java:310)
    	[...]
    

    This seems to be the server-side equivalent. I executed the command as mentioned. Now I can press again.

    git config --global --add safe.directory .
    

    I realize that this must be related to my local setup (permissions and such), but it did not exist prior to the update.

    Anyways I thank you for your excellent work Robin! Have a great weekend.

  • Robin Shen commented 2 years ago

    No problem, and thanks for using OneDev and report problems.

    Nothing changed since 10.7.5 in this regard. Maybe some file permission is changed unintentionally? It will help a lot if you can reproduce the issue.

  • Robin Shen commented 2 years ago

    Another possible reason is that you are upgrading/running with a different user than previous user running 10.7.5

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Bug
Priority
Major
Assignee
Affected Versions
OD-5111 (10.7.7)
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1934
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover