I upgraded from 5f4a40c to 2a0e86d (current master release), but when I restarted the service I got Error 1067. I tried lunching the exe from the command line and I got:
Expect user 'X' but current user is: Y
So I changed the RUN_USER to X inside app.ini, relaunched the exe from the cmd and gitea was up and running. But when I try to start gitea from the service (registered with nssm) I keep getting the same error 1067. Any idea of what might have changed?
Windows should not check that RUN_USER. See https://github.com/go-gitea/gitea/blob/2262811e407facea09047e94aa1850c192511587/modules/setting/setting.go#L430
I think this condition is evaluating to false
https://github.com/go-gitea/gitea/blob/2262811e407facea09047e94aa1850c192511587/modules/setting/setting.go#L431
I'm kinda new to Go and maybe I'm wrong, but I searched the code and i don't see any assignment to the variable isWindows, that was removed by #6095
Great catch, it looks as though IsWindows is used in several places but currently not being set anymore as you noted.
This would be a simple PR to add back in, would you like to do it or would you prefer someone else do it?
If you are comfortable building Gitea yourself you could test to see if it fixes your issue (I'm thinking it probably will)
This weekend I'll try to fix and built it, if everything works fine I'll submit the PR if someone won't have done it already (it should be my first contribution to gitea 馃挭).
Most helpful comment
This weekend I'll try to fix and built it, if everything works fine I'll submit the PR if someone won't have done it already (it should be my first contribution to gitea 馃挭).