REBELinBLUE / deployer

Deployer is a free and open source deployment tool.
http://phpdeployment.org
MIT License
911 stars 185 forks source link

Socket connection issue! #364

Closed fatonsopa closed 6 years ago

fatonsopa commented 6 years ago

HI,

Just installed the deployer on our local server. Everything else seems to work as expected beside socket. The message I'm getting is:

I researched for the error on google and none of the solutions seems to work for me.

Expected behaviour

Make the deploy

Actual behaviour

A connection could not be established to the socket at http://deployer.xx.xx:6001. This is required for reporting the status on running deployments. Please reload, if the issue continues please contact the system administrator

Steps to reproduce

Add a project Add server Deploy a project

Environment info

project path

/var/www/html/deployer

my deployer.conf

[program:deployer]
command=php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tr$
directory=/var/www/html/deployer
process_name=queue_%(process_num)s
numprocs=3
numprocs_start=0
stdout_logfile=/var/log/supervisor/deployer-%(process_num)s-stdout.log
stderr_logfile=/var/log/supervisor/deployer-%(process_num)s-stderr.log
stderr_logfile_maxbytes=1MB
stdout_logfile_maxbytes=1MB
redirect_stderr=true
autostart=true
autorestart=true

[program:deployer-socketio]
command=node socket.js
directory=/var/www/html/deployer
numprocs=1
autostart=true
autorestart=true
environment=HOME="/var/www/html/deployer",NODE_ENV="production"
stderr_logfile=/var/log/supervisor/deployer-socket-stderr.log
stdout_logfile=/var/log/supervisor/deployer-socket-stdout.log
stderr_logfile_maxbytes=1MB
stdout_logfile_maxbytes=1MB

[program:deployer-broadcast]
command=php artisan queue:work --queue=deployer-default --sleep=3 --tries=1 --da$
directory=/var/www/html/deployer
numprocs=1
stderr_logfile=/var/log/supervisor/deployer-broadcast-stderr.log
stdout_logfile=/var/log/supervisor/deployer-broadcast-stdout.log
stderr_logfile_maxbytes=1MB
stdout_logfile_maxbytes=1MB
redirect_stderr=true
autostart=true
autorestart=true

ps aux

