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

Can't save any (admin) settings #133

Open
AlexNathan345 opened this issue Nov 11, 2019 · 10 comments
Open

Can't save any (admin) settings #133

AlexNathan345 opened this issue Nov 11, 2019 · 10 comments

Comments

@AlexNathan345
Copy link

AlexNathan345 commented Nov 11, 2019

I successfully installed the 4 dockers and can login with the admin account. However, when I try to set a scan directory in 'Admin area' I cannot select/enter any folders (none are offered, when I type my own it doesn't save).

When I login as a user and go to the 'Settings' area I cannot save any settings. Entering name/email address or uploading a photo - none of these save and are blank when I next go to the 'Settings' area.

Any idea what might be going on here? Thanks so much for your help.

@cesalo
Copy link

cesalo commented Nov 11, 2019

I also can't save any settings for a user and the only directory i could see was /data so I had to map /data to the directory of my pictures, that finally did the trick.

@AlexNathan345
Copy link
Author

AlexNathan345 commented Nov 11, 2019 via email

@cesalo
Copy link

cesalo commented Nov 12, 2019

I declared the volumen "data" pointing to the photo folder:

    volumes:
      - /share/photos:/data # CHANGE ME
      - /home/protected_media:/code/protected_media # CHANGE ME
      - /home/logs:/code/logs # CHANGE ME

Originally I thought data was the internal config file of the docker instances but it was the only one I could see in the admin section so I changed to point to my photos folder, that worked for me at least.

@AlexNathan345
Copy link
Author

That's exactly what I did, but I can't see the /data folder anywhere in the admin area. When I try to select a folder there's nothing to select...

@cesalo
Copy link

cesalo commented Nov 13, 2019

weird .. this is what I can see:

image

@chancez
Copy link

chancez commented Nov 15, 2019

I'm hitting this issue also. I simply can't change any setting on my profile nor can I in the admin setting see any folders listed when trying to set the sync dir, even though i can if I exec into the container and check.

@AlexNathan345
Copy link
Author

And all I can see is this:
image

@chancez
Copy link

chancez commented Nov 15, 2019

Yep, that's also what I'm seeing the same as @AlexNathan345

@AlexNathan345
Copy link
Author

Is there any solution for this problems? Can the settings be edited somewhere else if the web admin doesn't work as it doesn't save them?

@fly-man-
Copy link

fly-man- commented Sep 18, 2020

What I did to get this to work properly (as a hacked solution)

docker exec -it ownphotos-db /bin/bash

psql -h localhost -U postgres

\c ownphotos

Then I use ran an update query to actually update those values in the database itself

UPDATE api_user SET scan_directory = 'folder to scan' WHERE id = id

The values you can change are:

  • id
  • password
  • last_login
  • is_superuser
  • username
  • first_name
  • last_name
  • email
  • is_staff
  • is_active
  • date_joined
  • scan_directory
  • avatar
  • nextcloud_server_address
  • nextcloud_username
  • nextcloud_app_password
  • nextcloud_scan_directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants