Windows new repo 500 #1545

Closed
opened 2025-11-02 04:04:31 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @wune5 on GitHub (Feb 19, 2018).

  • Gitea version (or commit ref): 1.4.0+rc1-8-gade1839
  • Git version: 2.15.1
  • Operating system: Windows 2012 R2
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

First new repo, mark "Initialize this repository with selected files and template".
Click create,see 500 err.
Log:
2018/02/19 19:42:40 [I] Log Mode: File(Info)
2018/02/19 19:42:40 [I] XORM Log Mode: File(Info)
2018/02/19 19:42:40 [I] Cache Service Enabled
2018/02/19 19:42:40 [I] Session Service Enabled
2018/02/19 19:42:41 [I] Git Version: 2.15.1
2018/02/19 19:42:41 [I] SQLite3 Supported
2018/02/19 19:42:41 [I] Run Mode: Production
2018/02/19 19:42:41 [I] First-time run install finished!
2018/02/19 19:43:10 [...routers/repo/repo.go:146 handleCreateError()] [E] CreatePost: initRepository: prepareRepoCommit: git clone: exec(4:initRepository(git clone): D:\gitserver\pyle\t.git) failed: exit status 128() stdout: stderr: Cloning into 'C:\Users\ADMINI~1\AppData\Local\Temp\3\gitea-t-542145100'...
error: cannot spawn sh: No such file or directory
fatal: unable to fork

  • Cloning into 'C:\Users\ADMINI~1\AppData\Local\Temp\3\gitea-t-542145100'...
    error: cannot spawn sh: No such file or directory
    fatal: unable to fork

Screenshots

Originally created by @wune5 on GitHub (Feb 19, 2018). - Gitea version (or commit ref): 1.4.0+rc1-8-gade1839 - Git version: 2.15.1 - Operating system: Windows 2012 R2 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description First new repo, mark "Initialize this repository with selected files and template". Click create,see 500 err. Log: 2018/02/19 19:42:40 [I] Log Mode: File(Info) 2018/02/19 19:42:40 [I] XORM Log Mode: File(Info) 2018/02/19 19:42:40 [I] Cache Service Enabled 2018/02/19 19:42:40 [I] Session Service Enabled 2018/02/19 19:42:41 [I] Git Version: 2.15.1 2018/02/19 19:42:41 [I] SQLite3 Supported 2018/02/19 19:42:41 [I] Run Mode: Production 2018/02/19 19:42:41 [I] First-time run install finished! 2018/02/19 19:43:10 [...routers/repo/repo.go:146 handleCreateError()] [E] CreatePost: initRepository: prepareRepoCommit: git clone: exec(4:initRepository(git clone): D:\gitserver\pyle\t.git) failed: exit status 128(<nil>) stdout: stderr: Cloning into 'C:\Users\ADMINI~1\AppData\Local\Temp\3\gitea-t-542145100'... error: cannot spawn sh: No such file or directory fatal: unable to fork - Cloning into 'C:\Users\ADMINI~1\AppData\Local\Temp\3\gitea-t-542145100'... error: cannot spawn sh: No such file or directory fatal: unable to fork ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 04:04:31 -06:00
Author
Owner

@wune5 commented on GitHub (Feb 19, 2018):

Thank lunny.xiao in QQ group 328432459.
His solution is add "LOCAL_ROOT_URL=http://127.0.0.1:3000" in custom/app.ini under "server".

@wune5 commented on GitHub (Feb 19, 2018): Thank lunny.xiao in QQ group 328432459. His solution is add "LOCAL_ROOT_URL=http://127.0.0.1:3000" in custom/app.ini under "server".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1545