sysuer@linuxbox:~$ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  1.2  0.0  34100  4420 ?        Ss   14:13   2:17 /sbin/init
root         2  0.0  0.0      0     0 ?        S    14:13   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/0:0]
root         5  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/0:0H]
root         7  0.5  0.0      0     0 ?        S    14:13   0:58 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    14:13   0:00 [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/0]
root        10  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/0]
root        11  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/1]
root        12  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/1]
root        13  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/1]
root        15  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/1:0H]
root        16  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/2]
root        17  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/2]
root        18  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/2]
root        20  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/2:0H]
root        21  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/3]
root        22  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/3]
root        23  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/3]
root        24  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/3:0]
root        25  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/3:0H]
root        26  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/4]
root        27  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/4]
root        28  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/4]
root        29  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/4:0]
root        30  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/4:0H]
root        31  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/5]
root        32  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/5]
root        33  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/5]
root        34  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/5:0]
root        35  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/5:0H]
root        36  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/6]
root        37  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/6]
root        38  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/6]
root        39  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/6:0]
root        40  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/6:0H]
root        41  0.0  0.0      0     0 ?        S    14:13   0:00 [watchdog/7]
root        42  0.0  0.0      0     0 ?        S    14:13   0:00 [migration/7]
root        43  0.0  0.0      0     0 ?        S    14:13   0:00 [ksoftirqd/7]
root        44  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/7:0]
root        45  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/7:0H]
root        46  0.0  0.0      0     0 ?        S    14:13   0:00 [kdevtmpfs]
root        47  0.0  0.0      0     0 ?        S<   14:13   0:00 [netns]
root        48  0.0  0.0      0     0 ?        S<   14:13   0:00 [perf]
root        49  0.0  0.0      0     0 ?        S    14:13   0:00 [khungtaskd]
root        50  0.0  0.0      0     0 ?        S<   14:13   0:00 [writeback]
root        51  0.0  0.0      0     0 ?        SN   14:13   0:00 [ksmd]
root        52  0.0  0.0      0     0 ?        SN   14:13   0:00 [khugepaged]
root        53  0.0  0.0      0     0 ?        S<   14:13   0:00 [crypto]
root        54  0.0  0.0      0     0 ?        S<   14:13   0:00 [kintegrityd]
root        55  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        56  0.0  0.0      0     0 ?        S<   14:13   0:00 [kblockd]
root        57  0.0  0.0      0     0 ?        S<   14:13   0:00 [ata_sff]
root        58  0.0  0.0      0     0 ?        S<   14:13   0:00 [md]
root        59  0.0  0.0      0     0 ?        S<   14:13   0:00 [devfreq_wq]
root        60  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/0:1]
root        61  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/1:1]
root        62  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/2:1]
root        63  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/3:1]
root        64  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/4:1]
root        65  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/5:1]
root        66  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/6:1]
root        67  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/7:1]
root        70  0.0  0.0      0     0 ?        S    14:13   0:00 [kswapd0]
root        71  0.0  0.0      0     0 ?        S<   14:13   0:00 [vmstat]
root        72  0.0  0.0      0     0 ?        S    14:13   0:00 [fsnotify_mark]
root        73  0.0  0.0      0     0 ?        S    14:13   0:00 [ecryptfs-kthrea]
root        89  0.0  0.0      0     0 ?        S<   14:13   0:00 [kthrotld]
root        90  0.0  0.0      0     0 ?        S<   14:13   0:00 [acpi_thermal_pm]
root        91  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        92  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        93  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        94  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        95  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        96  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        97  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        98  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root        99  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       100  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       101  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       102  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       103  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       104  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       105  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       106  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       107  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       108  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       109  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       110  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       111  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       112  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       113  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       114  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       118  0.0  0.0      0     0 ?        S<   14:13   0:00 [ipv6_addrconf]
root       119  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/2:2]
root       132  0.0  0.0      0     0 ?        S<   14:13   0:00 [deferwq]
root       133  0.0  0.0      0     0 ?        S<   14:13   0:00 [charger_manager]
root       201  0.0  0.0      0     0 ?        S<   14:13   0:00 [kpsmoused]
root       202  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_0]
root       203  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_0]
root       204  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_1]
root       205  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_1]
root       206  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_2]
root       207  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_2]
root       208  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_3]
root       209  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_3]
root       210  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_4]
root       211  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_4]
root       212  0.0  0.0      0     0 ?        S    14:13   0:00 [scsi_eh_5]
root       213  0.0  0.0      0     0 ?        S<   14:13   0:00 [scsi_tmf_5]
root       223  0.0  0.0      0     0 ?        S    14:13   0:00 [kworker/1:2]
root       225  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       226  0.0  0.0      0     0 ?        S<   14:13   0:00 [bioset]
root       239  0.0  0.0      0     0 ?        S    14:13   0:00 [jbd2/sda1-8]
root       240  0.0  0.0      0     0 ?        S<   14:13   0:00 [ext4-rsv-conver]
root       351  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/0:1H]
root       391  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/7:1H]
root       394  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/4:1H]
root       456  0.9  0.0  19480  2024 ?        S    14:13   1:44 upstart-udev-bridge --daemon
root       476 81.6  4.6 427952 379236 ?       Rs   14:13 146:48 /lib/systemd/systemd-udevd --daemon
root       501  0.2  0.0  15280   204 ?        S    14:13   0:27 upstart-file-bridge --daemon
message+   505  0.2  0.0  40044  3200 ?        Ss   14:13   0:29 dbus-daemon --system --fork
syslog     507  0.3  0.0 255844  2972 ?        Ssl  14:13   0:36 rsyslogd
root       521  0.0  0.0  49028  4736 ?        Ss   14:13   0:00 /lib/systemd/systemd --system
root       537  0.0  0.0  43648  3204 ?        Ss   14:13   0:00 /lib/systemd/systemd-logind
root       540  0.0  0.0  19496  2768 ?        Ss   14:13   0:00 /usr/sbin/bluetoothd
avahi      544  0.0  0.0  32356  2908 ?        S    14:13   0:00 avahi-daemon: running [linuxbox.local]
avahi      546  0.0  0.0  32224   248 ?        S    14:13   0:00 avahi-daemon: chroot helper
root       557  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/1:1H]
root       575  0.0  0.0      0     0 ?        S<   14:13   0:00 [krfcommd]
redis      607  0.0  0.1  53004  9812 ?        Ssl  14:13   0:08 /usr/local/bin/redis-server 127.0.0.1:6379       
root       608  0.0  0.0      0     0 ?        S    14:13   0:00 [kauditd]
root       610  0.5  0.7 203624 57464 ?        Ss   14:13   1:02 /lib/systemd/systemd-journald
root       617  0.8  0.0  52452  4908 ?        S    14:13   1:28 /lib/systemd/systemd-udevd --daemon
root       618  0.6  0.0  52452  5036 ?        S    14:13   1:09 /lib/systemd/systemd-udevd --daemon
root       619  0.0  0.0  52452  4612 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       620  0.0  0.0  52452  4972 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       621  0.0  0.0  52452  4764 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       622  0.0  0.0  52452  4672 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       623  0.0  0.0  52484  4388 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       624  0.0  0.0  52484  4604 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       625  0.0  0.0  52484  4696 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       626  0.0  0.0  52484  4448 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       627  0.0  0.0  52484  4832 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       628  0.0  0.0  52484  4464 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       629  0.0  0.0  52484  4824 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       630  0.0  0.0  52484  4720 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       631  0.0  0.0  52484  4740 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       632  0.0  0.0  52484  4732 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       633  0.0  0.0  52484  5208 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       634  0.0  0.0  52484  4672 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       635  0.0  0.0  52484  4756 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       636  0.0  0.0  52580  4728 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       637  0.0  0.0  52580  5196 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       638  0.0  0.0  52580  5048 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       639  0.0  0.0  52580  4912 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       640  0.0  0.0  52580  4668 ?        S    14:13   0:00 /lib/systemd/systemd-udevd --daemon
root       655  0.0  0.0      0     0 ?        S<   14:13   0:00 [edac-poller]
root       658  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/5:1H]
root       693  0.0  0.0      0     0 ?        S<   14:13   0:00 [kvm-irqfd-clean]
root       711  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/2:1H]
root       760  0.2  0.0  15264  1896 ?        S    14:13   0:22 upstart-socket-bridge --daemon
root       763  0.0  0.1 316756 15524 ?        Ss   14:13   0:00 smbd -F
root       873  0.0  0.1 334644  9520 ?        Ssl  14:13   0:00 /usr/sbin/ModemManager
root      1083  0.0  0.0  24232  2196 tty4     Ss+  14:13   0:00 /sbin/getty -8 38400 tty4
root      1087  0.0  0.0  24232  2152 tty5     Ss+  14:13   0:00 /sbin/getty -8 38400 tty5
root      1119  0.0  0.1 349384 12200 ?        Ssl  14:13   0:00 NetworkManager
root      1125  0.0  0.0  24232  2152 tty2     Ss+  14:13   0:00 /sbin/getty -8 38400 tty2
root      1154  0.0  0.0  24232  2180 tty3     Ss+  14:13   0:00 /sbin/getty -8 38400 tty3
root      1165  0.0  0.0  24232  2116 tty6     Ss+  14:13   0:00 /sbin/getty -8 38400 tty6
root      1201  0.0  0.0  61580  5512 ?        Ss   14:13   0:00 /usr/sbin/sshd -D
root      1204  0.0  0.0  26020  2476 ?        Ss   14:13   0:00 cron
root      1210  0.0  0.0   4372  1712 ?        Ss   14:13   0:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
root      1269  0.0  0.0  19392  2212 ?        Ss   14:13   0:00 /usr/sbin/irqbalance
whoopsie  1272  0.0  0.1 356948  9252 ?        Ssl  14:13   0:00 whoopsie
root      1276  0.0  0.0  17776  2672 ?        Ss   14:13   0:00 /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf
root      1311  0.0  0.0  75556  6476 ?        Ss   14:13   0:00 /usr/sbin/cups-browsed
root      1401  0.0  0.0 281320  7240 ?        Sl   14:13   0:00 /usr/lib/policykit-1/polkitd --no-debug
root      1509  0.0  0.0 308672  5212 ?        S    14:13   0:00 smbd -F
bind      1566  0.0  0.5 755208 46168 ?        Ssl  14:13   0:00 /usr/sbin/named -u bind
root      1631  0.0  0.0 317280  6788 ?        S    14:13   0:00 smbd -F
dovecot   1648  0.0  0.0   9288  2000 ?        S    14:13   0:00 dovecot/anvil
root      1649  0.0  0.0   9416  2188 ?        S    14:13   0:00 dovecot/log
root      1668  0.0  0.0  18604  3332 ?        S    14:13   0:00 dovecot/config
root      1751  0.3  0.1 253544 12824 ?        Ssl  14:13   0:42 /opt/teamviewer/tv_bin/teamviewerd -f
mysql     1774  0.3  3.5 2664640 291856 ?      Ssl  14:13   0:36 /usr/sbin/mysqld
root      1806  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/3:1H]
nobody    1821  0.0  0.0  39440  3200 ?        S    14:13   0:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --n
root      1860  0.0  0.3 402376 30212 ?        Ss   14:13   0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)  
www-data  1863  0.0  0.1 402376  9360 ?        S    14:13   0:00 php-fpm: pool www                                     
www-data  1864  0.0  0.1 402376  9364 ?        S    14:13   0:00 php-fpm: pool www                                     
root      2203  0.0  0.0 231456  5612 ?        Ss   14:13   0:00 nmbd -D
root      2403  0.0  0.0      0     0 ?        S<   14:13   0:00 [kworker/6:1H]
beansta+  2531  0.0  0.0   4476   696 ?        S    14:13   0:04 /usr/bin/beanstalkd -l 127.0.0.1 -p 11300
root      3373  0.0  0.0  76868  6540 ?        Ss   14:13   0:00 /usr/sbin/cupsd -f
colord    3479  0.0  0.0 301352  7600 ?        Sl   14:13   0:00 /usr/lib/colord/colord
clamav    3850  0.0  6.4 701120 528208 ?       Ssl  14:13   0:00 /usr/sbin/clamd
clamav    4014  0.0  0.0  53088  4344 ?        Ss   14:13   0:00 /usr/bin/freshclam -d --quiet
kernoops  4047  0.0  0.0  37344  2500 ?        Ss   14:13   0:00 /usr/sbin/kerneloops
memcache  4057  0.0  0.0 325396  2668 ?        Sl   14:13   0:00 /usr/bin/memcached -m 1000 -p 11211 -u memcache -l 127
opendkim  4080  0.0  0.0 214836  4952 ?        Ssl  14:13   0:00 /usr/sbin/opendkim -x /etc/opendkim.conf -u opendkim -
root      4102  0.0  0.0      0     0 ?        R    16:44   0:01 [kworker/u64:2]
root      4234  0.0  0.0  25344  2984 ?        Ss   14:13   0:00 /usr/lib/postfix/master
root      4550  0.0  0.6 514452 54680 ?        Ss   14:14   0:00 /usr/sbin/apache2 -k start
www-data  4553  0.0  0.0 147732  4916 ?        S    14:14   0:00 /usr/sbin/fcgi-pm -k start
www-data  4554  0.0  0.0 148908  4952 ?        S    14:14   0:00 /usr/sbin/apache2 -k start
root      4555  0.0  0.0 223196  3516 ?        Ssl  14:14   0:00 PassengerWatchdog
root      4558  0.0  0.0 504252  3656 ?        Sl   14:14   0:00 PassengerHelperAgent
nobody    4564  0.0  0.1 239812  8276 ?        Sl   14:14   0:00 PassengerLoggingAgent
www-data  4627  0.0  0.5 528896 42328 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
www-data  4628  0.0  0.4 529040 38320 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
www-data  4629  0.0  0.4 528552 39720 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
www-data  4631  0.0  0.5 528652 42860 ?        S    14:14   0:03 /usr/sbin/apache2 -k start
www-data  4697  0.0  0.3 528028 29700 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
root      4757  0.3  6.1 6810516 500884 ?      SNl  14:14   0:36 /usr/local/crashplan/jre/bin/java -Dfile.encoding=UTF-
www-data  4774  0.0  0.3 528296 30064 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
root      4916  5.3  0.1 707976 14868 ?        Sl   14:14   9:34 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/ru
root      5108  0.0  0.0  24232  2204 tty1     Ss+  14:14   0:00 /sbin/getty -8 38400 tty1
www-data  5173  0.0  0.5 529028 42660 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
www-data  5233  0.0  0.4 528740 39416 ?        S    14:14   0:02 /usr/sbin/apache2 -k start
root      8781  0.0  0.0 278064  5876 ?        Ssl  14:15   0:00 lightdm
root      8796  0.0  0.5 215980 41228 tty7     Ss+  14:15   0:00 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run
root      8799  0.2  0.0 287656  6424 ?        Sl   14:15   0:25 /usr/lib/accountsservice/accounts-daemon
root      8917  0.0  0.0 166448  6404 ?        Sl   14:15   0:00 lightdm --session-child 16 19
lightdm   8947  0.0  0.0  20840  3276 ?        Ss   14:15   0:00 /bin/sh /usr/lib/lightdm/lightdm-greeter-session /usr/
lightdm   8954  0.0  0.0  39432  2616 ?        Ss   14:15   0:00 //bin/dbus-daemon --fork --print-pid 5 --print-address
lightdm   8957  0.0  0.2 487272 24220 ?        Sl   14:15   0:01 /usr/sbin/lightdm-gtk-greeter
lightdm   8980  0.0  0.0 337580  5388 ?        Sl   14:15   0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
lightdm   8984  0.0  0.0  39328  3324 ?        S    14:15   0:00 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibil
lightdm   8989  0.0  0.0 125112  4872 ?        Sl   14:15   0:00 /usr/lib/at-spi2-core/at-spi2-registryd --use-gnome-se
lightdm   9007  0.0  0.0 201060  7792 ?        Sl   14:15   0:00 /usr/lib/gvfs/gvfsd
lightdm   9017  0.0  0.0 280328  5548 ?        Sl   14:15   0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/112/gvfs -f -o big_
lightdm   9049  0.0  0.0  44080  3836 ?        S    14:15   0:00 init --user --startup-event indicator-services-start
lightdm   9067  0.0  0.0 339312  6756 ?        Ssl  14:15   0:00 /usr/lib/x86_64-linux-gnu/indicator-messages/indicator
lightdm   9070  0.0  0.0 282692  5868 ?        Ssl  14:15   0:00 /usr/lib/x86_64-linux-gnu/indicator-power/indicator-po
lightdm   9072  0.0  0.1 483472  9084 ?        Ssl  14:15   0:00 /usr/lib/x86_64-linux-gnu/indicator-sound/indicator-so
lightdm   9076  0.0  0.1 286988 10524 ?        Ssl  14:15   0:00 /usr/lib/x86_64-linux-gnu/indicator-application/indica
root      9081  0.0  0.0 239584  7380 ?        Sl   14:15   0:00 /usr/lib/upower/upowerd
lightdm   9138  0.0  0.1 353064  9084 ?        S&1 
root     21351  0.0  0.0  20844  3208 ?        S    17:13   0:00 /bin/bash /usr/local/ispconfig/server/server.sh
root     21352  0.0  0.0  20824  2356 ?        S    17:13   0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh 2>&1 
root     21558  1.0  0.3 294864 26964 ?        S    17:13   0:00 /usr/bin/php -q -d disable_classes= -d disable_functio
nvidia-+ 21661  0.0  0.0  17052  1736 ?        Ds   17:13   0:00 /usr/bin/nvidia-persistenced --user nvidia-persistence
root     21663  0.0  0.0  22600  1796 ?        D    17:13   0:00 /sbin/modprobe -q -- char-major-195-255
sysuer   21665  0.0  0.0  26832  2688 pts/4    R+   17:13   0:00 ps aux
postfix  27336  0.0  0.0  27408  2876 ?        S    16:41   0:00 pickup -l -t unix -u -c
postfix  27656  0.0  0.0  28520  4056 ?        S    15:02   0:00 qmgr -l -t unix -u
postfix  27723  0.0  0.0  40180  5252 ?        S    15:02   0:00 tlsmgr -l -t unix -u -c
www-data 27894  0.0  0.3 528028 29716 ?        S    16:19   0:00 /usr/sbin/apache2 -k start
www-data 27950  0.0  0.3 528028 29716 ?        S    16:19   0:00 /usr/sbin/apache2 -k start
root     28604  0.0  0.0  61928  3212 ?        S    16:53   0:00 CRON
root     28606  0.0  0.0  20816  2992 ?        Ss   16:53   0:00 /bin/sh -c /usr/local/ispconfig/server/cron.sh 2>&1 | 
root     28607  0.0  0.0  20828  2756 ?        S    16:53   0:00 /bin/bash /usr/local/ispconfig/server/cron.sh
root     28608  0.0  0.0  20824  2356 ?        S    16:53   0:00 /bin/sh -c /usr/local/ispconfig/server/cron.sh 2>&1 | 
root     28610  0.0  0.3 294928 27464 ?        S    16:53   0:00 /usr/bin/php -q -d disable_classes= -d disable_functio
ntp      29106  0.0  0.0  33516  4380 ?        Ss   15:02   0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 119:128
root     29845  0.0  0.1  71860 14448 ?        Ss   16:42   0:00 /usr/bin/python /usr/bin/supervisord -c /etc/superviso
root     29891  0.0  0.5 310540 41200 ?        S    16:42   0:00 php artisan queue:work --queue=deployer-high,deployer-
root     29892  0.0  0.4 308428 38776 ?        S    16:42   0:00 php artisan queue:work --queue=deployer-high,deployer-
root     29893  0.0  0.4 308428 38260 ?        S    16:42   0:00 php artisan queue:work --queue=deployer-high,deployer-
root     29894  0.0  0.4 310540 40772 ?        S    16:42   0:00 php artisan queue:work --queue=deployer-default --slee
root     30825  0.0  0.0      0     0 ?        S    16:31   0:01 [kworker/u64:3]
root     32115  0.0  0.1 325992 15776 ?        S    15:47   0:01 smbd -F

