OCSInventory-NG / OCSInventory-Docker-Stack

Docker stack for OCSInventory Server
GNU General Public License v3.0
42 stars 38 forks source link

Apache2 defaulte site when starting with docker-compose #2

Closed robinjanke closed 5 years ago

robinjanke commented 6 years ago

General informations

Docker host's operating system : MacOS 10.13.2 (17C88) MacBook Pro (17", Mid 2010)

Docker informations

Docker compose version : docker-compose version 1.16.1, build 6d1ac21 Docker version : Docker Version 17.09.0-ce-mac35 (19611) Channel: stable

Problem's description

Describe your problem here I get the apache2 default site when starting with docker-compose up. I used the standard compose file and did no changes. There is also no apache2 .conf file for ocs. When i edit the default one and add the path for ocs folder i get a 403 error. Changing permissions to 755 and www-data won't help.

When i start the containers with docker-compose up without detach i get the following output:

nt.sh: running /do Removing ocsinventory-db
Recreating 18d0de78ccac_18d0de78ccac_ocsinventory-db ...
Recreating 18d0de78ccac_18d0de78ccac_ocsinventory-db ... done
Creating ocsinventory-server ...
Creating ocsinventory-server ... done
Attaching to ocsinventory-db, ocsinventory-server
ocsinventory-db | Initializing database
ocsinventory-db | 2017-12-28T08:14:04.584911Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
ocsinventory-db | 2017-12-28T08:14:06.474899Z 0 [Warning] InnoDB: New log files created, LSN=45790
ocsinventory-db | 2017-12-28T08:14:06.658792Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
ocsinventory-server | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
ocsinventory-db | 2017-12-28T08:14:06.742284Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 12e91e04-eba7-11e7-8a02-0242ac130002.
ocsinventory-db | 2017-12-28T08:14:06.747588Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
ocsinventory-db | 2017-12-28T08:14:06.749350Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
ocsinventory-db | 2017-12-28T08:14:07.828372Z 1 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828436Z 1 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828447Z 1 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828469Z 1 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828475Z 1 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828486Z 1 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828527Z 1 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:07.828544Z 1 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | Database initialized
ocsinventory-db | Initializing certificates
ocsinventory-db | Generating a 2048 bit RSA private key
ocsinventory-db | .................................................................+++
ocsinventory-db | ........................+++
ocsinventory-db | unable to write 'random state'
ocsinventory-db | writing new private key to 'ca-key.pem'
ocsinventory-db | -----
ocsinventory-db | Generating a 2048 bit RSA private key
ocsinventory-db | ...........................+++
ocsinventory-db | ............+++
ocsinventory-db | unable to write 'random state'
ocsinventory-db | writing new private key to 'server-key.pem'
ocsinventory-db | -----
ocsinventory-db | Generating a 2048 bit RSA private key
ocsinventory-db | ..........+++
ocsinventory-db | ......................................................................................+++
ocsinventory-db | unable to write 'random state'
ocsinventory-db | writing new private key to 'client-key.pem'
ocsinventory-db | -----
ocsinventory-db | Certificates initialized
ocsinventory-db | MySQL init process in progress...
ocsinventory-db | 2017-12-28T08:14:10.900405Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
ocsinventory-db | 2017-12-28T08:14:10.901753Z 0 [Note] mysqld (mysqld 5.7.20) starting as process 89 ...
ocsinventory-db | 2017-12-28T08:14:10.907063Z 0 [Note] InnoDB: PUNCH HOLE support available
ocsinventory-db | 2017-12-28T08:14:10.907172Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
ocsinventory-db | 2017-12-28T08:14:10.907194Z 0 [Note] InnoDB: Uses event mutexes
ocsinventory-db | 2017-12-28T08:14:10.907207Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
ocsinventory-db | 2017-12-28T08:14:10.907224Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
ocsinventory-db | 2017-12-28T08:14:10.907259Z 0 [Note] InnoDB: Using Linux native AIO
ocsinventory-db | 2017-12-28T08:14:10.907655Z 0 [Note] InnoDB: Number of pools: 1
ocsinventory-db | 2017-12-28T08:14:10.907837Z 0 [Note] InnoDB: Using CPU crc32 instructions
ocsinventory-db | 2017-12-28T08:14:10.910029Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
ocsinventory-db | 2017-12-28T08:14:10.918726Z 0 [Note] InnoDB: Completed initialization of buffer pool
ocsinventory-db | 2017-12-28T08:14:10.920934Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
ocsinventory-db | 2017-12-28T08:14:10.935165Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
ocsinventory-db | 2017-12-28T08:14:10.949432Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
ocsinventory-db | 2017-12-28T08:14:10.949600Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
ocsinventory-db | 2017-12-28T08:14:11.041412Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
ocsinventory-db | 2017-12-28T08:14:11.042935Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
ocsinventory-db | 2017-12-28T08:14:11.043004Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
ocsinventory-db | 2017-12-28T08:14:11.043912Z 0 [Note] InnoDB: Waiting for purge to start
ocsinventory-db | 2017-12-28T08:14:11.094940Z 0 [Note] InnoDB: 5.7.20 started; log sequence number 2565377
ocsinventory-db | 2017-12-28T08:14:11.095491Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
ocsinventory-db | 2017-12-28T08:14:11.095506Z 0 [Note] Plugin 'FEDERATED' is disabled.
ocsinventory-db | 2017-12-28T08:14:11.100396Z 0 [Note] InnoDB: Buffer pool(s) load completed at 171228  8:14:11
ocsinventory-db | 2017-12-28T08:14:11.106920Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
ocsinventory-db | 2017-12-28T08:14:11.107556Z 0 [Warning] CA certificate ca.pem is self signed.
ocsinventory-db | 2017-12-28T08:14:11.120940Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.121131Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.121156Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.121195Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.121234Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.121264Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.123882Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.123977Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:11.133714Z 0 [Note] Event Scheduler: Loaded 0 events
ocsinventory-db | 2017-12-28T08:14:11.134168Z 0 [Note] mysqld: ready for connections.
ocsinventory-db | Version: '5.7.20'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
ocsinventory-db | 2017-12-28T08:14:11.134278Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
ocsinventory-db | 2017-12-28T08:14:11.134356Z 0 [Note] Beginning of list of non-natively partitioned tables
ocsinventory-db | 2017-12-28T08:14:11.151087Z 0 [Note] End of list of non-natively partitioned tables
ocsinventory-db | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
ocsinventory-db | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
ocsinventory-db | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
ocsinventory-db | 2017-12-28T08:14:16.053933Z 5 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054031Z 5 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054067Z 5 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054122Z 5 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054149Z 5 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054197Z 5 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054277Z 5 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.054312Z 5 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | mysql: [Warning] Using a password on the command line interface can be insecure.
ocsinventory-db | mysql: [Warning] Using a password on the command line interface can be insecure.
ocsinventory-db | mysql: [Warning] Using a password on the command line interface can be insecure.
ocsinventory-db | mysql: [Warning] Using a password on the command line interface can be insecure.
ocsinventory-db | 2017-12-28T08:14:16.131880Z 9 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132004Z 9 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132045Z 9 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132126Z 9 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132182Z 9 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132229Z 9 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.132770Z 9 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:16.133046Z 9 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db |
ocsinventory-db | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/init.db.sql
ocsinventory-db | mysql: [Warning] Using a password on the command line interface can be insecure.
ocsinventory-db |
ocsinventory-db |
ocsinventory-db | 2017-12-28T08:14:18.580393Z 0 [Note] Giving 0 client threads a chance to die gracefully
ocsinventory-db | 2017-12-28T08:14:18.580442Z 0 [Note] Shutting down slave threads
ocsinventory-db | 2017-12-28T08:14:18.580448Z 0 [Note] Forcefully disconnecting 0 remaining clients
ocsinventory-db | 2017-12-28T08:14:18.580889Z 0 [Note] Event Scheduler: Purging the queue. 0 events
ocsinventory-db | 2017-12-28T08:14:18.581000Z 0 [Note] Binlog end
ocsinventory-db | 2017-12-28T08:14:18.582580Z 0 [Note] Shutting down plugin 'ngram'
ocsinventory-db | 2017-12-28T08:14:18.582643Z 0 [Note] Shutting down plugin 'BLACKHOLE'
ocsinventory-db | 2017-12-28T08:14:18.582666Z 0 [Note] Shutting down plugin 'partition'
ocsinventory-db | 2017-12-28T08:14:18.582680Z 0 [Note] Shutting down plugin 'ARCHIVE'
ocsinventory-db | 2017-12-28T08:14:18.582713Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
ocsinventory-db | 2017-12-28T08:14:18.582740Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
ocsinventory-db | 2017-12-28T08:14:18.582755Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
ocsinventory-db | 2017-12-28T08:14:18.582769Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
ocsinventory-db | 2017-12-28T08:14:18.582787Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
ocsinventory-db | 2017-12-28T08:14:18.582805Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
ocsinventory-db | 2017-12-28T08:14:18.582822Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
ocsinventory-db | 2017-12-28T08:14:18.582836Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
ocsinventory-db | 2017-12-28T08:14:18.582868Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
ocsinventory-db | 2017-12-28T08:14:18.582893Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
ocsinventory-db | 2017-12-28T08:14:18.582910Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
ocsinventory-db | 2017-12-28T08:14:18.582925Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
ocsinventory-db | 2017-12-28T08:14:18.582942Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
ocsinventory-db | 2017-12-28T08:14:18.582956Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
ocsinventory-db | 2017-12-28T08:14:18.582967Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
ocsinventory-db | 2017-12-28T08:14:18.582981Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
ocsinventory-db | 2017-12-28T08:14:18.582997Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
ocsinventory-db | 2017-12-28T08:14:18.583016Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
ocsinventory-db | 2017-12-28T08:14:18.583184Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
ocsinventory-db | 2017-12-28T08:14:18.583248Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
ocsinventory-db | 2017-12-28T08:14:18.583263Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
ocsinventory-db | 2017-12-28T08:14:18.583274Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
ocsinventory-db | 2017-12-28T08:14:18.583284Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
ocsinventory-db | 2017-12-28T08:14:18.583294Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
ocsinventory-db | 2017-12-28T08:14:18.583304Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
ocsinventory-db | 2017-12-28T08:14:18.583314Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
ocsinventory-db | 2017-12-28T08:14:18.583324Z 0 [Note] Shutting down plugin 'INNODB_CMP'
ocsinventory-db | 2017-12-28T08:14:18.583333Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
ocsinventory-db | 2017-12-28T08:14:18.583343Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
ocsinventory-db | 2017-12-28T08:14:18.583353Z 0 [Note] Shutting down plugin 'INNODB_TRX'
ocsinventory-db | 2017-12-28T08:14:18.583363Z 0 [Note] Shutting down plugin 'InnoDB'
ocsinventory-db | 2017-12-28T08:14:18.584112Z 0 [Note] InnoDB: FTS optimize thread exiting.
ocsinventory-db | 2017-12-28T08:14:18.584711Z 0 [Note] InnoDB: Starting shutdown...
ocsinventory-db | 2017-12-28T08:14:18.687566Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
ocsinventory-db | 2017-12-28T08:14:18.688894Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 171228  8:14:18
ocsinventory-db | 2017-12-28T08:14:20.345258Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12940178
ocsinventory-db | 2017-12-28T08:14:20.358079Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
ocsinventory-db | 2017-12-28T08:14:20.358182Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
ocsinventory-db | 2017-12-28T08:14:20.358270Z 0 [Note] Shutting down plugin 'MyISAM'
ocsinventory-db | 2017-12-28T08:14:20.358310Z 0 [Note] Shutting down plugin 'CSV'
ocsinventory-db | 2017-12-28T08:14:20.358337Z 0 [Note] Shutting down plugin 'MEMORY'
ocsinventory-db | 2017-12-28T08:14:20.358368Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
ocsinventory-db | 2017-12-28T08:14:20.358439Z 0 [Note] Shutting down plugin 'sha256_password'
ocsinventory-db | 2017-12-28T08:14:20.358464Z 0 [Note] Shutting down plugin 'mysql_native_password'
ocsinventory-db | 2017-12-28T08:14:20.358926Z 0 [Note] Shutting down plugin 'binlog'
ocsinventory-db | 2017-12-28T08:14:20.368145Z 0 [Note] mysqld: Shutdown complete
ocsinventory-db |
ocsinventory-db |
ocsinventory-db | MySQL init process done. Ready for start up.
ocsinventory-db |
ocsinventory-db | 2017-12-28T08:14:20.780825Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
ocsinventory-db | 2017-12-28T08:14:20.782390Z 0 [Note] mysqld (mysqld 5.7.20) starting as process 1 ...
ocsinventory-db | 2017-12-28T08:14:20.787687Z 0 [Note] InnoDB: PUNCH HOLE support available
ocsinventory-db | 2017-12-28T08:14:20.787806Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
ocsinventory-db | 2017-12-28T08:14:20.787817Z 0 [Note] InnoDB: Uses event mutexes
ocsinventory-db | 2017-12-28T08:14:20.787830Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
ocsinventory-db | 2017-12-28T08:14:20.787838Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
ocsinventory-db | 2017-12-28T08:14:20.788274Z 0 [Note] InnoDB: Using Linux native AIO
ocsinventory-db | 2017-12-28T08:14:20.789180Z 0 [Note] InnoDB: Number of pools: 1
ocsinventory-db | 2017-12-28T08:14:20.790069Z 0 [Note] InnoDB: Using CPU crc32 instructions
ocsinventory-db | 2017-12-28T08:14:20.793762Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
ocsinventory-db | 2017-12-28T08:14:20.803868Z 0 [Note] InnoDB: Completed initialization of buffer pool
ocsinventory-db | 2017-12-28T08:14:20.809871Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
ocsinventory-db | 2017-12-28T08:14:20.823441Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
ocsinventory-db | 2017-12-28T08:14:20.854738Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
ocsinventory-db | 2017-12-28T08:14:20.854872Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
ocsinventory-db | 2017-12-28T08:14:20.995323Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
ocsinventory-db | 2017-12-28T08:14:20.998461Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
ocsinventory-db | 2017-12-28T08:14:20.998505Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
ocsinventory-db | 2017-12-28T08:14:20.999049Z 0 [Note] InnoDB: Waiting for purge to start
ocsinventory-db | 2017-12-28T08:14:21.049527Z 0 [Note] InnoDB: 5.7.20 started; log sequence number 12940178
ocsinventory-db | 2017-12-28T08:14:21.050009Z 0 [Note] Plugin 'FEDERATED' is disabled.
ocsinventory-db | 2017-12-28T08:14:21.054157Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
ocsinventory-db | 2017-12-28T08:14:21.061265Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
ocsinventory-db | 2017-12-28T08:14:21.062284Z 0 [Warning] CA certificate ca.pem is self signed.
ocsinventory-db | 2017-12-28T08:14:21.069773Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
ocsinventory-db | 2017-12-28T08:14:21.069951Z 0 [Note] IPv6 is available.
ocsinventory-db | 2017-12-28T08:14:21.070032Z 0 [Note]   - '::' resolves to '::';
ocsinventory-db | 2017-12-28T08:14:21.070091Z 0 [Note] Server socket created on IP: '::'.
ocsinventory-db | 2017-12-28T08:14:21.078465Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.078598Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.078691Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.078838Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.079033Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.079077Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.084147Z 0 [Note] InnoDB: Buffer pool(s) load completed at 171228  8:14:21
ocsinventory-db | 2017-12-28T08:14:21.090489Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.090665Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ocsinventory-db | 2017-12-28T08:14:21.102750Z 0 [Note] Event Scheduler: Loaded 0 events
ocsinventory-db | 2017-12-28T08:14:21.103268Z 0 [Note] mysqld: ready for connections.
ocsinventory-db | Version: '5.7.20'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
ocsinventory-db | 2017-12-28T08:14:21.103329Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
ocsinventory-db | 2017-12-28T08:14:21.103349Z 0 [Note] Beginning of list of non-natively partitioned tables
ocsinventory-db | 2017-12-28T08:14:21.147192Z 0 [Note] End of list of non-natively partitioned tables
vdeville commented 6 years ago

