Skip to content
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

Open
bwttruman opened this issue Oct 18, 2021 · 9 comments
Open

Gaps for Windows unable to create properties file. #263

bwttruman opened this issue Oct 18, 2021 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@bwttruman
Copy link

Describe the bug
Gaps unable to create properties file to save necessary information.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://localhost:8484/configuration
  2. Input API key or Plex info
  3. Click "Save"
  4. See error
  5. Navigate to another page (missing, libraries, etc.) return to settings and nothing saved

Expected behavior
Expect values for settings to save in properties file.

Screenshots
If applicable, add screenshots to help explain your problem.

cmd_5I8yP5bwph

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Gaps Version 0.9.10

Tried running CMD as administrator, made no difference.

@bwttruman bwttruman added the bug Something isn't working label Oct 18, 2021
@NamantH
Copy link

NamantH commented Dec 29, 2021

If you manually create the directory it will save the file.

@JasonHHouse
Copy link
Owner

Tried running CMD as administrator, made no difference.

Did you try setting the jar as administrator? That's the actual executable.

@conorsavage
Copy link

If you manually create the directory it will save the file.

Sorry, manually create which directory? I am having this same issue and running jar as admin etc has not resolved the problem.

@NamantH
Copy link

NamantH commented Jan 3, 2022

If you manually create the directory it will save the file.

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.

@klepp0906
Copy link

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.

@Trekgater
Copy link

Trekgater commented Jan 23, 2022

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.

@klepp0906
Copy link

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

@Trekgater
Copy link

Trekgater commented Jan 25, 2022

What I did and not sure what worked was.. Ensure I was using Java 11 (as I had the latest 17).
Create the usr etc folders in c:\ and J:\ . I had the program in J: on my server. I created a blank properties file.
the YAML file didn't seem to make any difference as was pointing to the correct folder on J:

it then worked.

As an added extra I used NSSM to set a service so that it starts if I reboot the server.

@kzaoaai
Copy link

kzaoaai commented May 8, 2022

Manually creating C:\usr\data\gaps.properties solved this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants