{"action":"created","issue":{"url":"https://api.github.com/repos/barcus/bareos/issues/9","repository_url":"https://api.github.com/repos/barcus/bareos","labels_url":"https://api.github.com/repos/barcus/bareos/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/barcus/bareos/issues/9/comments","events_url":"https://api.github.com/repos/barcus/bareos/issues/9/events","html_url":"https://github.com/barcus/bareos/issues/9","id":334775282,"node_id":"MDU6SXNzdWUzMzQ3NzUyODI=","number":9,"title":"docker-compose fails with postgres","user":{"login":"gdha","id":888633,"node_id":"MDQ6VXNlcjg4ODYzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/888633?v=4","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T07:31:40Z","updated_at":"2018-06-23T14:12:38Z","closed_at":null,"author_association":"NONE","body":"Any idea what went wrong here?\r\n````\r\n# /usr/local/bin/docker-compose up\r\nPulling bareos-db (postgres:9.3)...\r\n9.3: Pulling from library/postgres\r\nf2aa67a397c4: Pull complete\r\n3f47e9dfd161: Pull complete\r\n365e1eb16a96: Pull complete\r\nc537ee5f45d2: Pull complete\r\n52e33f5a09fb: Pull complete\r\ne48edfb2fccd: Pull complete\r\ne2ea3d468f97: Pull complete\r\ncf6364e94865: Pull complete\r\n59a35f2a1e6d: Pull complete\r\nbbeb06db5158: Pull complete\r\nac884ba18cb5: Pull complete\r\nf9d071ae4c41: Pull complete\r\nf6b97a3f812c: Pull complete\r\n131457b790ed: Pull complete\r\nDigest: sha256:c1718de791fc693f31367e17ed15fe83b8af1fa15e1ae4de36e55eadc0295123\r\nStatus: Downloaded newer image for postgres:9.3\r\nPulling bareos-dir (barcus/bareos-director:pgsql)...\r\npgsql: Pulling from barcus/bareos-director\r\na063c9101c9e: Already exists\r\n41e5159aad9d: Pull complete\r\n3b400d6fc811: Pull complete\r\nf91b56a287ea: Pull complete\r\n8d1ab46ff6a1: Pull complete\r\nDigest: sha256:06b6daca37ab1d34beb6d32499225052519a61a6b5f5f6284b34a90391047499\r\nStatus: Downloaded newer image for barcus/bareos-director:pgsql\r\nStarting bareos_bareos-fd_1    ... done\r\nStarting bareos_bareos-sd_1    ... done\r\nStarting bareos_bareos-webui_1 ... done\r\nStarting bareos_smtpd_1        ... done\r\nCreating bareos_bareos-db_1    ... done\r\nCreating bareos_bareos-dir_1   ... done\r\nAttaching to bareos_bareos-fd_1, bareos_bareos-sd_1, bareos_bareos-webui_1, bareos_smtpd_1, bareos_bareos-db_1, bareos_bareos-dir_1\r\nbareos-webui_1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message\r\nbareos-webui_1  | httpd (pid 7) already running\r\nsmtpd_1         | + sed -ri '\r\nsmtpd_1         |       s/^#?(dc_local_interfaces)=.*/\\1='\\''[0.0.0.0]:25 ; [::0]:25'\\''/;\r\nsmtpd_1         |       s/^#?(dc_other_hostnames)=.*/\\1='\\'''\\''/;\r\nsmtpd_1         |       s/^#?(dc_relay_nets)=.*/\\1='\\''172.18.0.5\\/16'\\''/;\r\nsmtpd_1         |       s/^#?(dc_eximconfig_configtype)=.*/\\1='\\''internet'\\''/;\r\nsmtpd_1         | ' /etc/exim4/update-exim4.conf.conf\r\nsmtpd_1         | + update-exim4.conf -v\r\nsmtpd_1         | using non-split configuration scheme from /etc/exim4/exim4.conf.template\r\nsmtpd_1         |     1 LOG: MAIN\r\nsmtpd_1         |     1   exim 4.84_2 daemon started: pid=1, -q15m, listening for SMTP on port 25 (IPv6 and IPv4)\r\nbareos-db_1     | LOG:  database system was shut down at 2018-06-22 07:15:01 UTC\r\nbareos-db_1     | LOG:  MultiXact member wraparound protections are now enabled\r\nbareos-db_1     | LOG:  database system is ready to accept connections\r\nbareos-db_1     | LOG:  autovacuum launcher started\r\nbareos_bareos-webui_1 exited with code 0\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbname\" from config, using default value \"bareos\", see /tmp/bareos-config.5.log\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbuser\" from config, using default value \"bareos\", see /tmp/bareos-config.5.log\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbdriver\" from config, see /tmp/bareos-config.5.log\r\nbareos-dir_1    | Updating postgresql tables\r\nbareos-dir_1    | Finished upgrading database to version 2171\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbname\" from config, using default value \"bareos\", see /tmp/bareos-config.35.log\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbuser\" from config, using default value \"bareos\", see /tmp/bareos-config.35.log\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbpassword\" from config, see /tmp/bareos-config.35.log\r\nbareos-dir_1    | Segmentation fault (core dumped)\r\nbareos-dir_1    | Warning: failed to get \"dbdriver\" from config, see /tmp/bareos-config.35.log\r\nbareos-dir_1    | Granting postgresql tables\r\nbareos-db_1     | ERROR:  role \"bareos\" already exists\r\nbareos-db_1     | STATEMENT:  CREATE USER bareos ;\r\nbareos-dir_1    | psql:/tmp/grants.sql.35:1: ERROR:  role \"bareos\" already exists\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | GRANT\r\nbareos-dir_1    | Privileges for user bareos granted ON database bareos.\r\nbareos-dir_1    | @��bareos-dir: ERROR TERMINATION at bsys.c:635\r\nbareos-dir_1    | Could not open pid file. /var/lib/bareos/bareos-dir.9101.pid ERR=Permission denied\r\nbareos-dir_1    | 22-Jun 07:17  Message delivery ERROR: Msg delivery error: fopen /var/lib/bareos/bareos-dir.bareos-dir.32693640.mail failed: ERR=Permission denied\r\nbareos_bareos-dir_1 exited with code 1\r\n````\r\nTo be complete this was the `docker-compose.yml` file:\r\n````\r\n# cat docker-compose.yml\r\n## docker-compose BareOS Director/Storage/Client/webUI and MySQL Database\r\nversion: '3'\r\nservices:\r\n  bareos-dir:\r\n    #image: barcus/bareos-director: (mysql as default)\r\n    #image: barcus/bareos-director:latest (mysql as default)\r\n    #image: barcus/bareos-director:mysql_latest\r\n    image: barcus/bareos-director:pgsql\r\n    #image: barcus/bareos-director:mysql_16\r\n    #image: barcus/bareos-director:mysql_17\r\n    #image: barcus/bareos-director:mysql # same as mysql_latest\r\n    volumes:\r\n      - /home/bareos/config/director:/etc/bareos\r\n      - /home/bareos/data/director:/var/lib/bareos #(required for MyCatalog backup)\r\n    environment:\r\n      - DB_HOST=bareos-db\r\n      - DB_PORT=3306\r\n      - DB_PASSWORD=vagrant\r\n      - BAREOS_SD_HOST=bareos-sd\r\n      - BAREOS_SD_PASSWORD=vagrant\r\n      - BAREOS_FD_HOST=bareos-fd\r\n      - BAREOS_FD_PASSWORD=vagrant\r\n      - BAREOS_WEBUI_PASSWORD=vagrant\r\n      - SMTP_HOST=smtpd\r\n      - ADMIN_MAIL=your@mail.address # Change me!\r\n    depends_on:\r\n      - bareos-db\r\n\r\n  bareos-sd:\r\n    image: barcus/bareos-storage\r\n    ports:\r\n      - 9103:9103\r\n    volumes:\r\n      - /home/bareos/config/storage:/etc/bareos\r\n      - /home/bareos/data/storage:/var/lib/bareos/storage\r\n    environment:\r\n      - BAREOS_SD_PASSWORD=vagrant\r\n\r\n  bareos-fd:\r\n    image: barcus/bareos-client\r\n    volumes:\r\n      - /home/bareos/config/client:/etc/bareos\r\n      - /home/bareos/data/director:/var/lib/bareos-director #(required for MyCatalog backup)\r\n    environment:\r\n      - BAREOS_FD_PASSWORD=vagrant\r\n\r\n  bareos-webui:\r\n    image: barcus/bareos-webui\r\n    ports:\r\n      - 8080:80\r\n    environment:\r\n      - BAREOS_DIR_HOST=bareos-dir\r\n    volumes:\r\n      - /home/bareos/config/webui:/etc/bareos-webui\r\n\r\n  #bareos-db:\r\n  #  image: mysql:5.6\r\n  #  volumes:\r\n  #    - /home/mysql/data:/var/lib/mysql\r\n  #  environment:\r\n  #    - MYSQL_ROOT_PASSWORD=vagrant\r\n\r\n  bareos-db:\r\n    image: postgres:9.3\r\n    volumes:\r\n      - /home/pgsql/data:/var/lib/postgresql/data\r\n    environment:\r\n      - POSTGRES_PASSWORD=vagrant\r\n\r\n  smtpd:\r\n    image: namshi/smtp\r\n#EOF\r\n````"},"comment":{"url":"https://api.github.com/repos/barcus/bareos/issues/comments/399681118","html_url":"https://github.com/barcus/bareos/issues/9#issuecomment-399681118","issue_url":"https://api.github.com/repos/barcus/bareos/issues/9","id":399681118,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTY4MTExOA==","user":{"login":"barcus","id":3447949,"node_id":"MDQ6VXNlcjM0NDc5NDk=","avatar_url":"https://avatars1.githubusercontent.com/u/3447949?v=4","gravatar_id":"","url":"https://api.github.com/users/barcus","html_url":"https://github.com/barcus","followers_url":"https://api.github.com/users/barcus/followers","following_url":"https://api.github.com/users/barcus/following{/other_user}","gists_url":"https://api.github.com/users/barcus/gists{/gist_id}","starred_url":"https://api.github.com/users/barcus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barcus/subscriptions","organizations_url":"https://api.github.com/users/barcus/orgs","repos_url":"https://api.github.com/users/barcus/repos","events_url":"https://api.github.com/users/barcus/events{/privacy}","received_events_url":"https://api.github.com/users/barcus/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T14:12:38Z","updated_at":"2018-06-23T14:12:38Z","author_association":"OWNER","body":"i will push docker-compose file for each version (mysq, pgsql), thank you 👍 "}}
{"actor":{"display_login":"barcus"}}