Open kousu opened 6 years ago
Stopping and restarting it fixed it:
^CGracefully stopping... (press Ctrl+C again to force)
Stopping sous-chef_web_1 ... done
Stopping sous-chef_db_1 ... done
[nguenthe@papyrus sous-chef]$ docker-compose -f docker-compose.yml -f docker-compose.override.yml up
WARNING: Some networks were defined but are not used by any service: frontend
Starting sous-chef_db_1 ... done
Starting sous-chef_web_1 ... done
Attaching to sous-chef_db_1, sous-chef_web_1
db_1 | 2018-07-04 19:55:58 0 [Note] mysqld (mysqld 10.3.8-MariaDB-1:10.3.8+maria~jessie) starting as process 1 ...
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Using Linux native AIO
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Uses event mutexes
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Number of pools: 1
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Using SSE2 crc32 instructions
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Creating shared tablespace for temporary tables
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Waiting for purge to start
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: 10.3.8 started; log sequence number 1630833; transaction id 21
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db_1 | 2018-07-04 19:55:58 0 [Note] Plugin 'FEEDBACK' is disabled.
db_1 | 2018-07-04 19:55:58 0 [Note] Server socket created on IP: '::'.
db_1 | 2018-07-04 19:55:58 0 [Note] InnoDB: Buffer pool(s) load completed at 180704 19:55:58
db_1 | 2018-07-04 19:55:58 0 [Warning] 'proxies_priv' entry '@% root@f37f4a379be0' ignored in --skip-name-resolve mode.
db_1 | 2018-07-04 19:55:58 0 [Note] Reading of all Master_info entries succeded
db_1 | 2018-07-04 19:55:58 0 [Note] Added new Master_info '' to hash table
db_1 | 2018-07-04 19:55:58 0 [Note] mysqld: ready for connections.
db_1 | Version: '10.3.8-MariaDB-1:10.3.8+maria~jessie' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
web_1 | Performing system checks...
web_1 |
web_1 | System check identified no issues (0 silenced).
web_1 |
web_1 | You have 88 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, avatar, billing, contenttypes, delivery, meal, member, note, notification, order, sessions.
web_1 | Run 'python manage.py migrate' to apply them.
web_1 | July 04, 2018 - 15:56:08
web_1 | Django version 1.11.14, using settings 'sous_chef.settings'
web_1 | Starting development server at http://0.0.0.0:8000/
web_1 | Quit the server with CONTROL-C.
I believe this is a known issue---something something docker something---it's even mentioned in the docs, but it's annoying and I would like to open a bug to track getting it fixed.
It's out of the scope of sou-chef, its docker related because the first time MySQL container its initialized, it takes too much time to setup and creates the database.. the Web container it's a lot faster and makes the first request before the MySQL service inside the MySQL container is ready.
Respectfully, I don't think it is out of scope. Everything from git clone
to a working Sous-Chef instance in the install guide should be in scope. This issue makes Sous-Chef appear unreliable, and it's a turn off for newbie devs.
I don't mind doing the research and work to fix this myself, if you are willing to take a PR to fix it.
Thanks @kousu I will be happy to take a PR :)
awesome. it's on my TODOs.
I just reinstall Sous-Chef fresh (see: #834) so I could work on it, and received "Can't connect to MySQL server on 'db' (111)".
Fuller log:
and then trying to go to http://localhost:8000 just gets a RST.