mattermost/mattermost-docker-preview

Unable to start Mattermost Preview

helje5 opened this issue · 6 comments

Same like in the closed issue #40:

2019-03-09T13:10:30.684278Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2019-03-09T13:10:30.687302Z 0 [Note] Event Scheduler: Loaded 0 events
2019-03-09T13:10:30.687587Z 0 [Note] mysqld: ready for connections.
Version: '5.7.25'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
Updating CA certificates
Starting platform
./docker-entry.sh: line 18: /mm/mattermost/bin/mattermost: No such file or directory
helge@Zini18 ~ $ docker images
REPOSITORY                      TAG                 IMAGE ID            CREATED             SIZE
mattermost/mattermost-preview   latest              d4a54b3ce221        41 hours ago        560MB

Was just trying the one-line install from https://mattermost.com/download/ This is on macOS 10.14.

If I add --add-host dockerhost:127.0.0.1 as suggested in the install, same error:

2019-03-09T13:17:17.360524Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2019-03-09T13:17:17.363559Z 0 [Note] Event Scheduler: Loaded 0 events
2019-03-09T13:17:17.363817Z 0 [Note] mysqld: ready for connections.
Version: '5.7.25'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
Updating CA certificates
./docker-entry.sh: line 18: /mm/mattermost/bin/mattermost: No such file or directory
Starting platform
helge@Zini18 ~ $ docker ps -a
CONTAINER ID        IMAGE                           COMMAND                  CREATED              STATUS                            PORTS               NAMES
37c44bc6b89c        mattermost/mattermost-preview   "/bin/sh -c ./docker…"   About a minute ago   Exited (127) About a minute ago                       mattermost-preview

Please do not use the latest tag, use a version.
Also this is just for testing, if are you planning to use in production, please use mattermost/mattermost-team-edition or mattermost-enterprise-edition

Yes, I indeed just wanted to test it, this is why I precisely followed the instructions on the website: https://mattermost.com/download/

If a version tag is necessary, you may want to update the website (or introduce a "stable" or something Docker tag).

Even the README of this repo is suggesting to use latest.

humm, ok thanks @helje5 will fix that.

for now you can use 5.8.0 or even 5.9.0-rc1

Yes, those work. But for a quick trial it was quite a bit of lookup work ;-)

I am having exactly the same problem.

Summary: Single Line Docker Install (docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview) starts and exits for no obvious reason.

Steps to reproduce:
MacOSX 10.14.5
Docker Desktop for MacOSX 2.0.0.3

Expected behavior: Mattermost container should be running
Observed behavior: Mattermost container exits almost immediately after startup

CONTAINER LOG:

Starting MySQL
MySQL still not ready, sleeping
2019-06-22T19:09:17.620719Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-06-22T19:09:17.621770Z 0 [Note] mysqld (mysqld 5.7.26) starting as process 7 ...
2019-06-22T19:09:17.625220Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-06-22T19:09:17.625351Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-06-22T19:09:17.625494Z 0 [Note] InnoDB: Uses event mutexes
2019-06-22T19:09:17.625561Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-06-22T19:09:17.625612Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-06-22T19:09:17.625668Z 0 [Note] InnoDB: Using Linux native AIO
2019-06-22T19:09:17.626030Z 0 [Note] InnoDB: Number of pools: 1
2019-06-22T19:09:17.626229Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-06-22T19:09:17.627387Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-06-22T19:09:17.636505Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-06-22T19:09:17.638194Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-06-22T19:09:17.653809Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-06-22T19:09:17.656075Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 12364080
2019-06-22T19:09:17.656217Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 12364089
2019-06-22T19:09:17.656261Z 0 [Note] InnoDB: Database was not shutdown normally!
2019-06-22T19:09:17.656293Z 0 [Note] InnoDB: Starting crash recovery.
2019-06-22T19:09:17.775274Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-06-22T19:09:17.775596Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-06-22T19:09:17.775819Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-06-22T19:09:17.809355Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-06-22T19:09:17.810545Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-06-22T19:09:17.810629Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-06-22T19:09:17.811114Z 0 [Note] InnoDB: Waiting for purge to start
2019-06-22T19:09:17.863587Z 0 [Note] InnoDB: 5.7.26 started; log sequence number 12364089
2019-06-22T19:09:17.864927Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-06-22T19:09:17.864951Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-06-22T19:09:17.871686Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190622 19:09:17
2019-06-22T19:09:17.875112Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2019-06-22T19:09:17.875654Z 0 [Warning] CA certificate ca.pem is self signed.
2019-06-22T19:09:17.878019Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-06-22T19:09:17.878111Z 0 [Note] IPv6 is available.
2019-06-22T19:09:17.878133Z 0 [Note]   - '::' resolves to '::';
2019-06-22T19:09:17.878364Z 0 [Note] Server socket created on IP: '::'.
2019-06-22T19:09:17.882208Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2019-06-22T19:09:17.891334Z 0 [Note] Event Scheduler: Loaded 0 events
2019-06-22T19:09:17.892073Z 0 [Note] mysqld: ready for connections.
Version: '5.7.26'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
Updating CA certificates
Starting platform
./docker-entry.sh: line 18: /mm/mattermost/bin/mattermost: No such file or directory

not able to reproduce, closing