Skip to content

nginx bind() to 0.0.0.0:32000 failed (Address in use) #43

@djarotech

Description

@djarotech

So although moodle1:32000 is accessible and actually works, the logs show there is a bug somewhere. Looks like it tries to bind twice. To reproduce, follow steps here .

$ kubectl logs moodle1-d798c74bd-6kztb -n namespace1
Changed current directory to /root/.composer
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^0.3.8 for hirak/prestissimo
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing hirak/prestissimo (0.3.8): Downloading (100%)
Writing lock file
Generating autoload files
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating autoload files
2019-04-08 15:56:17,787 CRIT Set uid to user 0
2019-04-08 15:56:17,787 WARN No file matches via include "/etc/supervisor/conf.d/*.conf"
2019-04-08 15:56:17,826 INFO RPC interface 'supervisor' initialized
2019-04-08 15:56:17,826 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2019-04-08 15:56:17,827 INFO supervisord started with pid 1
2019-04-08 15:56:18,829 INFO spawned: 'php-fpm' with pid 88
2019-04-08 15:56:18,831 INFO spawned: 'nginx' with pid 89
2019/04/08 15:56:18 [emerg] 89#89: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2019/04/08 15:56:18 [emerg] 89#89: bind() to [::]:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)
2019/04/08 15:56:18 [emerg] 89#89: bind() to 0.0.0.0:32000 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:32000 failed (98: Address in use)
2019/04/08 15:56:18 [notice] 89#89: try again to bind() after 500ms
[08-Apr-2019 15:56:18] NOTICE: fpm is running, pid 88
[08-Apr-2019 15:56:18] NOTICE: ready to handle connections
2019/04/08 15:56:18 [emerg] 89#89: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2019/04/08 15:56:18 [emerg] 89#89: bind() to [::]:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)
2019/04/08 15:56:18 [emerg] 89#89: bind() to 0.0.0.0:32000 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:32000 failed (98: Address in use)
2019/04/08 15:56:18 [notice] 89#89: try again to bind() after 500ms
2019-04-08 15:56:19,857 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019/04/08 15:56:18 [emerg] 89#89: bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
2019/04/08 15:56:18 [emerg] 89#89: bind() to [::]:80 failed (98: Address in use)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions