"Gitea: Internal Error" when using git clone SSH #7313

Closed
opened 2025-11-02 07:22:41 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Hill-98 on GitHub (May 8, 2021).

  • Gitea version (or commit ref): 1.14.1
  • Git version: 2.20.1
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
May 08 15:48:36 mivm systemd[1]: Started Gitea (Git with a cup of tea).
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:82:runWeb() [I] Starting Gitea on PID: 7792
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:126:runWeb() [I] Global init
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:134:GlobalInit() [T] AppPath: /usr/local/bin/gitea
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:135:GlobalInit() [T] AppWorkPath: /var/lib/gitea
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:136:GlobalInit() [T] Custom path: /var/lib/gitea/custom
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:137:GlobalInit() [T] Log path: /var/lib/gitea/log
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:49:checkRunMode() [I] Run Mode: Prod
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/log.go:287:newLogService() [I] Gitea v1.14.1 built with GNU Make 4.1, go1.16.3 : bindata, sqlite, sqlite_unlock_notify
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/log.go:333:newLogService() [I] Gitea Log Mode: Console(Console:debug)
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/setting/cache.go:73:newCacheService() [I] Cache Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/setting/cache.go:88:newCacheService() [I] Last Commit Cache Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/setting/session.go:77:newSessionService() [I] Session Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:109:newMailService() [I] Mail Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:120:newRegisterMailService() [I] Register Mail Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:131:newNotifyMailService() [I] Notify Mail Service Enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:158:initAttachments() [I] Initialising Attachment storage with type:
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/attachments
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:152:initAvatars() [I] Initialising Avatar storage with type:
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:170:initRepoAvatars() [I] Initialising Repository Avatar storage with type:
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:164:initLFS() [I] Initialising LFS storage with type:
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/lfs
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: push_update Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: push_update-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: mail Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: mail-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: notification-service Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: notification-service-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:150:GlobalInit() [I] SQLite3 Supported
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:68:initDBEngine() [I] Beginning ORM engine initialization.
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:75:initDBEngine() [I] ORM engine initialization attempt #1/10...
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...om/urfave/cli/app.go:524:HandleAction() [I] PING DATABASE mysql
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table user Column keep_activity_private db default is , struct default is false
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table user Column keep_activity_private db nullable is true, struct nullable is false
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table repository Column original_service_type db default is 0, struct default is
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table webhook Column is_system_webhook db default is 0, struct default is
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table webhook Column is_system_webhook db nullable is false, struct nullable is true
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table tracked_time Column time db nullable is true, struct nullable is false
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table language_stat Column language db nullable is true, struct nullable is false
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table session has column created_unix but struct has not related field
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:155:GlobalInit() [I] ORM engine initialization successful!
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: update_mirrors
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: repo_health_check
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: check_repo_stats
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: archive_cleanup
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: sync_external_users
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: deleted_branches_cleanup
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: update_migration_poster_id
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: cleanup_hook_task_table
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_inactive_accounts
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_repo_archives
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: git_gc_repos
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_sshkeys
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_sshprincipals
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_hooks
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: reinit_missing_repos
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_missing_repos
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_generated_repository_avatars
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:142:func2() [I] PID 7792: Initializing Issue Indexer: bleve
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:171:func2() [D] Created Bleve Indexer
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: issue_indexer Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:221:func3() [I] Issue Indexer Initialization took 1.715118ms
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...xer/stats/indexer.go:38:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:162:Run() [D] PersistableChannelUniqueQueue: repo_stats_update Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] unique-level: repo_stats_update-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...xer/stats/indexer.go:84:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:162:Run() [D] PersistableChannelUniqueQueue: pr_patch_checker Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] unique-level: pr_patch_checker-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: task Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: task-level Starting
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:189:listen() [I] Listen: http://127.0.0.1:8081
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:192:listen() [I] LFS server enabled
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/graceful/server.go:55:NewServer() [I] Starting new Web server: tcp:127.0.0.1:8081 on PID: 7792
May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/graceful/server.go:66:func1() [D] Starting server on tcp:127.0.0.1:8081 (PID: 7792)
May 08 15:49:27 mivm gitea[7792]: 2021/05/08 15:49:27 ...ters/private/serv.go:404:ServCommand() [D] Serv Results:
May 08 15:49:27 mivm gitea[7792]:         IsWiki: false
May 08 15:49:27 mivm gitea[7792]:         IsDeployKey: false
May 08 15:49:27 mivm gitea[7792]:         KeyID: 6        KeyName: Hill-LPC
May 08 15:49:27 mivm gitea[7792]:         UserName: hill
May 08 15:49:27 mivm gitea[7792]:         UserID: 1
May 08 15:49:27 mivm gitea[7792]:         OwnerName: hill
May 08 15:49:27 mivm gitea[7792]:         RepoName: opcache-panel
May 08 15:49:27 mivm gitea[7792]:         RepoID: 4

