Hi,
When i run Stash as an windows service i got the error "cant find the stash_home" i have in the enviroment set up the stash_home, and if i do an echo then it prints out the hole path. I also set it in the setenv.bat file, with the same result. If i stop the service and use "start-stash.bat" then it works. But not as an service. I have no spaces in the path way, running 32 bit, on both java and server. Jira is working fine on the same maschine. please help
Mikael
Mikal,
Please have a look at the documentation. Note that when you run Stash as a Windows service
Stash installation directory
>.STASH_HOME
as asystem environment variable.When u use my user on the service, then it works, so it must be that the local user have the wrong access rights. Thanks all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikal,
Just as word of warning, you mentioned admin rights. Have you read this (it's mentioned/linked in the Windows documentation)?
https://confluence.atlassian.com/display/STASHKB/Git+Push+Operations+Extremely+Slow+on+Windows
If you're running as a local user make sure they don't have administrator rights as it will affect the performance of Stash.
Cheers,
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mikal,
Please have a look at the documentation. Note that when you run Stash as a Windows service
Stash installation directory
>.STASH_HOME
as asystem environment variable.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried them both. In the setenv.bat and enviroment settings on the server as "STASH_HOME" the same result. It does however work if i start it manually. But soon i log out of the server it shuts down, so that's why it needeed to be run at an service
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you running the service under a dedicated user?
Does this user have all the necessary access rights? (So at least the same rights as you have).
Best regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried to login with that user and check if he can see the stash_home directory variable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mikael
Is it configured as a system variable or a user variable?
It should be a system variable.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i have tried them both. In the setenv.bat and enviroment settings on the server as "STASH_HOME" the same result. It does however work if i start it manually. But soon i log out of the server it shuts down, so that's why it needeed to be run at an service
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.