-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Labels
Description
Description of problem
Database is not created
How reproducible
always with --custom-env "LC_ALL=C args
Steps to Reproduce
dokku postgres:create test-db-2 --custom-env "LC_ALL=Cdokku postgres:info test-db-2and look database which is shown in the Dsn:/test-db-2dokku postgres:enter test-db-2psql -U postgres\l
The output is different compared when --custom-env is not passed, the database test-db-2 is missing
Actual Results
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+-----------+---------+-------+-----------------------
postgres | postgres | SQL_ASCII | C | C |
template0 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | SQL_ASCII | C | C | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)
Expected Results
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+------------+------------+-----------------------
postgres | postgres | UTF8 | en_US.utf8 | en_US.utf8 |
template0 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.utf8 | en_US.utf8 | =c/postgres +
| | | | | postgres=CTc/postgres
test_db_2 | postgres | UTF8 | en_US.utf8 | en_US.utf8 |
(4 rows)
Environment Information
N/A
dokku report APP_NAME output
N/A
How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
vServer / Debian Buster / installed via wget https://raw.githubusercontent.com/dokku/dokku/v0.25.5/bootstrap.sh;
Additional information
dokku version 0.25.4
postgres 1.14.1 enabled dokku postgres service plugin
dokku report
-----> uname: Linux v220210114110140000 5.10.0-8-amd64 #1 SMP Debian 5.10.46-5 (2021-09-23) x86_64 GNU/Linux
-----> memory:
total used free shared buff/cache available
Mem: 7957 599 1193 120 6163 7166
Swap: 0 0 0
-----> docker version:
Client: Docker Engine - Community
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:54:22 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:31 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.10
GitCommit: 8848fdb7c4ae3815afcc990a8a99d663dda1b590
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
-----> docker daemon info:
Client:
Context: default
Debug Mode: true
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
scan: Docker Scan (Docker Inc., v0.8.0)
Server:
Containers: 9
Running: 9
Paused: 0
Stopped: 0
Images: 79
Server Version: 20.10.8
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux
Default Runtime: runc
Init Binary: docker-init
containerd version: 8848fdb7c4ae3815afcc990a8a99d663dda1b590
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
cgroupns
Kernel Version: 5.10.0-8-amd64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.771GiB
Name: v220210114110140000
ID: PXLC:23R5:4TFC:SVEZ:V63E:CLZD:YRZC:4YB2:BB6G:OVJ4:AD64:3UUA
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
-----> git version: git version 2.30.2
-----> sigil version: 0.6.0
-----> herokuish version:
herokuish: 0.5.30
buildpacks:
heroku-buildpack-multi v1.0.0
heroku-buildpack-ruby v228
heroku-buildpack-nodejs v185
heroku-buildpack-clojure v87
heroku-buildpack-python v197
heroku-buildpack-java v69
heroku-buildpack-gradle v35
heroku-buildpack-scala v90
heroku-buildpack-play v26
heroku-buildpack-php v196
heroku-buildpack-go v153
buildpack-nginx v14
buildpack-null v3
-----> dokku version: dokku version 0.25.4
-----> plugn version: plugn: 0.6.1
-----> dokku plugins:
00_dokku-standard 0.25.4 enabled dokku core standard plugin
20_events 0.25.4 enabled dokku core events logging plugin
app-json 0.25.4 enabled dokku core app-json plugin
apps 0.25.4 enabled dokku core apps plugin
builder 0.25.4 enabled dokku core builder plugin
builder-dockerfile 0.25.4 enabled dokku core builder-dockerfile plugin
builder-herokuish 0.25.4 enabled dokku core builder-herokuish plugin
builder-null 0.25.4 enabled dokku core builder-null plugin
builder-pack 0.25.4 enabled dokku core builder-pack plugin
buildpacks 0.25.4 enabled dokku core buildpacks plugin
certs 0.25.4 enabled dokku core certificate management plugin
checks 0.25.4 enabled dokku core checks plugin
common 0.25.4 enabled dokku core common plugin
config 0.25.4 enabled dokku core config plugin
cron 0.25.4 enabled dokku core cron plugin
docker-options 0.25.4 enabled dokku core docker-options plugin
domains 0.25.4 enabled dokku core domains plugin
enter 0.25.4 enabled dokku core enter plugin
git 0.25.4 enabled dokku core git plugin
letsencrypt 0.12.1 enabled Automated installation of let's encrypt TLS certificates
logs 0.25.4 enabled dokku core logs plugin
network 0.25.4 enabled dokku core network plugin
nginx-vhosts 0.25.4 enabled dokku core nginx-vhosts plugin
plugin 0.25.4 enabled dokku core plugin plugin
postgres 1.14.1 enabled dokku postgres service plugin
proxy 0.25.4 enabled dokku core proxy plugin
ps 0.25.4 enabled dokku core ps plugin
registry 0.25.4 enabled dokku core registry plugin
repo 0.25.4 enabled dokku core repo plugin
resource 0.25.4 enabled dokku core resource plugin
run 0.25.4 enabled dokku core run plugin
scheduler-docker-local 0.25.4 enabled dokku core scheduler-docker-local plugin
scheduler-null 0.25.4 enabled dokku core scheduler-null plugin
shell 0.25.4 enabled dokku core shell plugin
ssh-keys 0.25.4 enabled dokku core ssh-keys plugin
storage 0.25.4 enabled dokku core storage plugin
tags 0.25.4 enabled dokku core tags plugin
tar 0.25.4 enabled dokku core tar plugin
trace 0.25.4 enabled dokku core trace plugin
docker logs dokku.postgres.test-db-2
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
syncing data to disk ... ok
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
waiting for server to start....2021-10-06 06:43:23.182 UTC [50] LOG: starting PostgreSQL 13.4 (Debian 13.4-4.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2021-10-06 06:43:23.183 UTC [50] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-10-06 06:43:23.185 UTC [51] LOG: database system was shut down at 2021-10-06 06:43:23 UTC
2021-10-06 06:43:23.188 UTC [50] LOG: database system is ready to accept connections
done
server started
/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
waiting for server to shut down...2021-10-06 06:43:23.296 UTC [50] LOG: received fast shutdown request
.2021-10-06 06:43:23.297 UTC [50] LOG: aborting any active transactions
2021-10-06 06:43:23.298 UTC [50] LOG: background worker "logical replication launcher" (PID 57) exited with exit code 1
2021-10-06 06:43:23.298 UTC [52] LOG: shutting down
2021-10-06 06:43:23.306 UTC [50] LOG: database system is shut down
done
server stopped
PostgreSQL init process complete; ready for start up.
2021-10-06 06:43:23.411 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-4.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2021-10-06 06:43:23.411 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2021-10-06 06:43:23.411 UTC [1] LOG: listening on IPv6 address "::", port 5432
2021-10-06 06:43:23.412 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-10-06 06:43:23.415 UTC [62] LOG: database system was shut down at 2021-10-06 06:43:23 UTC
2021-10-06 06:43:23.418 UTC [1] LOG: database system is ready to accept connections
2021-10-06 06:43:23.958 UTC [79] ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)
2021-10-06 06:43:23.958 UTC [79] HINT: Use the same encoding as in the template database, or use template0 as template.
2021-10-06 06:43:23.958 UTC [79] STATEMENT: CREATE DATABASE test_db_2 ENCODING 'utf8';
2021-10-06 06:43:24.035 UTC [1] LOG: received fast shutdown request
2021-10-06 06:43:24.036 UTC [1] LOG: aborting any active transactions
2021-10-06 06:43:24.039 UTC [1] LOG: background worker "logical replication launcher" (PID 68) exited with exit code 1
2021-10-06 06:43:24.039 UTC [63] LOG: shutting down
2021-10-06 06:43:24.046 UTC [1] LOG: database system is shut down
PostgreSQL Database directory appears to contain a database; Skipping initialization
2021-10-06 06:43:25.890 UTC [1] LOG: starting PostgreSQL 13.4 (Debian 13.4-4.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2021-10-06 06:43:25.890 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2021-10-06 06:43:25.890 UTC [1] LOG: listening on IPv6 address "::", port 5432
2021-10-06 06:43:25.892 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-10-06 06:43:25.896 UTC [27] LOG: database system was shut down at 2021-10-06 06:43:24 UTC
2021-10-06 06:43:25.901 UTC [1] LOG: database system is ready to accept connections