Description

When I use git clone and use SSH authentication, git will prompt Gitea: Internal Error, git output:

->  git clone gitea@${git_host}:hill/opcache-panel.git
Cloning into 'opcache-panel'...
Gitea: Internal error
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ssh -T gitea @ $ {git_host} output:

Hi there, hill! You've successfully authenticated with the key named Hill-LPC, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.

I don't know where I have a problem, try.gitea.io everything is normal.

If you like, you can use Chinese to communicate with me.

Originally created by @Hill-98 on GitHub (May 8, 2021). - Gitea version (or commit ref): 1.14.1 - Git version: 2.20.1 - Operating system: Debian 10 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: ``` May 08 15:48:36 mivm systemd[1]: Started Gitea (Git with a cup of tea). May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:82:runWeb() [I] Starting Gitea on PID: 7792 May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:126:runWeb() [I] Global init May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/git.go:101:newGit() [I] Git Version: 2.20.1, Wire Protocol Version 2 Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:134:GlobalInit() [T] AppPath: /usr/local/bin/gitea May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:135:GlobalInit() [T] AppWorkPath: /var/lib/gitea May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:136:GlobalInit() [T] Custom path: /var/lib/gitea/custom May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:137:GlobalInit() [T] Log path: /var/lib/gitea/log May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:49:checkRunMode() [I] Run Mode: Prod May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/log.go:287:newLogService() [I] Gitea v1.14.1 built with GNU Make 4.1, go1.16.3 : bindata, sqlite, sqlite_unlock_notify May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...dules/setting/log.go:333:newLogService() [I] Gitea Log Mode: Console(Console:debug) May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/setting/cache.go:73:newCacheService() [I] Cache Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/setting/cache.go:88:newCacheService() [I] Last Commit Cache Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/setting/session.go:77:newSessionService() [I] Session Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:109:newMailService() [I] Mail Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:120:newRegisterMailService() [I] Register Mail Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...es/setting/mailer.go:131:newNotifyMailService() [I] Notify Mail Service Enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:158:initAttachments() [I] Initialising Attachment storage with type: May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/attachments May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:152:initAvatars() [I] Initialising Avatar storage with type: May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:170:initRepoAvatars() [I] Initialising Repository Avatar storage with type: May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/storage/storage.go:164:initLFS() [I] Initialising LFS storage with type: May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...les/storage/local.go:47:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/lfs May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: push_update Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: push_update-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: mail Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: mail-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: notification-service Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: notification-service-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:150:GlobalInit() [I] SQLite3 Supported May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:68:initDBEngine() [I] Beginning ORM engine initialization. May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:75:initDBEngine() [I] ORM engine initialization attempt #1/10... May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...om/urfave/cli/app.go:524:HandleAction() [I] PING DATABASE mysql May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table user Column keep_activity_private db default is , struct default is false May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table user Column keep_activity_private db nullable is true, struct nullable is false May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table repository Column original_service_type db default is 0, struct default is May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table webhook Column is_system_webhook db default is 0, struct default is May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table webhook Column is_system_webhook db nullable is false, struct nullable is true May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table tracked_time Column time db nullable is true, struct nullable is false May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table language_stat Column language db nullable is true, struct nullable is false May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...rfave/cli/command.go:173:Run() [W] Table session has column created_unix but struct has not related field May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 routers/init.go:155:GlobalInit() [I] ORM engine initialization successful! May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: update_mirrors May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: repo_health_check May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: check_repo_stats May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: archive_cleanup May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: sync_external_users May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: deleted_branches_cleanup May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: update_migration_poster_id May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: cleanup_hook_task_table May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_inactive_accounts May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_repo_archives May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: git_gc_repos May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_sshkeys May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_sshprincipals May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: resync_all_hooks May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: reinit_missing_repos May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_missing_repos May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...odules/cron/tasks.go:120:RegisterTask() [D] Registering task: delete_generated_repository_avatars May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:142:func2() [I] PID 7792: Initializing Issue Indexer: bleve May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:171:func2() [D] Created Bleve Indexer May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: issue_indexer Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...er/issues/indexer.go:221:func3() [I] Issue Indexer Initialization took 1.715118ms May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...xer/stats/indexer.go:38:populateRepoIndexer() [I] Populating the repo stats indexer with existing repositories May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:162:Run() [D] PersistableChannelUniqueQueue: repo_stats_update Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] unique-level: repo_stats_update-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...xer/stats/indexer.go:84:populateRepoIndexer() [I] Done (re)populating the repo stats indexer with existing repositories May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:162:Run() [D] PersistableChannelUniqueQueue: pr_patch_checker Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] unique-level: pr_patch_checker-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ueue_disk_channel.go:137:Run() [D] PersistableChannelQueue: task Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...ue/queue_bytefifo.go:96:Run() [D] level: task-level Starting May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:189:listen() [I] Listen: http://127.0.0.1:8081 May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 cmd/web.go:192:listen() [I] LFS server enabled May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/graceful/server.go:55:NewServer() [I] Starting new Web server: tcp:127.0.0.1:8081 on PID: 7792 May 08 15:48:36 mivm gitea[7792]: 2021/05/08 15:48:36 ...s/graceful/server.go:66:func1() [D] Starting server on tcp:127.0.0.1:8081 (PID: 7792) May 08 15:49:27 mivm gitea[7792]: 2021/05/08 15:49:27 ...ters/private/serv.go:404:ServCommand() [D] Serv Results: May 08 15:49:27 mivm gitea[7792]: IsWiki: false May 08 15:49:27 mivm gitea[7792]: IsDeployKey: false May 08 15:49:27 mivm gitea[7792]: KeyID: 6 KeyName: Hill-LPC May 08 15:49:27 mivm gitea[7792]: UserName: hill May 08 15:49:27 mivm gitea[7792]: UserID: 1 May 08 15:49:27 mivm gitea[7792]: OwnerName: hill May 08 15:49:27 mivm gitea[7792]: RepoName: opcache-panel May 08 15:49:27 mivm gitea[7792]: RepoID: 4 ``` ## Description When I use `git clone` and use SSH authentication, git will prompt` Gitea: Internal Error`, git output: ``` -> git clone gitea@${git_host}:hill/opcache-panel.git Cloning into 'opcache-panel'... Gitea: Internal error fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` `ssh -T gitea @ $ {git_host}` output: ``` Hi there, hill! You've successfully authenticated with the key named Hill-LPC, but Gitea does not provide shell access. If this is unexpected, please log in with password and setup Gitea under another user. ``` I don't know where I have a problem, [try.gitea.io](try.gitea.io) everything is normal. If you like, you can use Chinese to communicate with me.
Author
Owner