IP Listen

$ sudo netstat --listen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:urd                   *:*                     LISTEN     
tcp        0      0 localhost:5940          *:*                     LISTEN     
tcp        0      0 10.20.30.10:domain      *:*                     LISTEN     
tcp        0      0 linuxbox:domain         *:*                     LISTEN     
tcp        0      0 localhost:domain        *:*                     LISTEN     
tcp        0      0 *:ssh                   *:*                     LISTEN     
tcp        0      0 localhost:ipp           *:*                     LISTEN     
tcp        0      0 *:smtp                  *:*                     LISTEN     
tcp        0      0 localhost:953           *:*                     LISTEN     
tcp        0      0 *:microsoft-ds          *:*                     LISTEN     
tcp        0      0 *:imaps                 *:*                     LISTEN     
tcp        0      0 *:pop3s                 *:*                     LISTEN     
tcp        0      0 localhost:11300         *:*                     LISTEN     
tcp        0      0 localhost:10025         *:*                     LISTEN     
tcp        0      0 *:mysql                 *:*                     LISTEN     
tcp        0      0 localhost:10027         *:*                     LISTEN     
tcp        0      0 *:submission            *:*                     LISTEN     
tcp        0      0 localhost:11211         *:*                     LISTEN     
tcp        0      0 *:netbios-ssn           *:*                     LISTEN     
tcp        0      0 localhost:6379          *:*                     LISTEN     
tcp        0      0 *:pop3                  *:*                     LISTEN     
tcp        0      0 *:imap2                 *:*                     LISTEN     
tcp6       0      0 [::]:http               [::]:*                  LISTEN     
tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN     
tcp6       0      0 [::]:81                 [::]:*                  LISTEN     
tcp6       0      0 [::]:urd                [::]:*                  LISTEN     
tcp6       0      0 localhost:4244          [::]:*                  LISTEN     
tcp6       0      0 [::]:domain             [::]:*                  LISTEN     
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN     
tcp6       0      0 ip6-localhost:ipp       [::]:*                  LISTEN     
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN     
tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN     
tcp6       0      0 [::]:https              [::]:*                  LISTEN     
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN     
tcp6       0      0 [::]:8000               [::]:*                  LISTEN     
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN     
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN     
tcp6       0      0 [::]:submission         [::]:*                  LISTEN     
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN     
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN     
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN     
udp        0      0 *:ipp                   *:*                                
udp        0      0 *:mdns                  *:*                                
udp        0      0 localhost:11211         *:*                                
udp        0      0 10.20.30.10:domain      *:*                                
udp        0      0 linuxbox:domain         *:*                                
udp        0      0 localhost:domain        *:*                                
udp        0      0 10.20.30.10:ntp         *:*                                
udp        0      0 localhost:ntp           *:*                                
udp        0      0 *:ntp                   *:*                                
udp        0      0 10.20.255.25:netbios-ns *:*                                
udp        0      0 10.20.30.10:netbios-ns  *:*                                
udp        0      0 *:netbios-ns            *:*                                
udp        0      0 10.20.255.2:netbios-dgm *:*                                
udp        0      0 10.20.30.10:netbios-dgm *:*                                
udp        0      0 *:netbios-dgm           *:*                                
udp        0      0 *:53549                 *:*                                
udp6       0      0 [::]:mdns               [::]:*                             
udp6       0      0 [::]:51886              [::]:*                             
udp6       0      0 [::]:domain             [::]:*                             
udp6       0      0 fe80::7ae7:d1ff:fe8:ntp [::]:*                             
udp6       0      0 ip6-localhost:ntp       [::]:*                             
udp6       0      0 [::]:ntp                [::]:*                             
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     SEQPACKET  LISTENING     8587     /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     18199    private/dovecot
unix  2      [ ACC ]     STREAM     LISTENING     18202    private/amavis
unix  2      [ ACC ]     STREAM     LISTENING     9151     /var/spool/postfix/private/auth
unix  2      [ ACC ]     STREAM     LISTENING     23463    /run/user/112/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     11437    /var/run/acpid.socket
unix  2      [ ACC ]     STREAM     LISTENING     13466    /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     9528     /var/run/sdp
unix  2      [ ACC ]     STREAM     LISTENING     8668     /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     8694     /run/systemd/journal/stdout
unix  2      [ ACC ]     STREAM     LISTENING     23247    @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     25836    @/tmp/dbus-ovrpY4qPW6
unix  2      [ ACC ]     STREAM     LISTENING     9957     /var/run/dovecot/stats
unix  2      [ ACC ]     STREAM     LISTENING     8597     /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     9958     /var/run/dovecot/ssl-params
unix  2      [ ACC ]     STREAM     LISTENING     9959     /var/run/dovecot/login/ssl-params
unix  2      [ ACC ]     STREAM     LISTENING     9960     /var/run/dovecot/replicator
unix  2      [ ACC ]     STREAM     LISTENING     9961     /var/run/dovecot/replication-notify
unix  2      [ ACC ]     STREAM     LISTENING     9962     /var/run/dovecot/login/pop3
unix  2      [ ACC ]     STREAM     LISTENING     9967     /var/run/dovecot/log-errors
unix  2      [ ACC ]     STREAM     LISTENING     9968     /var/run/dovecot/ipc
unix  2      [ ACC ]     STREAM     LISTENING     23358    @/com/ubuntu/upstart-session/112/9049
unix  2      [ ACC ]     STREAM     LISTENING     9969     /var/run/dovecot/login/ipc-proxy
unix  2      [ ACC ]     STREAM     LISTENING     9970     /var/run/dovecot/indexer-worker
unix  2      [ ACC ]     STREAM     LISTENING     9971     /var/run/dovecot/indexer
unix  2      [ ACC ]     STREAM     LISTENING     9972     /var/run/dovecot/login/imap
unix  2      [ ACC ]     STREAM     LISTENING     9973     /var/run/dovecot/imap-urlauth-worker
unix  2      [ ACC ]     STREAM     LISTENING     9974     /var/run/dovecot/token-login/imap-urlauth
unix  2      [ ACC ]     STREAM     LISTENING     9975     /var/run/dovecot/imap-urlauth
unix  2      [ ACC ]     STREAM     LISTENING     9980     /var/run/dovecot/doveadm-server
unix  2      [ ACC ]     STREAM     LISTENING     23248    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     9981     /var/run/dovecot/dns-client
unix  2      [ ACC ]     STREAM     LISTENING     9982     /var/run/dovecot/director-admin
unix  2      [ ACC ]     STREAM     LISTENING     9983     /var/run/dovecot/dict
unix  2      [ ACC ]     STREAM     LISTENING     9984     /var/run/dovecot/config
unix  2      [ ACC ]     STREAM     LISTENING     9985     /var/run/dovecot/login/login
unix  2      [ ACC ]     STREAM     LISTENING     9986     /var/run/dovecot/token-login/tokenlogin
unix  2      [ ACC ]     STREAM     LISTENING     9987     /var/run/dovecot/auth-login
unix  2      [ ACC ]     STREAM     LISTENING     9988     /var/run/dovecot/auth-client
unix  2      [ ACC ]     STREAM     LISTENING     9989     /var/run/dovecot/auth-userdb
unix  2      [ ACC ]     STREAM     LISTENING     18104    public/pickup
unix  2      [ ACC ]     STREAM     LISTENING     9990     /var/run/dovecot/auth-master
unix  2      [ ACC ]     STREAM     LISTENING     18114    public/cleanup
unix  2      [ ACC ]     STREAM     LISTENING     18117    public/qmgr
unix  2      [ ACC ]     STREAM     LISTENING     18139    public/flush
unix  2      [ ACC ]     STREAM     LISTENING     18154    public/showq
unix  2      [ ACC ]     STREAM     LISTENING     9152     /var/run/dovecot/auth-worker
unix  2      [ ACC ]     STREAM     LISTENING     9153     /var/run/dovecot/anvil
unix  2      [ ACC ]     STREAM     LISTENING     9154     /var/run/dovecot/anvil-auth-penalty
unix  2      [ ACC ]     STREAM     LISTENING     11048    /var/run/php5-fpm.sock
unix  2      [ ACC ]     STREAM     LISTENING     9354     @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     17626    /var/run/samba/nmbd/unexpected
unix  2      [ ACC ]     STREAM     LISTENING     16638    /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     548470   /var/run/supervisor.sock.29838
unix  2      [ ACC ]     STREAM     LISTENING     13115    /var/run/cups/cups.sock
unix  2      [ ACC ]     STREAM     LISTENING     17155    /var/run/clamav/clamd.ctl
unix  2      [ ACC ]     STREAM     LISTENING     18036    /var/run/opendkim/opendkim.sock
unix  2      [ ACC ]     STREAM     LISTENING     23818    /var/run/fail2ban/fail2ban.sock
unix  2      [ ACC ]     STREAM     LISTENING     19991    /tmp/passenger.1.0.4550/generation-0/request
unix  2      [ ACC ]     STREAM     LISTENING     19992    /tmp/passenger.1.0.4550/generation-0/helper_admin
unix  2      [ ACC ]     STREAM     LISTENING     12071    /tmp/passenger.1.0.4550/generation-0/logging
unix  2      [ ACC ]     STREAM     LISTENING     12072    /tmp/passenger.1.0.4550/generation-0/logging_admin
unix  2      [ ACC ]     STREAM     LISTENING     18121    private/tlsmgr
unix  2      [ ACC ]     STREAM     LISTENING     18124    private/rewrite
unix  2      [ ACC ]     STREAM     LISTENING     18127    private/bounce
unix  2      [ ACC ]     STREAM     LISTENING     18130    private/defer
unix  2      [ ACC ]     STREAM     LISTENING     18133    private/trace
unix  2      [ ACC ]     STREAM     LISTENING     18136    private/verify
unix  2      [ ACC ]     STREAM     LISTENING     18142    private/proxymap
unix  2      [ ACC ]     STREAM     LISTENING     18145    private/proxywrite
unix  2      [ ACC ]     STREAM     LISTENING     18148    private/smtp
unix  2      [ ACC ]     STREAM     LISTENING     18151    private/relay
unix  2      [ ACC ]     STREAM     LISTENING     18157    private/error
unix  2      [ ACC ]     STREAM     LISTENING     18160    private/retry
unix  2      [ ACC ]     STREAM     LISTENING     18163    private/discard
unix  2      [ ACC ]     STREAM     LISTENING     18166    private/local
unix  2      [ ACC ]     STREAM     LISTENING     18169    private/virtual
unix  2      [ ACC ]     STREAM     LISTENING     18172    private/lmtp
unix  2      [ ACC ]     STREAM     LISTENING     18175    private/anvil
unix  2      [ ACC ]     STREAM     LISTENING     18178    private/scache
unix  2      [ ACC ]     STREAM     LISTENING     18181    private/maildrop
unix  2      [ ACC ]     STREAM     LISTENING     18184    private/uucp
unix  2      [ ACC ]     STREAM     LISTENING     18187    private/ifmail
unix  2      [ ACC ]     STREAM     LISTENING     18190    private/bsmtp
unix  2      [ ACC ]     STREAM     LISTENING     18193    private/scalemail-backend
unix  2      [ ACC ]     STREAM     LISTENING     18196    private/mailman
unix  2      [ ACC ]     STREAM     LISTENING     23298    @/tmp/dbus-iIoz7CvAb3

