siemens / fluffi

FLUFFI (Fully Localized Utility For Fuzzing Instantaneously) - A distributed evolutionary binary fuzzer for pentesters
MIT License
100 stars 21 forks source link

502 bad gatway Error while access Web fluffi (http://localhost:8880). #160

Closed satyendra22 closed 4 years ago

satyendra22 commented 4 years ago

Saw error in log as "fluffiweb_1 | (pymysql.err.InternalError) Packet sequence number wrong - got 1 expected 0"

ubuntu@ubuntu1804:/srv/fluffi/data/fluffigm$ sudo docker-compose -f /srv/fluffi/docker-compose.yaml up --force-recreate
Recreating fluffi_smb_1       ... done
Recreating fluffi_fluffiweb_1 ... done
Recreating fluffi_dashsync_1  ... done
Recreating fluffi_grasync_1   ... done
Recreating fluffi_dnsmasq_1   ... done
Recreating fluffi_mon_1       ... done
Recreating fluffi_fluffigm_1  ... done
Recreating fluffi_ntp_1       ... done
Recreating fluffi_polenext_1  ... done
Recreating fluffi_mariadb_1   ... done
Recreating fluffi_ftp_1       ... done
Attaching to fluffi_dnsmasq_1, fluffi_ftp_1, fluffi_smb_1, fluffi_polenext_1, fluffi_dashsync_1, fluffi_grasync_1, fluffi_mariadb_1, fluffi_fluffiweb_1, fluffi_fluffigm_1, fluffi_ntp_1, fluffi_mon_1
dashsync_1   | WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
dashsync_1   |  * Serving Flask app "main" (lazy loading)
dashsync_1   |  * Environment: production
dashsync_1   |    WARNING: This is a development server. Do not use it in a production deployment.
dashsync_1   |    Use a production WSGI server instead.
dashsync_1   |  * Debug mode: on
dashsync_1   |  * Running on http://0.0.0.0:4000/ (Press CTRL+C to quit)
dashsync_1   |  * Restarting with stat
dashsync_1   | WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.
dashsync_1   |  * Debugger is active!
dashsync_1   |  * Debugger PIN: 478-190-491
fluffigm_1   | standard_init_linux.go:211: exec user process caused "no such file or directory"
dnsmasq_1    | dnsmasq: started, version 2.80 cachesize 150
dnsmasq_1    | dnsmasq: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify dumpfile
dnsmasq_1    | dnsmasq-dhcp: DHCP, IP range 10.66.1.1 -- 10.66.1.254, lease time 6h
dnsmasq_1    | dnsmasq-dhcp: DHCP, static leases only on 10.66.0.0, lease time 1h
dnsmasq_1    | dnsmasq-tftp: TFTP root is /srv/tftp 
dnsmasq_1    | dnsmasq: using local addresses only for domain fluffi
dnsmasq_1    | dnsmasq: reading /etc/resolv.conf
dnsmasq_1    | dnsmasq: using local addresses only for domain fluffi
dnsmasq_1    | dnsmasq: ignoring nameserver 10.66.0.1 - local interface
dnsmasq_1    | dnsmasq: read /etc/hosts - 1 addresses
dnsmasq_1    | dnsmasq-dhcp: read /etc/ethers - 0 addresses
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
fluffiweb_1  | Checking for script in /app/prestart.sh
fluffiweb_1  | There is no script /app/prestart.sh
fluffiweb_1  | /usr/lib/python2.7/site-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
fluffiweb_1  |   'Supervisord is running as root and it is searching '
fluffiweb_1  | 2020-04-22 12:21:12,420 CRIT Supervisor running as root (no user in config file)
fluffiweb_1  | 2020-04-22 12:21:12,420 INFO Included extra file "/etc/supervisor.d/supervisord.ini" during parsing
fluffiweb_1  | 2020-04-22 12:21:12,445 INFO RPC interface 'supervisor' initialized
fluffiweb_1  | 2020-04-22 12:21:12,445 CRIT Server 'unix_http_server' running without any HTTP authentication checking
fluffiweb_1  | 2020-04-22 12:21:12,446 INFO supervisord started with pid 1
mariadb_1    | 2020-04-22 12:21:10-04:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.2.31+maria~bionic started.
mariadb_1    | 2020-04-22 12:21:11-04:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mariadb_1    | 2020-04-22 12:21:11-04:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.2.31+maria~bionic started.
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] mysqld (mysqld 10.2.31-MariaDB-1:10.2.31+maria~bionic) starting as process 1 ...
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Uses event mutexes
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Number of pools: 1
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Using SSE2 crc32 instructions
mariadb_1    | 2020-04-22 12:21:12 140164411012800 [Note] InnoDB: Initializing buffer pool, total size = 56.25G, instances = 50, chunk size = 128M
ntp_1        | 22 Apr 12:21:13 ntpd[1]: ntpd 4.2.8p10@1.3728-o (1): Starting
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Command line: /usr/sbin/ntpd -d
ntp_1        | 22 Apr 12:21:13 ntpd[1]: proto: precision = 0.085 usec (-23)
ntp_1        | restrict default: KOD does nothing without LIMITED.
ntp_1        | Finished Parsing!!
ntp_1        | 22 Apr 12:21:13 ntpd[1]: restrict default: KOD does nothing without LIMITED.
ntp_1        | restrict: op 1 addr 0.0.0.0 mask 0.0.0.0 mflags 00000000 flags 000005d0
ntp_1        | restrict: op 1 addr :: mask :: mflags 00000000 flags 000005d0
ntp_1        | restrict: op 1 addr 10.66.0.0 mask 255.255.254.0 mflags 00000000 flags 00000190
ntp_1        | restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00000000 flags 00000000
ntp_1        | attempting to open log /var/log/ntp.log
ntp_1        | 22 Apr 12:21:13 ntpd[1]: switching logging to file /var/log/ntp.log
ntp_1        | move_fd: estimated max descriptors: 1048576, initial socket boundary: 16
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Listen and drop on 0 v6wildcard [::]:123
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Listen and drop on 1 v4wildcard 0.0.0.0:123
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Listen normally on 2 lo 127.0.0.1:123
ntp_1        | restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00003000 flags 00000001
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Listen normally on 3 eth0 172.18.0.6:123
ntp_1        | restrict: op 1 addr 172.18.0.6 mask 255.255.255.255 mflags 00003000 flags 00000001
ntp_1        | 22 Apr 12:21:13 ntpd[1]: Listening on routing socket on fd #20 for interface updates
ntp_1        | key_expire: at 0 associd 54804
ntp_1        | peer_clear: at 0 next 1 associd 54804 refid INIT
ntp_1        | event at 0 81.7.10.197 8011 81 mobilize assoc 54804
ntp_1        | newpeer: 172.18.0.6->81.7.10.197 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
ntp_1        | key_expire: at 0 associd 54805
ntp_1        | peer_clear: at 0 next 2 associd 54805 refid INIT
ntp_1        | event at 0 85.114.128.137 8011 81 mobilize assoc 54805
ntp_1        | newpeer: 172.18.0.6->85.114.128.137 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
ntp_1        | key_expire: at 0 associd 54806
ntp_1        | peer_clear: at 0 next 3 associd 54806 refid INIT
ntp_1        | event at 0 188.68.36.203 8011 81 mobilize assoc 54806
ntp_1        | newpeer: 172.18.0.6->188.68.36.203 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
ntp_1        | key_expire: at 0 associd 54807
ntp_1        | peer_clear: at 0 next 4 associd 54807 refid INIT
ntp_1        | event at 0 85.25.210.112 8011 81 mobilize assoc 54807
ntp_1        | newpeer: 172.18.0.6->85.25.210.112 mode 3 vers 4 poll 6 10 flags 0x1 0x1 ttl 0 key 00000000
ntp_1        | event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled
ntp_1        | event at 0 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
ntp_1        | event at 0 0.0.0.0 c011 01 freq_not_set
ntp_1        | event at 0 0.0.0.0 c016 06 restart
polenext_1   | 6:C 22 Apr 12:21:09.841 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
polenext_1   | 6:C 22 Apr 12:21:09.841 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=6, just started
polenext_1   | 6:C 22 Apr 12:21:09.841 # Configuration loaded
smb_1        | smbd version 4.11.5 started.
smb_1        | Copyright Andrew Tridgell and the Samba Team 1992-2019
smb_1        | daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
fluffiweb_1  | 2020-04-22 12:21:13,448 INFO spawned: 'nginx' with pid 9
fluffiweb_1  | 2020-04-22 12:21:13,452 INFO spawned: 'uwsgi' with pid 10
fluffiweb_1  | [uWSGI] getting INI configuration from /app/uwsgi.ini
fluffiweb_1  | [uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
fluffiweb_1  | 
fluffiweb_1  | ;uWSGI instance configuration
fluffiweb_1  | [uwsgi]
fluffiweb_1  | cheaper = 2
fluffiweb_1  | processes = 16
fluffiweb_1  | ini = /app/uwsgi.ini
fluffiweb_1  | module = main
fluffiweb_1  | callable = app
fluffiweb_1  | wsgi-disable-file-wrapper = true
fluffiweb_1  | enable-threads = true
fluffiweb_1  | ini = /etc/uwsgi/uwsgi.ini
fluffiweb_1  | socket = /tmp/uwsgi.sock
fluffiweb_1  | chown-socket = nginx:nginx
fluffiweb_1  | chmod-socket = 664
fluffiweb_1  | hook-master-start = unix_signal:15 gracefully_kill_them_all
fluffiweb_1  | need-app = true
fluffiweb_1  | die-on-term = true
fluffiweb_1  | plugin = python3
fluffiweb_1  | show-config = true
fluffiweb_1  | ;end of configuration
fluffiweb_1  | 
fluffiweb_1  | *** Starting uWSGI 2.0.17 (64bit) on [Wed Apr 22 12:21:13 2020] ***
fluffiweb_1  | compiled with version: 6.4.0 on 27 March 2018 12:43:27
fluffiweb_1  | os: Linux-5.3.0-46-generic #38~18.04.1-Ubuntu SMP Tue Mar 31 04:17:56 UTC 2020
fluffiweb_1  | nodename: 642ed7e20ef4
fluffiweb_1  | machine: x86_64
fluffiweb_1  | clock source: unix
fluffiweb_1  | pcre jit disabled
fluffiweb_1  | detected number of CPU cores: 4
fluffiweb_1  | current working directory: /app
fluffiweb_1  | detected binary path: /usr/sbin/uwsgi
fluffiweb_1  | your memory page size is 4096 bytes
fluffiweb_1  | detected max file descriptor number: 1048576
fluffiweb_1  | lock engine: pthread robust mutexes
fluffiweb_1  | thunder lock: disabled (you can enable it with --thunder-lock)
fluffiweb_1  | uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3
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  | Python version: 3.6.9 (default, Oct 17 2019, 12:14:22)  [GCC 6.4.0]
fluffiweb_1  | Python main interpreter initialized at 0x555e08298f40
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  | python threads support enabled
fluffiweb_1  | your server socket listen backlog is limited to 100 connections
fluffiweb_1  | your mercy for graceful operations on workers is 60 seconds
fluffiweb_1  | mapped 1239640 bytes (1210 KB) for 16 cores
fluffiweb_1  | *** Operational MODE: preforking ***
fluffi_fluffigm_1 exited with code 1
ntp_1        | peer_xmit: at 1 172.18.0.6->81.7.10.197 mode 3 len 48 xmt 0xe24aed7a.0fbdd5a7
ntp_1        | auth_agekeys: at 1 keys 0 expired 0
dnsmasq_1    | dnsmasq: query[A] grafana.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] grafana.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] grafana.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] grafana.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] grafana.com.fluffi from 172.18.0.4
dnsmasq_1    | dnsmasq: config grafana.com.fluffi is NXDOMAIN
dnsmasq_1    | dnsmasq: query[AAAA] grafana.com.fluffi from 172.18.0.4
dnsmasq_1    | dnsmasq: config grafana.com.fluffi is NXDOMAIN
dnsmasq_1    | dnsmasq: query[A] grafana.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] grafana.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] grafana.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] grafana.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
fluffiweb_1  | 2020-04-22 12:21:14,721 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
fluffiweb_1  | 2020-04-22 12:21:14,721 INFO success: uwsgi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[A] ftp.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: /etc/hosts ftp.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[A] mon.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: /etc/hosts mon.fluffi is 10.66.0.1
ntp_1        | peer_xmit: at 2 172.18.0.6->85.114.128.137 mode 3 len 48 xmt 0xe24aed7b.0f2cc11d
ntp_1        | event at 2 85.114.128.137 8014 84 reachable
ntp_1        | clock_filter: n 1 off -0.029517 del 0.093327 dsp 7.937501 jit 0.000000
ntp_1        | peer_xmit: at 3 172.18.0.6->188.68.36.203 mode 3 len 48 xmt 0xe24aed7c.0f22c4e0
fluffiweb_1  | WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x555e08298f40 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)...
mariadb_1    | 2020-04-22 12:21:16 140164411012800 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2020-04-22 12:21:16 140099627861760 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
mariadb_1    | 2020-04-22 12:21:16 140164411012800 [Note] InnoDB: Highest supported file format is Barracuda.
ntp_1        | peer_xmit: at 4 172.18.0.6->85.25.210.112 mode 3 len 48 xmt 0xe24aed7d.0f1f1b8f
ntp_1        | event at 4 85.25.210.112 8014 84 reachable
ntp_1        | clock_filter: n 1 off -0.030662 del 0.103061 dsp 7.937501 jit 0.000000
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: 128 out of 128 rollback segments are active.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: Creating shared tablespace for temporary tables
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] InnoDB: 5.7.29 started; log sequence number 1615791
mariadb_1    | 2020-04-22 12:21:17 140100692342528 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb_1    | 2020-04-22 12:21:17 140100692342528 [Note] InnoDB: Buffer pool(s) load completed at 200422 12:21:17
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] Server socket created on IP: '::'.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Warning] 'user' entry 'root@f70f48c5732e' ignored in --skip-name-resolve mode.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Warning] 'proxies_priv' entry '@% root@f70f48c5732e' ignored in --skip-name-resolve mode.
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] Reading of all Master_info entries succeeded
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] Added new Master_info '' to hash table
mariadb_1    | 2020-04-22 12:21:17 140164411012800 [Note] mysqld: ready for connections.
mariadb_1    | Version: '10.2.31-MariaDB-1:10.2.31+maria~bionic'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
fluffi_fluffigm_1 exited with code 1
dnsmasq_1    | dnsmasq: query[A] usage.influxdata.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] usage.influxdata.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] usage.influxdata.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] usage.influxdata.com from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] usage.influxdata.com.fluffi from 172.18.0.4
dnsmasq_1    | dnsmasq: config usage.influxdata.com.fluffi is NXDOMAIN
dnsmasq_1    | dnsmasq: query[AAAA] usage.influxdata.com.fluffi from 172.18.0.4
dnsmasq_1    | dnsmasq: config usage.influxdata.com.fluffi is NXDOMAIN
dnsmasq_1    | dnsmasq: query[AAAA] usage.influxdata.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] usage.influxdata.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[AAAA] usage.influxdata.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
dnsmasq_1    | dnsmasq: query[A] usage.influxdata.com.localdomain from 172.18.0.4
dnsmasq_1    | dnsmasq: config error is REFUSED
polenext_1   | Operations to perform:
polenext_1   |   Apply all migrations: admin, auth, authtoken, contenttypes, django_celery_beat, main, sessions
polenext_1   | Running migrations:
polenext_1   |   Applying contenttypes.0001_initial... OK
polenext_1   |   Applying auth.0001_initial... OK
polenext_1   |   Applying admin.0001_initial... OK
polenext_1   |   Applying admin.0002_logentry_remove_auto_add... OK
polenext_1   |   Applying admin.0003_logentry_add_action_flag_choices... OK
fluffi_fluffigm_1 exited with code 1
polenext_1   |   Applying contenttypes.0002_remove_content_type_name... OK
polenext_1   |   Applying auth.0002_alter_permission_name_max_length... OK
polenext_1   |   Applying auth.0003_alter_user_email_max_length... OK
polenext_1   |   Applying auth.0004_alter_user_username_opts... OK
polenext_1   |   Applying auth.0005_alter_user_last_login_null... OK
polenext_1   |   Applying auth.0006_require_contenttypes_0002... OK
polenext_1   |   Applying auth.0007_alter_validators_add_error_messages... OK
polenext_1   |   Applying auth.0008_alter_user_username_max_length... OK
polenext_1   |   Applying auth.0009_alter_user_last_name_max_length... OK
polenext_1   |   Applying auth.0010_alter_group_name_max_length... OK
polenext_1   |   Applying auth.0011_update_proxy_permissions... OK
polenext_1   |   Applying authtoken.0001_initial... OK
polenext_1   |   Applying authtoken.0002_auto_20160226_1747... OK
polenext_1   |   Applying django_celery_beat.0001_initial... OK
polenext_1   |   Applying django_celery_beat.0002_auto_20161118_0346... OK
polenext_1   |   Applying django_celery_beat.0003_auto_20161209_0049... OK
polenext_1   |   Applying django_celery_beat.0004_auto_20170221_0000... OK
polenext_1   |   Applying django_celery_beat.0005_add_solarschedule_events_choices_squashed_0009_merge_20181012_1416... OK
polenext_1   |   Applying django_celery_beat.0006_periodictask_priority... OK
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
polenext_1   | Execute: /usr/local/bin/pyuwsgi --enable-threads --master --http=:8080 --daemonize=/tmp/polemarch/logs/polemarch_web.log /usr/local/lib/python3.6/dist-packages/polemarch/web.ini --static-map /static=/usr/local/lib/python3.6/dist-packages/polemarch/static --static-map /static=/usr/local/lib/python3.6/dist-packages/vstutils/static --static-map /static=/usr/local/lib/python3.6/dist-packages/django/contrib/admin/static --static-map /static=/usr/local/lib/python3.6/dist-packages/drf_yasg/static --static-map /static=/usr/local/lib/python3.6/dist-packages/rest_framework/static --attach-daemon2 stopsignal=15,reloadsignal=1,exec=/usr/bin/python -m celery worker --app=polemarch.wapp:app --loglevel=INFO --logfile=/tmp/polemarch/logs/polemarch_worker.log --pidfile=/tmp/polemarch/pid/polemarch_worker.pid --autoscale=8\,1 --hostname=root@%h --beat --queues=celery
polenext_1   |   Applying main.0001_v2... OK
polenext_1   | [uWSGI] getting INI configuration from /usr/local/lib/python3.6/dist-packages/polemarch/web.ini
polenext_1   | [uWSGI] getting INI configuration from /usr/local/lib/python3.6/dist-packages/polemarch/main/settings.ini
polenext_1   | *** WARNING: Can't find section "uwsgi" in INI configuration file /usr/local/lib/python3.6/dist-packages/polemarch/main/settings.ini ***
polenext_1   | [uWSGI] getting INI configuration from /etc/polemarch/settings.ini
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/polemarch/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/vstutils/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/django/contrib/admin/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/drf_yasg/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/rest_framework/static
fluffi_fluffigm_1 exited with code 1
polenext_1   | Wait until polemarch is available
polenext_1   | Polemarch is now available
polenext_1   | Add Project
fluffi_fluffigm_1 exited with code 1
polenext_1   |   Applying main.0002_modules_and_rename... OK
polenext_1   |   Applying main.0003_models_optimization... OK
polenext_1   |   Applying main.0004_projecttemplate... OK
polenext_1   |   Applying main.0005_history_on_delete... OK
polenext_1   |   Applying main.0006_migrate_django_22... OK
polenext_1   |   Applying sessions.0001_initial... OK
polenext_1   | <Response [201]>
polenext_1   | Add Inventory
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
polenext_1   | Add Periodic Task CheckHostAlive
polenext_1   | <Response [201]>
polenext_1   | Add Periodic Task CleanHistory
polenext_1   | <Response [201]>
polenext_1   | Add Periodic Task ManageAgents
fluffi_fluffigm_1 exited with code 1
polenext_1   | <Response [201]>
polenext_1   | Send Sync
polenext_1   | Initialization Finished!
mon_1        |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
mon_1        |                                  Dload  Upload   Total   Spent    Left  Speed
100    45  100    34  100    11    918    297 --:--:-- --:--:-- --:--:--  1216
mon_1        | HTTP/1.1 200 OK
mon_1        | Cache-Control: no-cache
mon_1        | Content-Type: application/json
mon_1        | Expires: -1
mon_1        | Pragma: no-cache
mon_1        | Date: Wed, 22 Apr 2020 16:21:38 GMT
mon_1        | Content-Length: 34
mon_1        | 
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
polenext_1   | Operations to perform:
polenext_1   |   Apply all migrations: admin, auth, authtoken, contenttypes, django_celery_beat, main, sessions
polenext_1   | Running migrations:
polenext_1   |   No migrations to apply.
dnsmasq_1    | dnsmasq: query[AAAA] mon.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: config mon.fluffi is NODATA-IPv6
dnsmasq_1    | dnsmasq: query[A] mon.fluffi from 172.18.0.3
dnsmasq_1    | dnsmasq: /etc/hosts mon.fluffi is 10.66.0.1
fluffiweb_1  | (pymysql.err.InternalError) Packet sequence number wrong - got 1 expected 0
fluffiweb_1  | (Background on this error at: http://sqlalche.me/e/2j85)
fluffi_fluffigm_1 exited with code 1
polenext_1   | Execute: /usr/local/bin/pyuwsgi --enable-threads --master --http=:8080 --daemonize=/tmp/polemarch/logs/polemarch_web.log /usr/local/lib/python3.6/dist-packages/polemarch/web.ini --static-map /static=/usr/local/lib/python3.6/dist-packages/polemarch/static --static-map /static=/usr/local/lib/python3.6/dist-packages/vstutils/static --static-map /static=/usr/local/lib/python3.6/dist-packages/django/contrib/admin/static --static-map /static=/usr/local/lib/python3.6/dist-packages/drf_yasg/static --static-map /static=/usr/local/lib/python3.6/dist-packages/rest_framework/static --attach-daemon2 stopsignal=15,reloadsignal=1,exec=/usr/bin/python -m celery worker --app=polemarch.wapp:app --loglevel=INFO --logfile=/tmp/polemarch/logs/polemarch_worker.log --pidfile=/tmp/polemarch/pid/polemarch_worker.pid --autoscale=8\,1 --hostname=root@%h --beat --queues=celery
polenext_1   | [uWSGI] getting INI configuration from /usr/local/lib/python3.6/dist-packages/polemarch/web.ini
polenext_1   | [uWSGI] getting INI configuration from /usr/local/lib/python3.6/dist-packages/polemarch/main/settings.ini
polenext_1   | *** WARNING: Can't find section "uwsgi" in INI configuration file /usr/local/lib/python3.6/dist-packages/polemarch/main/settings.ini ***
polenext_1   | [uWSGI] getting INI configuration from /etc/polemarch/settings.ini
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/polemarch/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/vstutils/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/django/contrib/admin/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/drf_yasg/static
polenext_1   | [uwsgi-static] added mapping for /static => /usr/local/lib/python3.6/dist-packages/rest_framework/static
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
polenext_1   | Wait until polemarch is available
polenext_1   | Polemarch is now available
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
dnsmasq_1    | dnsmasq: query[A] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: /etc/hosts db.fluffi is 10.66.0.1
dnsmasq_1    | dnsmasq: query[AAAA] db.fluffi from 172.18.0.7
dnsmasq_1    | dnsmasq: config db.fluffi is NODATA-IPv6
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not available retrying...
polenext_1   | Polemarch already initialized
polenext_1   | Polemarch not availab
TomSie commented 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
p0wer0xff commented 4 years ago

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
satyendra22 commented 4 years ago

@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):

TomSie commented 4 years ago

well, I think the central part here is

Lost connection to MySQL server during query

Can you connect to db.fluffi?

satyendra22 commented 4 years ago

closing issue due to bypass this issue