@a1012112796 commented on GitHub (May 8, 2021):

need ssh error log, you can get it by set RUN_MODE to dev or test. Thanks.

@a1012112796 commented on GitHub (May 8, 2021): need ssh error log, you can get it by set ``RUN_MODE`` to ``dev`` or ``test``. Thanks.
Author
Owner

@Hill-98 commented on GitHub (May 8, 2021):

need ssh error log, you can get it by set RUN_MODE to dev or test. Thanks.

Thanks. I will get the log again.

@Hill-98 commented on GitHub (May 8, 2021): > need ssh error log, you can get it by set `RUN_MODE` to `dev` or `test`. Thanks. Thanks. I will get the log again.
Author
Owner

@Hill-98 commented on GitHub (May 8, 2021):

I changed RUN_MODE to dev, execute git again, output:

Cloning into 'opcache-panel'...
Gitea: Internal error
Failed to execute git command: chdir /usr/local/bin/data/gitea-repositories: no such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I seem to know the problem.

@Hill-98 commented on GitHub (May 8, 2021): I changed `RUN_MODE` to` dev`, execute `git` again, output: ``` Cloning into 'opcache-panel'... Gitea: Internal error Failed to execute git command: chdir /usr/local/bin/data/gitea-repositories: no such file or directory fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ``` I seem to know the problem.
Author
Owner

@Hill-98 commented on GitHub (May 8, 2021):

I set APP_DATA_PATH and successfully solved the problem

@Hill-98 commented on GitHub (May 8, 2021): I set `APP_DATA_PATH` and successfully solved the problem
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7313