supervisord.lo empty

deployer-socket-stdout.log empty

deployer-broadcast-stdout.log

[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ServerLogChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\ModelChanged
[2018-02-01 16:42:34] Processing: REBELinBLUE\Deployer\Events\Listeners\TestProjectUrls
[2018-02-01 16:42:34] Processed:  REBELinBLUE\Deployer\Events\Listeners\TestProjectUrls

$ sudo netstat -peanut | grep ":6001"

tcp6       0      0 :::6001                 :::*                    LISTEN      0          776954      31861/node 
fatonsopa commented 6 years ago

FYI.

Just tested, when I run "node socket.js" in terminal and run a deploy i see that the socket is receiving message from deployment as:

Message received from event REBELinBLUE\Deployer\Events\ServerLogChanged to channel serverlog Message received from event REBELinBLUE\Deployer\Events\ModelChanged to channel deployment Message received from event REBELinBLUE\Deployer\Events\ModelChanged to channel project

However, i still get the "Server error" on deployer

REBELinBLUE commented 6 years ago

Sorry for the late reply. It looks to me that port 6001 is being blocked by your host

On your machine (not the server) you can try connecting to the port with telnet

$ telnet hostname 6001

You should see something like

Trying ::1...
Connected to localhost.
Escape character is '^]'.

if it is blocked you'll get telnet: Unable to connect to remote host: Connection refused

You could try changing the port, just need to edit the value in .env and then restart the node server.

However, you might want to try proxying the request to the socket server so that it the frontend can connect from port 80 (this is how the nginx config works by default)

Here is how you do it in Apache, although I've never tried https://stackoverflow.com/questions/36472920/apache-proxy-configuration-for-socket-io-project-not-in-root

fatonsopa commented 6 years ago

Hi,

Thanks for the reply :)

