Skip to content

LFS uses ROOT_URL to upload LFS objects during git push #5641

@VultureX

Description

@VultureX
  • Gitea version: gitea-1.6.2-windows-4.0-amd64
  • Git version: Git-2.20.1-64-bit
  • Operating system: Windows 10 1803
  • Database:
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Whenever I try to push new files that are tracked by LFS with a computer inside the local network the push operation fails, because it's trying to connect to the ROOT_URL defined in app.ini.
I can change the ROOT_URL to point to the local address, but then computers from outside obviously can't connect. I do not have a domain name registered, so I'm using explicit IPs. Is there a way to solve this?

"D:\Programs\Git\bin\git.exe" push --recurse-submodules=check --progress "origin" refs/heads/master:refs/heads/master Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done LFS: Put https://xxx.xxx.xxx.xxx:3000/XX/Test.git/info/lfs/objects/aed286ac1fa67fe7050ff63cac3056decd38d37743525fd06de777c80265a189: dial tcp xxx.xxx.xxx.xxx:3000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. error: failed to push some refs to 'https://192.168.192.49:3000/XX/Test.git' Done

app.ini

[server]
ROOT_URL = https://xxx.xxx.xxx.xxx:3000/

I've tried changing the lfs url with the following command on the pc in the local network:

git config --add lfs.url https://192.168.192.49:3000/XX/Test.git/info/lfs
git config --add lfs.pushurl https://192.168.192.49:3000/XX/Test.git/info/lfs

But this had no effect

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions