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

FATAL: database "photonix" does not exist #365

Open
beta4better opened this issue Dec 25, 2021 · 0 comments
Open

FATAL: database "photonix" does not exist #365

beta4better opened this issue Dec 25, 2021 · 0 comments

Comments

@beta4better
Copy link

Hi there,
Before I met this issue I successfully run Photonix on my macOS, and it works fine.
But when I want to deploy it to my home server which is running Debian 11. The docker config file is the same, after I run docker-compose up, the log shows FATAL: database "photonix" does not exist. I can see the homepage works fine, but I can not create the admin user.
May someone please help me out.

yuanch@debian11:/opt/photonix$ docker-compose up
Creating photonix-postgres ... done
Creating photonix-redis    ... done
Creating photonix          ... done
Attaching to photonix-redis, photonix-postgres, photonix
photonix-postgres | 2021-12-25 07:12:21.413 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
photonix-postgres | 2021-12-25 07:12:21.413 UTC [1] LOG:  listening on IPv6 address "::", port 5432
photonix    | DNS fwd/rev mismatch: postgres != photonix-postgres.photonix_default
photonix-postgres | 2021-12-25 07:12:21.442 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
photonix-redis | 1:C 25 Dec 2021 07:12:21.228 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
photonix-redis | 1:C 25 Dec 2021 07:12:21.228 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=1, just started
photonix-redis | 1:C 25 Dec 2021 07:12:21.228 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
photonix-redis | 1:M 25 Dec 2021 07:12:21.229 * monotonic clock: POSIX clock_gettime
photonix    | postgres [172.18.0.3] 5432 (postgresql) open
photonix-postgres | 2021-12-25 07:12:21.572 UTC [21] LOG:  database system was shut down at 2021-12-25 07:04:58 UTC
photonix    | Postgres is up
photonix    | Running migrations
photonix-redis | 1:M 25 Dec 2021 07:12:21.230 * Running mode=standalone, port=6379.
photonix-postgres | 2021-12-25 07:12:21.599 UTC [1] LOG:  database system is ready to accept connections
photonix-postgres | 2021-12-25 07:12:21.944 UTC [28] LOG:  incomplete startup packet
photonix-redis | 1:M 25 Dec 2021 07:12:21.230 # Server initialized
photonix-redis | 1:M 25 Dec 2021 07:12:21.230 # 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.
photonix-redis | 1:M 25 Dec 2021 07:12:21.230 * Ready to accept connections
photonix-postgres | 2021-12-25 07:12:22.802 UTC [29] FATAL:  database "photonix" does not exist
photonix    | FATAL:  database "photonix" does not exist
photonix    | 
photonix-postgres | 2021-12-25 07:12:23.704 UTC [30] FATAL:  database "photonix" does not exist
photonix    | FATAL:  database "photonix" does not exist
photonix    | 
photonix    | Resetting Redis lock
photonix    | Rescheduling any required upgrade-related tasks
photonix-postgres | 2021-12-25 07:12:26.774 UTC [31] FATAL:  database "photonix" does not exist
photonix    | FATAL:  database "photonix" does not exist
photonix    | 
photonix    | Starting supervisor
photonix    | 2021-12-25 07:12:27,139 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
photonix    | 2021-12-25 07:12:27,151 INFO RPC interface 'supervisor' initialized
photonix    | 2021-12-25 07:12:27,151 CRIT Server 'unix_http_server' running without any HTTP authentication checking
photonix    | 2021-12-25 07:12:27,152 INFO supervisord started with pid 24
photonix    | 2021-12-25 07:12:28,155 INFO spawned: 'cron' with pid 27

TKS,
Charles

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

1 participant