Here is what I get:

Refreshs-MacBook-Pro:~ sopa$ telnet {IP} 6001
Trying {IP}...
telnet: connect to address {IP}: Connection refused
telnet: Unable to connect to remote host
Refreshs-MacBook-Pro:~ sopa$ 

I'm going to try the port change and proxy (I"m using Apache) and than see the result.

Thanks.

REBELinBLUE commented 6 years ago

Sorry, what I put hostname I meant to replace it with the hostname, i.e. from your example

$ telnet deployer.xx.xx 6001

fatonsopa commented 6 years ago

Hi,

Following your suggestions:

Refreshs-MacBook-Pro:~ sopa$ telnet deployer.site.com 8080
Trying 104.27.183.175...
Connected to deployer.site.com.
Escape character is '^]'.

supervisor

sysuer@linuxbox:/var/www/html/deployer$ sudo service supervisor start
Starting supervisor: 2018-02-06 15:33:39,508 CRIT Supervisor running as root (no user in config file)
2018-02-06 15:33:39,508 WARN Included extra file "/etc/supervisor/conf.d/deployer.conf" during parsing
2018-02-06 15:33:39,510 INFO supervisord started with pid 7717
2018-02-06 15:33:40,513 INFO spawned: 'queue_2' with pid 7757
2018-02-06 15:33:40,516 INFO spawned: 'queue_1' with pid 7758
2018-02-06 15:33:40,519 INFO spawned: 'queue_0' with pid 7759
2018-02-06 15:33:40,522 INFO spawned: 'deployer-broadcast' with pid 7760
2018-02-06 15:33:40,523 INFO spawned: 'deployer-socketio' with pid 7761
2018-02-06 15:33:42,132 INFO success: queue_2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-02-06 15:33:42,132 INFO success: queue_1 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-02-06 15:33:42,132 INFO success: queue_0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-02-06 15:33:42,132 INFO success: deployer-broadcast entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-02-06 15:33:42,132 INFO success: deployer-socketio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

