-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Failed to create repository on windows network drive #4245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
gitea cannot support UNC path. I tried reference this url hope to solve my problems, but still failed. In app.ini , I set to different UNC path , both not works on gitea. 2018/06/15 00:09:06 [I] Log Mode: File(Info) I compare tested windows command prompt that work. Directory of \?\W: 06/11/2018 09:04 PM gitrepos10 File(s) 0 bytes 1 Dir(s) 4,398,046,511,104 bytes free |
add more reference , |
So this looks like golang issue so waiting for version 1.11 |
Hi @lafriks
I'm able to created folder on windows network drive. and then I'm tried to download gitea source code and rebuild it with my build golang developer version. After running new build gitea on my windows server that still failed and got same error message: The system cannot find the path specified. https://github.com/go-gitea/git/blob/master/repo.go Line No. 61 |
Hi @lafriks I stop Gitea Windows service and open a command prompt (cmd) as an Administrator, then run the following command: gitea.exe web, then Gitea able to create repository on windows network drive successfully. I close this issue. |
[x]
):Description
I found Gitea have problems to create repository on windows network drive. thus, I tried to using mklink command to creating symbolic links on networked drive that still no useful. Does anyone know how to configure gitea to access windows network drive?
My issue very close this problems : [os: IsDir doesn't work with Windows OneDrive #22579] golang/go#22579
My specific ROOT in app.ini as below. [repository] ROOT = W:/gitrepos1 <--- W: is network drive mapped.
D:>mklink /D “d:\gitrepos1” “W:\gitrepos1”
symbolic link created for d:\gitrepos1 <<===>> W:\gitrepos1
D:>net use
New connections will be remembered.
Status Local Remote Network
W: \xyz\gitprod1 xyz Network
The command completed successfully.
#gitea.log
2018/06/13 08:36:53 [I] Log Mode: File(Info)
2018/06/13 08:36:53 [I] XORM Log Mode: File(Info)
2018/06/13 08:36:53 [I] Cache Service Enabled
2018/06/13 08:36:53 [I] Session Service Enabled
2018/06/13 08:36:53 [I] Git Version: 2.16.2
2018/06/13 08:36:54 [I] SQLite3 Supported
2018/06/13 08:36:54 [I] Run Mode: Production
2018/06/13 08:36:55 [I] Listen: http://0.0.0.0:80
2018/06/13 08:36:55 [I] LFS server enabled
2018/06/13 08:38:08 […routers/repo/repo.go:146 handleCreateError()] [E] CreatePost: initRepository: InitRepository: chdir D:\gitrepos1\itadmin\test1.git: The system cannot find the path specified.
2018/06/13 08:38:59 […routers/repo/repo.go:146 handleCreateError()] [E] CreatePost: initRepository: InitRepository: chdir D:\gitrepos1\itadmin\test1.git: The system cannot find the path specified.
Screenshots
The text was updated successfully, but these errors were encountered: