Closed satyendra22 closed 4 years ago
1) It looks as if the fluffi_gm is not started due to the missing GlobalManager binary: fluffigm_1 | standard_init_linux.go:211: exec user process caused "no such file or directory"
2) I am not sure polemarch is working as intended ("already initialized, retrying"-loop)
Both, however will not lead to a "502 bad gateway" error. I am not sure whether the moment in which you requested the web site is included in the log above. Could you please do another run and mark the moment in which you try to open web.fluffi in the log? Like this:
...
----FIRST ATTEMPT TO OPEN web.fluffi
.....
----SECOND ATTEMPT TO OPEN web.fluffi
I think for debuggung purposes it would be better to detach from the containers and look at the logs separately.
You can specify which output logs to view when you run docker-compose logs -f <servicename[s]>
- then you only get the specified containers log output, not everything mangled together. The -f
parameter for the logs
command works the same way it does in tail
, it follows new output while looking at the logs - not to be confused with the docker-compose
parameter of the same name, which specifies the compose file to use.
So the service in question (webinterface) can be viewed with
docker-compose -f /srv/fluffi/docker-compose.yaml logs -f fluffiweb
@TomSie Please have a look below while accessing web.fluffi. Also I'm able to access polemarch but not sure about GlobalManger issue. I have already copied GlobalManager as sggusted in doc.
fluffiweb_1 | WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x55ac40779f40 pid: 10 (default app) fluffiweb_1 | uWSGI running as root, you can use --uid/--gid/--chroot options fluffiweb_1 | WARNING: you are running uWSGI as root !!! (use the --uid flag) fluffiweb_1 | uWSGI is running in multiple interpreter mode fluffiweb_1 | spawned uWSGI master process (pid: 10) fluffiweb_1 | spawned uWSGI worker 1 (pid: 15, cores: 1) fluffiweb_1 | spawned uWSGI worker 2 (pid: 16, cores: 1) fluffiweb_1 | running "unix_signal:15 gracefully_kill_them_all" (master-start)... fluffiweb_1 | 172.18.0.1 - - [23/Apr/2020:13:48:33 -0400] "GET / HTTP/1.1" 499 0 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0" "-" fluffiweb_1 | Cannot get systems from database or PoleMarch. (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query') fluffiweb_1 | (Background on this error at: http://sqlalche.me/e/e3q8) dnsmasq_1 | dnsmasq: query[A] pole.fluffi from 172.18.0.5 dnsmasq_1 | dnsmasq: /etc/hosts pole.fluffi is 10.66.0.1 fluffiweb_1 | Polemarch ist Mist fluffiweb_1 | Cannot get systems from database or PoleMarch. (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query') fluffiweb_1 | (Background on this error at: http://sqlalche.me/e/e3q8) fluffiweb_1 | Traceback (most recent call last): fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 2275, in _wrap_pool_connect fluffiweb_1 | return fn() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 363, in connect fluffiweb_1 | return _ConnectionFairy._checkout(self) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 760, in _checkout fluffiweb_1 | fairy = _ConnectionRecord.checkout(pool) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 492, in checkout fluffiweb_1 | rec = pool._do_get() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py", line 139, in _do_get fluffiweb_1 | self._dec_overflow() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py", line 68, in exit fluffiweb_1 | compat.reraise(exc_type, exc_value, exc_tb) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 153, in reraise fluffiweb_1 | raise value fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py", line 136, in _do_get fluffiweb_1 | return self._create_connection() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 308, in _create_connection fluffiweb_1 | return _ConnectionRecord(self) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 437, in init fluffiweb_1 | self.__connect(first_connect_check=True) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py", line 639, in connect fluffiweb_1 | connection = pool._invoke_creator(self) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py", line 114, in connect fluffiweb_1 | return dialect.connect(*cargs, *cparams) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 453, in connect fluffiweb_1 | return self.dbapi.connect(cargs, **cparams) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/init.py", line 90, in Connect fluffiweb_1 | return Connection(*args, **kwargs) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/connections.py", line 704, in init fluffiweb_1 | self.connect() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/connections.py", line 973, in connect fluffiweb_1 | self._get_server_information() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/connections.py", line 1296, in _get_server_information fluffiweb_1 | packet = self._read_packet() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/connections.py", line 1032, in _read_packet dnsmasq_1 | dnsmasq: query[A] pole.fluffi from 172.18.0.5 dnsmasq_1 | dnsmasq: /etc/hosts pole.fluffi is 10.66.0.1 fluffiweb_1 | packet_header = self._read_bytes(4) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/pymysql/connections.py", line 1078, in _read_bytes fluffiweb_1 | CR.CR_SERVER_LOST, "Lost connection to MySQL server during query") fluffiweb_1 | pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query') fluffiweb_1 | fluffiweb_1 | The above exception was the direct cause of the following exception: fluffiweb_1 | fluffiweb_1 | Traceback (most recent call last): fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2309, in call__ fluffiweb_1 | return self.wsgi_app(environ, start_response) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app fluffiweb_1 | Polemarch ist Mist fluffiweb_1 | response = self.handle_exception(e) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception fluffiweb_1 | reraise(exc_type, exc_value, tb) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise fluffiweb_1 | raise value fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app fluffiweb_1 | response = self.full_dispatch_request() fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request fluffiweb_1 | rv = self.handle_user_exception(e) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception fluffiweb_1 | reraise(exc_type, exc_value, tb) fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise fluffiweb_1 | raise value fluffiweb_1 | File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request fluffiweb_1 | Traceback (most recent call last):
well, I think the central part here is
Lost connection to MySQL server during query
Can you connect to db.fluffi?
closing issue due to bypass this issue
sudo docker-compose -f /srv/fluffi/docker-compose.yaml up --force-recreate
Saw error in log as "fluffiweb_1 | (pymysql.err.InternalError) Packet sequence number wrong - got 1 expected 0"