package.json

...
 "scripts": {
    "start": "PORT=8080  node socket.js",
    "postinstall": "touch ./node_modules/.install"
  }

env

...
SOCKET_URL:http://deployer.site.com:8080
SOCKET_PORT=8080
....
screenshot at feb 06 3-41-30 pm

Im just blocked!!

The other alternative didn't work :(

REBELinBLUE commented 6 years ago

This is really odd, can you show me the headers tab?

Also I see the connection is appearing multiple times on the left pane there, do any of those look any different?

REBELinBLUE commented 6 years ago

Also, can you try setting APP_DEBUG in the .env to true and run the node server manually then try again, should log some additional info to the terminal output then

fatonsopa commented 6 years ago

here is the headers tab

screenshot at feb 06 5-45-12 pm

(do any of those look any different?): They are the same: only the "Sec-WebSocket-Key" is different

The debug is now true. here is what I'm getting

root@linuxbox:/var/www/html/deployer# npm start

> deployer@ start /var/www/html/deployer
> PORT=8080  node socket.js

Server is running on port: 8080
psubscribe

REBELinBLUE commented 6 years ago

You don't need the PORT in the package.json, in fact it is SOCKET_PORT

But that is neither here not there. So the server appears to be running successfully but the client is failing to connect. Could you try setting these variables https://socket.io/docs/logging-and-debugging/ ?

