Resolved:
Changed
LOCAL_ROOT_URL = http://192.168.1.101:3001/
to
LOCAL_ROOT_URL = http://localhost:3001/
----
Hi I have a couple of problems
1. (Minor) I can't access the service locally, only remotely.
2. (Major) I can create repositories but can't push to the repositories, whether it be via a git client or via 'new file' on the repository pages themselves.
gitea.log
error: failed to push some refs to '/data/git/repositories/admin/test.git'
- remote:
remote: Gitea: Internal Server Connection Error
To /data/git/repositories/admin/test.git
! [remote rejected] 007f9f88*********52da694e9 -> main (pre-receive hook declined)
error: failed to push some refs to '/data/git/repositories/admin/test.git'
2025/02/18 10:56:57 ...tory/files/update.go:256:ChangeRepoFiles() [E] *git.ErrPushRejected PushRejected Error: exit status 1 - remote:
remote: Gitea: Internal Server Connection Error
To /data/git/repositories/admin/test.git
! [remote rejected] 007f9f88*********52da694e9 -> main (pre-receive hook declined)
conf/app.ini
...
[server]
PROTOCOL= http
APP_DATA_PATH = /data/gitea
DOMAIN = gitea.***.com
#SSH_DOMAIN = 192.168.1.101
HTTP_PORT = 3001
HTTP_ADDR = 0.0.0.0
LOCAL_ROOT_URL = http://192.168.1.101:3001/
ROOT_URL = https://gitea.***.com/
DISABLE_SSH = true
#SSH_PORT = 8022
#SSH_LISTEN_PORT = 8022
LFS_START_SERVER = true
LFS_JWT_SECRET = z-c_q5H8***86I
OFFLINE_MODE = true
...
container settings (omitted mysql connector entries)
"22/tcp": [{
"HostIp": "0.0.0.0",
"HostPort": "8022"
},
{
"HostIp": "::",
"HostPort": "8022"
}],
"3000/tcp": [{
"HostIp": "0.0.0.0",
"HostPort": "3001"
},
{
"HostIp": "::",
"HostPort": "3001"
}]
...
"traefik.enable": "true",
"traefik.http.routers.gitea.entryPoints": "https",
"traefik.http.routers.gitea.tls.certresolver": "letsencrypt",
"traefik.http.services.gitea.loadbalancer.server.port": "3001"
edit, full error with "RUN_MODE = dev"
Gitea: Internal Server Connection Error
Gitea: HookPreReceive(last) failed: unable to contact gitea "POST http://192.168.1.101:3001/api/internal/hook/pre-receive/admin/test2": Post "http://192.168.1.101:3001/api/internal/hook/pre-receive/admin/test2": read tcp 172.19.0.31:55218->192.168.1.101:3001: read: connection reset by peer