Hello, Do you go on: /ocsreports ?

robinjanke commented 6 years ago

Did you mean the /var/lib/ocsinventory-reports/ocsreports folder? @MyTheValentinus

vdeville commented 6 years ago

No. Go on http://YOURURL/ocsreports/ and tell me what you see

zikos commented 6 years ago

had the same isssue went to ocsreports it gave me an mysqlerror corrected it Now its empty But still when i go to http://myurl i get apache

matfeb commented 6 years ago

[Update] After a fresh install, (git clone -> setup.sh) everything is working

Same issue, anything new ?

cat /var/log/apache2/error.log

PHP Warning:  mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
PHP Warning:  mysqli_fetch_object() expects parameter 1 to be mysqli_result, boolean given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
PHP Warning:  require(install.php): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 167
PHP Fatal error:  require(): Failed opening required 'install.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 167
kthul commented 6 years ago

I've got the same issue. Anybody could help please ?

Here after is what I get when I run sudo docker exec -it ocsinventory-server bash

root@a74bb96a2822:/tmp/ocs# cat /var/log/apache2/error.log

ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.3. Set the 'ServerName' directive globally to suppress this message
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Wed Jul 25 17:19:22.394398 2018] [mpm_prefork:notice] [pid 9] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Wed Jul 25 17:19:22.394539 2018] [core:notice] [pid 9] AH00094: Command line: '/usr/sbin/apache2 -D FOREGROUND'
almino commented 4 years ago

Still happening here!