{"action":"created","issue":{"url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/1","repository_url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker","labels_url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/1/comments","events_url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/1/events","html_url":"https://github.com/chadyred/glpi-ocsinventory-stack-docker/issues/1","id":382536192,"node_id":"MDU6SXNzdWUzODI1MzYxOTI=","number":1,"title":"timezone error on fedora 29.","user":{"login":"jackadam1981","id":28656671,"node_id":"MDQ6VXNlcjI4NjU2Njcx","avatar_url":"https://avatars3.githubusercontent.com/u/28656671?v=4","gravatar_id":"","url":"https://api.github.com/users/jackadam1981","html_url":"https://github.com/jackadam1981","followers_url":"https://api.github.com/users/jackadam1981/followers","following_url":"https://api.github.com/users/jackadam1981/following{/other_user}","gists_url":"https://api.github.com/users/jackadam1981/gists{/gist_id}","starred_url":"https://api.github.com/users/jackadam1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackadam1981/subscriptions","organizations_url":"https://api.github.com/users/jackadam1981/orgs","repos_url":"https://api.github.com/users/jackadam1981/repos","events_url":"https://api.github.com/users/jackadam1981/events{/privacy}","received_events_url":"https://api.github.com/users/jackadam1981/received_events","type":"User","site_admin":false},"labels":[{"id":1116752745,"node_id":"MDU6TGFiZWwxMTE2NzUyNzQ1","url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/labels/good%20first%20issue","name":"good first issue","color":"7057ff","default":true},{"id":1116752744,"node_id":"MDU6TGFiZWwxMTE2NzUyNzQ0","url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-11-20T07:37:34Z","updated_at":"2018-12-28T04:00:52Z","closed_at":null,"author_association":"NONE","body":"*It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.*\r\n\r\n### General informations\r\nDocker host's operating system : \r\nLinux **** 4.18.17-300.fc29.x86_64 #1 SMP Mon Nov 5 17:56:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n\r\n### Docker informations\r\nDocker compose version :\r\nDocker version : \r\n docker info\r\nContainers: 9\r\n Running: 8\r\n Paused: 0\r\n Stopped: 1\r\nImages: 30\r\nServer Version: 1.13.1\r\nStorage Driver: overlay2\r\n Backing Filesystem: xfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: journald\r\nCgroup Driver: systemd\r\nPlugins:\r\n Volume: local\r\n Network: bridge host macvlan null overlay\r\n Authorization: rhel-push-plugin\r\nSwarm: inactive\r\nRuntimes: oci runc\r\nDefault Runtime: oci\r\nInit Binary: /usr/libexec/docker/docker-init-current\r\ncontainerd version: accfe55885ee1ff20e0479d2db23743d470c6b7e (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)\r\nrunc version: accfe55885ee1ff20e0479d2db23743d470c6b7e-dirty (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)\r\ninit version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)\r\nSecurity Options:\r\n seccomp\r\n  WARNING: You're not using the default seccomp profile\r\n  Profile: /etc/docker/seccomp.json\r\n selinux\r\nKernel Version: 4.18.17-300.fc29.x86_64\r\nOperating System: Fedora 29 (Twenty Nine)\r\nOSType: linux\r\nArchitecture: x86_64\r\nNumber of Docker Hooks: 2\r\nCPUs: 2\r\nTotal Memory: 1.912 GiB\r\nName: kjs01.zzcld\r\nID: TU6E:6SVW:24UC:QJCP:5RSU:GOU7:6OZ2:QKQ7:EO23:TO2D:RZT5:X527\r\nDocker Root Dir: /var/lib/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nRegistry: https://index.docker.io/v1/\r\nExperimental: false\r\nInsecure Registries:\r\n 127.0.0.0/8\r\nLive Restore Enabled: true\r\nRegistries: docker.io (secure), registry.fedoraproject.org (secure), quay.io (secure), registry.access.redhat.com (secure), registry.centos.org (secure), docker.io (secure)\r\n\r\n\r\n### Problem's description\r\n*Describe your problem here*\r\n\r\n[root@kjs01 glpi-ocsinventory-stack-docker]# ls\r\ndocker-compose.yml  glpi  LICENSE  nginx  README.md  setup.sh  sql\r\n[root@kjs01 glpi-ocsinventory-stack-docker]# ./setup.sh\r\nStarting glpi ...\r\nglpi-db is up-to-date\r\nocs-db is up-to-date\r\nStarting glpi ... error\r\n\r\nERROR: for glpi  Cannot start service glpi: oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:364: container init caused \\\"rootfs_linux.go:54: mounting \\\\\\\"/etc/timezone\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/overlay2/b4e5671ec57c412d02caee2f0d8d5e0cfcdbc35900cdc47adb2ae11b26a8960e/merged\\\\\\\" at \\\\\\\"/var/lib/docker/overlay2/b4e5671ec57c412d02caee2f0d8d5e0cfcdbc35900cdc47adb2ae11b26a8960e/merged/etc/timezone\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\r\n: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type\r\n\r\nERROR: for glpi  Cannot start service glpi: oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:364: container init caused \\\"rootfs_linux.go:54: mounting \\\\\\\"/etc/timezone\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/overlay2/b4e5671ec57c412d02caee2f0d8d5e0cfcdbc35900cdc47adb2ae11b26a8960e/merged\\\\\\\" at \\\\\\\"/var/lib/docker/overlay2/b4e5671ec57c412d02caee2f0d8d5e0cfcdbc35900cdc47adb2ae11b26a8960e/merged/etc/timezone\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\r\n: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type\r\nERROR: Encountered errors while bringing up the project.\r\n\r\ngzip: stdin: unexpected end of file\r\ntar: Child returned status 1\r\ntar: Error is not recoverable: exiting now\r\n-- Install success --\r\n\r\n\r\n/etc/timezone  Already exist ，is a Folder\r\n\r\n/etc/localtime  Already exist，is a file.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/comments/450285170","html_url":"https://github.com/chadyred/glpi-ocsinventory-stack-docker/issues/1#issuecomment-450285170","issue_url":"https://api.github.com/repos/chadyred/glpi-ocsinventory-stack-docker/issues/1","id":450285170,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDI4NTE3MA==","user":{"login":"jackadam1981","id":28656671,"node_id":"MDQ6VXNlcjI4NjU2Njcx","avatar_url":"https://avatars3.githubusercontent.com/u/28656671?v=4","gravatar_id":"","url":"https://api.github.com/users/jackadam1981","html_url":"https://github.com/jackadam1981","followers_url":"https://api.github.com/users/jackadam1981/followers","following_url":"https://api.github.com/users/jackadam1981/following{/other_user}","gists_url":"https://api.github.com/users/jackadam1981/gists{/gist_id}","starred_url":"https://api.github.com/users/jackadam1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackadam1981/subscriptions","organizations_url":"https://api.github.com/users/jackadam1981/orgs","repos_url":"https://api.github.com/users/jackadam1981/repos","events_url":"https://api.github.com/users/jackadam1981/events{/privacy}","received_events_url":"https://api.github.com/users/jackadam1981/received_events","type":"User","site_admin":false},"created_at":"2018-12-28T04:00:52Z","updated_at":"2018-12-28T04:00:52Z","author_association":"NONE","body":"always  Permission denied .\r\nso i give glpi privileged: true.\r\nit can be de deploy.\r\nmybe  it's SELinux problems.\r\nsome time i'll try .\r\n\r\n\r\nversion: '3'\r\nservices:\r\n  ocsinventory:\r\n    image: ocsinventory/ocsinventory-docker-image:2.5\r\n    environment:\r\n      OCS_DBNAME: ocs\r\n      OCS_DBSERVER_READ: db-ocs\r\n      OCS_DBSERVER_WRITE: db-ocs\r\n      OCS_DBUSER: ocs\r\n      OCS_DBPASS: ocs\r\n    volumes:\r\n      - ocssrv:/usr/share/ocsinventory-reports/\r\n      - ocssrv:/etc/ocsinventory-reports/\r\n      - ocssrv:/var/lib/ocsinventory-reports/\r\n    ports:\r\n      - 8080:80\r\n\r\n  php:\r\n    depends_on:\r\n      - glpi\r\n    image: php:7.0-fpm\r\n    container_name: glpi-server\r\n    volumes:\r\n      - ./glpi:/var/www/html\r\n\r\n  nginx:\r\n    depends_on:\r\n      - glpi\r\n    image: nginx:latest\r\n    container_name: nginx\r\n    volumes:\r\n      - ./nginx:/etc/nginx/conf.d\r\n      - ./glpi:/var/www/html\r\n\r\n  db-glpi:\r\n    image: mysql:5.7\r\n    container_name: glpi-db\r\n    restart: always\r\n    environment:\r\n      MYSQL_ROOT_PASSWORD: root\r\n      MYSQL_USER: glpi\r\n      MYSQL_PASSWORD: glpi\r\n      MYSQL_DATABASE: glpi\r\n    volumes:\r\n      - glpidata:/var/lib/mysql\r\n\r\n  db-ocs:\r\n    image: mysql:5.7\r\n    container_name: ocs-db\r\n    restart: always\r\n    environment:\r\n      MYSQL_ROOT_PASSWORD: root\r\n      MYSQL_USER: ocs\r\n      MYSQL_PASSWORD: ocs\r\n      MYSQL_DATABASE: ocs\r\n    volumes:\r\n      - ./sql/:/docker-entrypoint-initdb.d/\r\n      - ocsdata:/var/lib/mysql\r\n\r\n  #GLPI Container\r\n  glpi:\r\n    image: diouxx/glpi\r\n    container_name : glpi\r\n    **privileged: true**\r\n    ports:\r\n      - \"88:80\"\r\n    volumes:\r\n      - /etc/localtime:/etc/localtime:ro\r\n      - ./glpi:/var/www/html/glpi\r\n    environment:\r\n      - TIMEZONE=${TIMEZONE}\r\n      - TZ=${TZ}\r\n    restart: always\r\n\r\nvolumes:\r\n  ocsdata:\r\n  glpidata:\r\n  ocssrv:\r\n\r\n\r\n"}}
{"actor":{"display_login":"jackadam1981"}}