Giter Site home page Giter Site logo

Comments (12)

derneuere avatar derneuere commented on May 19, 2024

It looks like the backend server can't connect to the db, because it can't execute the command in the entrypoint.sh to create the admin user. Maybe it is a linking issue within the Synology Os? I would try updating the Synology docker add-on and trying it again. Do you use other services that are linked with docker-compose?

No Problem! :D

from librephotos.

danielk117 avatar danielk117 commented on May 19, 2024

just checked db and redis

admin@NAS:~$ sudo docker logs librephotos-db
PostgreSQL Database directory appears to contain a database; Skipping initialization

2020-12-10 08:20:38.517 UTC [1] LOG:  starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2020-12-10 08:20:38.519 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2020-12-10 08:20:38.519 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2020-12-10 08:20:38.636 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-12-10 08:20:38.643 UTC [25] LOG:  database system was shut down at 2020-12-10 08:20:36 UTC
2020-12-10 08:20:38.654 UTC [1] LOG:  database system is ready to accept connections

admin@NAS:~$ sudo docker logs librephotos-redis
1:C 10 Dec 2020 08:20:37.796 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 10 Dec 2020 08:20:37.797 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 10 Dec 2020 08:20:37.797 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 10 Dec 2020 08:20:37.799 * Running mode=standalone, port=6379.
1:M 10 Dec 2020 08:20:37.799 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 10 Dec 2020 08:20:37.799 # Server initialized
1:M 10 Dec 2020 08:20:37.799 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 10 Dec 2020 08:20:37.800 * Loading RDB produced by version 6.0.9
1:M 10 Dec 2020 08:20:37.800 * RDB age 3 seconds
1:M 10 Dec 2020 08:20:37.800 * RDB memory usage when created 0.77 Mb
1:M 10 Dec 2020 08:20:37.800 * DB loaded from disk: 0.000 seconds
1:M 10 Dec 2020 08:20:37.800 * Ready to accept connections

seems to work fine.

docker and compose are the "latest" versions from synology. but they are old...

admin@NAS:~$ sudo docker -v
Docker version 18.09.8, build bfed4f5
admin@NAS:~$ sudo docker-compose -v
docker-compose version 1.24.0, build 0aa59064

I was able to manual update the binaries to the real latest ones. I will give a try later.

from librephotos.

derneuere avatar derneuere commented on May 19, 2024

Okay it seems to be an old issue: hooram/ownphotos#10
Will push an update soon. It is wrong in the dockerfile.

from librephotos.

derneuere avatar derneuere commented on May 19, 2024

I created a new image. Please do a docker-compose pull and then a docker-compose up. It should work now. If it does close the issue :)

from librephotos.

danielk117 avatar danielk117 commented on May 19, 2024

Seems to work. I was able to login and browse through the frontend. 👍
But the Backend does not scan photos. My volumes are

      - /volume3/docker/librephotos/photos:/data
      - /volume3/docker/librephotos/media:/code/protected_media
      - /volume3/docker/librephotos/logs:/code/logs

I put some photos to the photos folder und click on:
grafik
backend-log show on click:
127.0.0.1 - - [2020-12-10 20:58:51] "POST /build/ HTTP/1.1" 200 139 0.001794
I checked the permissions. The Backend is allowed to access his /data folder and change the files inside it.

from librephotos.

derneuere avatar derneuere commented on May 19, 2024

You need to log in as the demo user and set up the directory for the demo user. To do this, click the top right button, and go to "Admin Area". On this page, it will show a list of users. Set the "Scan Directory" for the demo user by clicking the editing button:
image
After that you can go to Dashboard - Library and click the green "Scan photos (file system)" button.

from librephotos.

danielk117 avatar danielk117 commented on May 19, 2024

now it works!
sorry for my mistake. i thought i had scanned the entire interface for settings. 😄

from librephotos.

danielk117 avatar danielk117 commented on May 19, 2024

do you need some help with docs?
like "how to add a folder to scan to"? 😄
or how to install librephotos on a Synology NAS?

from librephotos.

derneuere avatar derneuere commented on May 19, 2024

Yes that would be great! Open a pull request or write me on discord if you have some docs :)

from librephotos.

edsonsbj avatar edsonsbj commented on May 19, 2024

First I don't know if this question has been closed, however yesterday when installing librephotos docker it presented the same error. No connection to backend server, try again in a few minutes.

from librephotos.

derneuere avatar derneuere commented on May 19, 2024

You probably missed the step renaming librephotos.env to .env

from librephotos.

edsonsbj avatar edsonsbj commented on May 19, 2024

Você provavelmente perdeu a etapa de renomeação de librephotos.env para .env

I ran the process of copying librephotos.env to .env and changed the folder variables and nothing. I don't know where I saw that the user is admin and the password is admin and that it could be changed in the .env but in the env there is nothing mentioning the user and password of the interface

from librephotos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.