fatonsopa commented 6 years ago

Hi @REBELinBLUE ,

Sorry for late response. I was completely out of this for some time.

Thanks for the debugging info.

This is the log I was able to produce on the console.

asdad

These logs are only being repeated (in a loop)

I installed Deployer on a local computer (while on dynamic IP, and set domain in /etc/hosts) and everything was working fine. However, when I put the static IP address on the Ethernet Network Connection, sockets don't work anymore. I talked to ISP and they confirmed that none of ports are blocked from their side.

I'm trying to figure out if It has to do with port or number of connections

fatonsopa commented 6 years ago

For anyone experiencing this issue.

I was able to solve it by adding the following piece of lines in /etc/hosts

{MY_IP} deployer.mysite.com

This is strange because deployer.site.com domain points to the same IP Address as the one that I added on /etc/hosts on the same server.

It may be that port 6001 is blocked by cloudflare, so by adding the IP address to /etc/hosts I'm bypassing cloudflare's ip addresses and connecting directly to my host.

Cheers :)

REBELinBLUE commented 6 years ago

Hmm, that is very odd. Maybe cloudflare is blocking port 6001, I shall have to set up a free account to try it out

fatonsopa commented 6 years ago

Yes, confirmed. Cloudflare is blocking 6001 port. I used server's IP address instead of our domain, and the socket is working like a charm now

Thanks :)