-
Notifications
You must be signed in to change notification settings - Fork 33
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
Gaps for Windows unable to create properties file. #263
Comments
If you manually create the directory it will save the file. |
Did you try setting the jar as administrator? That's the actual executable. |
Sorry, manually create which directory? I am having this same issue and running jar as admin etc has not resolved the problem. |
c:\usr\data\ I cannot remember if i copied the properties file there or it was created. but once that directory was created manually it was no issues running. |
yea based on the application-windows.yaml its using the wrong directory altogether which by default appears to be set to be 'C:\Program Files (x86)\Gaps\data' which i assumed to be malleable. had i not found this issue i would have never gotten it running as i was running up against the same issue. I had assumed based on the ability to schedule it to run that a task would be created or some such but it appears you have to leave the command window open in perpetuity if you want it to work? useful for sure, just cumbersome at current imo. |
not sure if this was the answer but i set this up yesterday and downloaded the latest v 17 java.. 8 was installed anyway but couldn't use it. then downloaded 11 separately and then seemed to work i also manually created the folders in multiple drives in multiple locations. |
are you saying you were able to change the location of where it saved its data? was that using the .yaml if so? That's supposed to be stored alongside the .jar? because i have the java SDK 11.x installed (alongside the java 8) and the only way i've been able to get it to work is by manually creating a data folder in c:\usr\data |
What I did and not sure what worked was.. Ensure I was using Java 11 (as I had the latest 17). it then worked. As an added extra I used NSSM to set a service so that it starts if I reboot the server. |
Manually creating C:\usr\data\gaps.properties solved this for me. |
Describe the bug
Gaps unable to create properties file to save necessary information.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect values for settings to save in properties file.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Tried running CMD as administrator, made no difference.
The text was updated successfully, but these errors were encountered: