Closed lorvent closed 8 years ago
And if i go ahead and hit "Deploy"
all statuses are in pending mode.
Do you have the node socket server running? (the included supervisor.conf includes this)
Are you running Apache or Nginx? Can you paste the content of .env, or specifically the APP_URL
and SOCKET_URL
?
Can you paste the output of ps aux
?
hi thanks for the response.
i have included supervisor.conf from repo into mine and changes URLs accordingly.
APP_URL=https://deploy.lorvent.com SOCKET_URL=https://deploy.lorvent.com:6001
and below is ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 33628 1668 ? Ss Jan30 0:05 /sbin/init
root 2 0.0 0.0 0 0 ? S Jan30 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Jan30 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Jan30 0:00 [kworker/0:0]
root 5 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/0:0H]
root 7 0.1 0.0 0 0 ? S Jan30 5:24 [rcu_sched]
root 8 0.0 0.0 0 0 ? S Jan30 3:06 [rcuos/0]
root 9 0.1 0.0 0 0 ? S Jan30 3:42 [rcuos/1]
root 10 0.0 0.0 0 0 ? S Jan30 0:00 [rcu_bh]
root 11 0.0 0.0 0 0 ? S Jan30 0:00 [rcuob/0]
root 12 0.0 0.0 0 0 ? S Jan30 0:00 [rcuob/1]
root 13 0.0 0.0 0 0 ? S Jan30 0:01 [migration/0]
root 14 0.0 0.0 0 0 ? S Jan30 0:02 [watchdog/0]
root 15 0.0 0.0 0 0 ? S Jan30 0:01 [watchdog/1]
root 16 0.0 0.0 0 0 ? S Jan30 0:01 [migration/1]
root 17 0.0 0.0 0 0 ? S Jan30 0:00 [ksoftirqd/1]
root 19 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/1:0H]
root 20 0.0 0.0 0 0 ? S< Jan30 0:00 [khelper]
root 21 0.0 0.0 0 0 ? S Jan30 0:00 [kdevtmpfs]
root 22 0.0 0.0 0 0 ? S< Jan30 0:00 [netns]
root 23 0.0 0.0 0 0 ? S< Jan30 0:00 [writeback]
root 24 0.0 0.0 0 0 ? S< Jan30 0:00 [kintegrityd]
root 25 0.0 0.0 0 0 ? S< Jan30 0:00 [bioset]
root 26 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/u5:0]
root 27 0.0 0.0 0 0 ? S< Jan30 0:00 [kblockd]
root 28 0.0 0.0 0 0 ? S< Jan30 0:00 [ata_sff]
root 29 0.0 0.0 0 0 ? S Jan30 0:00 [khubd]
root 30 0.0 0.0 0 0 ? S< Jan30 0:00 [md]
root 31 0.0 0.0 0 0 ? S< Jan30 0:00 [devfreq_wq]
root 32 0.0 0.0 0 0 ? S Jan30 0:07 [kworker/0:1]
root 33 0.0 0.0 0 0 ? S Jan30 0:09 [kworker/1:1]
root 35 0.0 0.0 0 0 ? S Jan30 0:00 [khungtaskd]
root 36 0.0 0.0 0 0 ? S Jan30 0:09 [kswapd0]
root 37 0.0 0.0 0 0 ? SN Jan30 0:00 [ksmd]
root 38 0.0 0.0 0 0 ? SN Jan30 0:15 [khugepaged]
root 39 0.0 0.0 0 0 ? S Jan30 0:00 [fsnotify_mark]
root 40 0.0 0.0 0 0 ? S Jan30 0:00 [ecryptfs-kthrea]
root 41 0.0 0.0 0 0 ? S< Jan30 0:00 [crypto]
root 53 0.0 0.0 0 0 ? S< Jan30 0:00 [kthrotld]
root 54 0.0 0.0 0 0 ? S Jan30 0:10 [kworker/u4:1]
root 55 0.0 0.0 0 0 ? S Jan30 0:00 [vballoon]
root 56 0.0 0.0 0 0 ? S Jan30 0:00 [scsi_eh_0]
root 57 0.0 0.0 0 0 ? S Jan30 0:00 [scsi_eh_1]
root 77 0.0 0.0 0 0 ? S< Jan30 0:00 [deferwq]
root 78 0.0 0.0 0 0 ? S< Jan30 0:00 [charger_manager]
root 127 0.0 0.0 0 0 ? S< Jan30 0:00 [kpsmoused]
root 134 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/u5:1]
root 135 0.0 0.0 0 0 ? S Jan30 0:08 [jbd2/vda1-8]
root 136 0.0 0.0 0 0 ? S< Jan30 0:00 [ext4-rsv-conver]
root 164 0.0 0.0 0 0 ? S Jan30 0:00 [kworker/1:2]
root 326 0.0 0.0 19472 424 ? S Jan30 0:00 upstart-udev-bridge --daemon
root 335 0.0 0.0 51516 1076 ? Ss Jan30 0:00 /lib/systemd/systemd-udevd --daemon
root 399 0.0 0.0 0 0 ? S< Jan30 0:00 [ttm_swap]
root 574 0.0 0.0 0 0 ? S< Jan30 0:00 [kvm-irqfd-clean]
root 635 0.0 0.0 15520 336 ? S Jan30 0:00 upstart-socket-bridge --daemon
message+ 715 0.0 0.0 39224 804 ? Ss Jan30 0:00 dbus-daemon --system --fork
root 768 0.0 0.0 43448 952 ? Ss Jan30 0:00 /lib/systemd/systemd-logind
syslog 776 0.0 0.4 256036 8880 ? Ssl Jan30 0:12 rsyslogd
root 806 0.0 0.0 15272 296 ? S Jan30 0:00 upstart-file-bridge --daemon
root 870 0.0 0.0 15816 112 tty4 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty4
root 873 0.0 0.0 15816 112 tty5 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty5
root 878 0.0 0.0 15816 112 tty2 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty2
root 879 0.0 0.0 15816 112 tty3 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty3
root 882 0.0 0.0 15816 112 tty6 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty6
root 904 0.0 0.0 61368 416 ? Ss Jan30 0:09 /usr/sbin/sshd -D
root 919 0.0 0.0 23652 488 ? Ss Jan30 0:02 cron
daemon 920 0.0 0.0 19136 96 ? Ss Jan30 0:00 atd
root 938 0.0 0.0 4364 104 ? Ss Jan30 0:00 acpid -c /etc/acpi/events -s /var/r
mysql 974 0.1 3.9 813028 80488 ? Ssl Jan30 4:30 /usr/sbin/mysqld
redis 1027 0.1 0.2 37132 4780 ? Ssl Jan30 5:07 /usr/bin/redis-server 127.0.0.1:637
root 1032 0.1 0.2 35256 4260 ? Ssl Jan30 5:05 /usr/local/bin/redis-server *:6379
root 1056 0.0 0.0 61880 1452 ? Ss Jan30 1:02 /usr/bin/python /usr/bin/supervisor
root 1152 0.0 0.1 389604 3192 ? Ss Jan30 0:20 /usr/sbin/apache2 -k start
root 1279 0.0 0.0 15816 112 tty1 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty1
root 1308 0.0 0.0 0 0 ? S Jan30 0:00 [kauditd]
root 1519 0.0 0.0 0 0 ? S Feb01 0:00 [kworker/u4:2]
beansta+ 2487 0.0 0.0 4468 272 ? S Jan31 0:01 /usr/bin/beanstalkd -l 127.0.0.1 -p
root 2969 0.3 0.2 105632 4308 ? Ss 10:13 0:00 sshd: root@pts/3
root 3019 0.2 0.2 44960 4712 pts/3 Ss 10:13 0:00 -zsh
root 3081 81.5 14.1 1423796 289600 pts/3 Rl+ 10:14 1:02 npm
root 3094 0.0 0.0 18444 1324 pts/1 R+ 10:15 0:00 ps aux
root 21414 0.0 0.2 105636 4364 ? Ss 07:55 0:00 sshd: root@pts/0
root 21465 0.0 0.2 42736 4432 pts/0 Ss+ 07:56 0:00 -zsh
www-data 21795 0.0 1.5 397524 31440 ? S 09:00 0:00 /usr/sbin/apache2 -k start
www-data 21805 0.0 1.7 399636 35232 ? S 09:00 0:01 /usr/sbin/apache2 -k start
www-data 21858 0.0 1.5 398792 30888 ? S 09:14 0:00 /usr/sbin/apache2 -k start
www-data 21869 0.0 1.5 399044 31488 ? S 09:17 0:00 /usr/sbin/apache2 -k start
www-data 22110 0.0 1.4 398276 29440 ? S 09:42 0:00 /usr/sbin/apache2 -k start
www-data 22113 0.0 1.4 398928 29944 ? S 09:42 0:00 /usr/sbin/apache2 -k start
www-data 22129 0.0 1.5 399032 31944 ? S 09:49 0:00 /usr/sbin/apache2 -k start
www-data 22130 0.0 0.1 389832 4084 ? S 09:49 0:00 /usr/sbin/apache2 -k start
www-data 22131 0.0 1.4 398532 30276 ? S 09:49 0:00 /usr/sbin/apache2 -k start
www-data 22132 0.0 1.4 398792 29648 ? S 09:49 0:00 /usr/sbin/apache2 -k start
root 22584 0.0 0.2 105632 4332 ? Ss 10:07 0:00 sshd: root@pts/1
root 22633 0.0 0.2 42836 4464 pts/1 Ss 10:07 0:00 -zsh
root 29018 0.0 0.0 0 0 ? S< 10:10 0:00 [xfsalloc]
root 29020 0.0 0.0 0 0 ? S< 10:10 0:00 [xfs_mru_cache]
root 29021 0.0 0.0 0 0 ? S< 10:10 0:00 [xfslogd]
root 29031 0.0 0.0 0 0 ? S 10:10 0:00 [jfsIO]
root 29032 0.0 0.0 0 0 ? S 10:10 0:00 [jfsCommit]
root 29033 0.0 0.0 0 0 ? S 10:10 0:00 [jfsCommit]
root 29034 0.0 0.0 0 0 ? S 10:10 0:00 [jfsSync]
root 29053 0.0 0.0 0 0 ? S< 10:10 0:00 [bioset]
please let me know if i missed anything
Yeah, it doesn't look like supervisor is running the node socket server nor the job queue runner
You'd expect to see something like the following if they were running
root 19255 0.0 0.4 63580 4272 ? Ss Jan28 3:13 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
root 19260 0.0 0.2 240916 2904 ? S Jan28 3:31 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 19261 0.0 0.3 240916 3228 ? S Jan28 3:33 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 19264 0.0 0.4 240916 4176 ? S Jan28 3:33 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 19265 0.0 0.4 240916 4072 ? S Jan28 2:18 php artisan queue:work --queue=deployer-default --sleep=3 --tries=1 --daemon
root 19266 0.0 0.0 1077596 4 ? Sl Jan28 0:00 node socket.js
could you try sudo service supervisor restart
? You may need to do sudo supervisorctl reread
and sudo supervisorctl update
first but personally I have never had to
please check now
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 33628 1652 ? Ss Jan30 0:05 /sbin/init
root 2 0.0 0.0 0 0 ? S Jan30 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Jan30 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Jan30 0:00 [kworker/0:0]
root 5 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/0:0H]
root 7 0.1 0.0 0 0 ? S Jan30 5:25 [rcu_sched]
root 8 0.0 0.0 0 0 ? S Jan30 3:07 [rcuos/0]
root 9 0.1 0.0 0 0 ? S Jan30 3:43 [rcuos/1]
root 10 0.0 0.0 0 0 ? S Jan30 0:00 [rcu_bh]
root 11 0.0 0.0 0 0 ? S Jan30 0:00 [rcuob/0]
root 12 0.0 0.0 0 0 ? S Jan30 0:00 [rcuob/1]
root 13 0.0 0.0 0 0 ? S Jan30 0:01 [migration/0]
root 14 0.0 0.0 0 0 ? S Jan30 0:02 [watchdog/0]
root 15 0.0 0.0 0 0 ? S Jan30 0:01 [watchdog/1]
root 16 0.0 0.0 0 0 ? S Jan30 0:01 [migration/1]
root 17 0.0 0.0 0 0 ? S Jan30 0:00 [ksoftirqd/1]
root 19 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/1:0H]
root 20 0.0 0.0 0 0 ? S< Jan30 0:00 [khelper]
root 21 0.0 0.0 0 0 ? S Jan30 0:00 [kdevtmpfs]
root 22 0.0 0.0 0 0 ? S< Jan30 0:00 [netns]
root 23 0.0 0.0 0 0 ? S< Jan30 0:00 [writeback]
root 24 0.0 0.0 0 0 ? S< Jan30 0:00 [kintegrityd]
root 25 0.0 0.0 0 0 ? S< Jan30 0:00 [bioset]
root 26 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/u5:0]
root 27 0.0 0.0 0 0 ? S< Jan30 0:00 [kblockd]
root 28 0.0 0.0 0 0 ? S< Jan30 0:00 [ata_sff]
root 29 0.0 0.0 0 0 ? S Jan30 0:00 [khubd]
root 30 0.0 0.0 0 0 ? S< Jan30 0:00 [md]
root 31 0.0 0.0 0 0 ? S< Jan30 0:00 [devfreq_wq]
root 32 0.0 0.0 0 0 ? S Jan30 0:07 [kworker/0:1]
root 33 0.0 0.0 0 0 ? S Jan30 0:09 [kworker/1:1]
root 35 0.0 0.0 0 0 ? S Jan30 0:00 [khungtaskd]
root 36 0.0 0.0 0 0 ? S Jan30 0:09 [kswapd0]
root 37 0.0 0.0 0 0 ? SN Jan30 0:00 [ksmd]
root 38 0.0 0.0 0 0 ? SN Jan30 0:16 [khugepaged]
root 39 0.0 0.0 0 0 ? S Jan30 0:00 [fsnotify_mark]
root 40 0.0 0.0 0 0 ? S Jan30 0:00 [ecryptfs-kthrea]
root 41 0.0 0.0 0 0 ? S< Jan30 0:00 [crypto]
root 53 0.0 0.0 0 0 ? S< Jan30 0:00 [kthrotld]
root 54 0.0 0.0 0 0 ? S Jan30 0:10 [kworker/u4:1]
root 55 0.0 0.0 0 0 ? S Jan30 0:00 [vballoon]
root 56 0.0 0.0 0 0 ? S Jan30 0:00 [scsi_eh_0]
root 57 0.0 0.0 0 0 ? S Jan30 0:00 [scsi_eh_1]
root 77 0.0 0.0 0 0 ? S< Jan30 0:00 [deferwq]
root 78 0.0 0.0 0 0 ? S< Jan30 0:00 [charger_manager]
root 127 0.0 0.0 0 0 ? S< Jan30 0:00 [kpsmoused]
root 134 0.0 0.0 0 0 ? S< Jan30 0:00 [kworker/u5:1]
root 135 0.0 0.0 0 0 ? S Jan30 0:08 [jbd2/vda1-8]
root 136 0.0 0.0 0 0 ? S< Jan30 0:00 [ext4-rsv-conver]
root 164 0.0 0.0 0 0 ? S Jan30 0:00 [kworker/1:2]
root 326 0.0 0.0 19472 424 ? S Jan30 0:00 upstart-udev-bridge --daemon
root 335 0.0 0.0 51516 1060 ? Ss Jan30 0:00 /lib/systemd/systemd-udevd --daemon
root 399 0.0 0.0 0 0 ? S< Jan30 0:00 [ttm_swap]
root 574 0.0 0.0 0 0 ? S< Jan30 0:00 [kvm-irqfd-clean]
root 635 0.0 0.0 15520 336 ? S Jan30 0:00 upstart-socket-bridge --daemon
message+ 715 0.0 0.0 39224 804 ? Ss Jan30 0:00 dbus-daemon --system --fork
root 768 0.0 0.0 43448 952 ? Ss Jan30 0:00 /lib/systemd/systemd-logind
syslog 776 0.0 0.4 256036 8864 ? Ssl Jan30 0:12 rsyslogd
root 806 0.0 0.0 15272 296 ? S Jan30 0:00 upstart-file-bridge --daemon
root 870 0.0 0.0 15816 112 tty4 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty4
root 873 0.0 0.0 15816 112 tty5 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty5
root 878 0.0 0.0 15816 112 tty2 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty2
root 879 0.0 0.0 15816 112 tty3 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty3
root 882 0.0 0.0 15816 112 tty6 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty6
root 904 0.0 0.0 61368 416 ? Ss Jan30 0:09 /usr/sbin/sshd -D
root 919 0.0 0.0 23652 488 ? Ss Jan30 0:02 cron
daemon 920 0.0 0.0 19136 96 ? Ss Jan30 0:00 atd
root 938 0.0 0.0 4364 104 ? Ss Jan30 0:00 acpid -c /etc/acpi/events -s /var/r
mysql 974 0.1 3.8 813028 78184 ? Ssl Jan30 4:32 /usr/sbin/mysqld
redis 1027 0.1 0.2 37132 4640 ? Ssl Jan30 5:08 /usr/bin/redis-server 127.0.0.1:637
root 1032 0.1 0.2 35256 4260 ? Ssl Jan30 5:07 /usr/local/bin/redis-server *:6379
root 1152 0.0 0.1 389604 3192 ? Ss Jan30 0:20 /usr/sbin/apache2 -k start
root 1279 0.0 0.0 15816 112 tty1 Ss+ Jan30 0:00 /sbin/getty -8 38400 tty1
root 1308 0.0 0.0 0 0 ? S Jan30 0:00 [kauditd]
root 1519 0.0 0.0 0 0 ? S Feb01 0:00 [kworker/u4:2]
beansta+ 2487 0.0 0.0 4468 252 ? S Jan31 0:01 /usr/bin/beanstalkd -l 127.0.0.1 -p
www-data 3299 0.5 1.6 399012 33328 ? S 10:21 0:03 /usr/sbin/apache2 -k start
www-data 3387 0.1 1.5 399316 31868 ? S 10:25 0:00 /usr/sbin/apache2 -k start
www-data 3389 0.3 1.5 399328 32660 ? S 10:25 0:01 /usr/sbin/apache2 -k start
www-data 3393 1.7 1.6 399412 33424 ? S 10:26 0:04 /usr/sbin/apache2 -k start
www-data 3394 1.1 2.0 399904 41276 ? S 10:26 0:02 /usr/sbin/apache2 -k start
www-data 3397 1.0 1.5 398820 32672 ? S 10:26 0:02 /usr/sbin/apache2 -k start
root 3437 0.1 0.6 65044 14036 ? Ss 10:27 0:00 /usr/bin/python /usr/bin/supervisor
root 3446 0.3 1.6 285276 33360 ? S 10:27 0:00 php artisan queue:work --queue=depl
root 3447 0.5 1.6 1009440 32936 ? Sl 10:27 0:01 node socket.js
www-data 3491 0.0 0.1 389636 3092 ? S 10:27 0:00 /usr/sbin/apache2 -k start
www-data 3492 0.6 1.5 399252 31116 ? S 10:28 0:01 /usr/sbin/apache2 -k start
root 3533 0.0 0.0 18444 1316 pts/1 R+ 10:30 0:00 ps aux
www-data 21858 0.0 2.0 398584 41420 ? S 09:14 0:01 /usr/sbin/apache2 -k start
www-data 22113 0.1 2.1 399376 44036 ? S 09:42 0:03 /usr/sbin/apache2 -k start
root 22584 0.0 0.2 105632 4332 ? Ss 10:07 0:00 sshd: root@pts/1
root 22633 0.0 0.2 42836 4464 pts/1 Ss 10:07 0:00 -zsh
root 29018 0.0 0.0 0 0 ? S< 10:10 0:00 [xfsalloc]
root 29020 0.0 0.0 0 0 ? S< 10:10 0:00 [xfs_mru_cache]
root 29021 0.0 0.0 0 0 ? S< 10:10 0:00 [xfslogd]
root 29031 0.0 0.0 0 0 ? S 10:10 0:00 [jfsIO]
root 29032 0.0 0.0 0 0 ? S 10:10 0:00 [jfsCommit]
root 29033 0.0 0.0 0 0 ? S 10:10 0:00 [jfsCommit]
root 29034 0.0 0.0 0 0 ? S 10:10 0:00 [jfsSync]
root 29053 0.0 0.0 0 0 ? S< 10:10 0:00 [bioset]
That is looking better, but there only seems to be 1 queue for php artisan
running, can't tell what it is as it is truncated but ideally there should be at least 2.
1 with --queue=deployer-high,deployer-low
and 1 with --queue=deployer-default
, and if you want to be able to run more than 1 deployment at a time there needs to be more than 1 process for `--queue=deployer-high,deployer-low
please check my supervisord.conf, let me know if its wrong
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files *cannot*
; include files themselves.
[include]
files = /etc/supervisor/conf.d/*.conf
[program:deployer]
command=php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
directory=/var/www/deploy
process_name=queue_%(process_num)s
numprocs=3
numprocs_start=0
stdout_logfile=/var/www/html/deploy/storage/logs/supervisord-%(process_num)s-stdout.log
stderr_logfile=/var/www/html/deploy/storage/logs/supervisord-%(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/deploy
numprocs=1
autostart=true
autorestart=true
environment=NODE_ENV=production
stderr_logfile=/var/www/html/deploy/storage/logs/node-stderr.log
stdout_logfile=/var/www/html/deploy/storage/logs/node-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 --daemon
directory=/var/www/html/deploy
numprocs=1
stderr_logfile=/var/www/html/deploy/storage/logs/broadcast-stderr.log
stdout_logfile=/var/www/html/deploy/storage/logs/broadcast-stdout.log
stderr_logfile_maxbytes=1MB
stdout_logfile_maxbytes=1MB
redirect_stderr=true
autostart=true
autorestart=true
In [program:deployer]
you have directory=/var/www/deploy
rather than directory=/var/www/html/deploy
Changing that should fix it
my bad, sorry for troubling you, now i can see more than one process
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.1 0.1 33500 2824 ? Ss 11:10 0:01 /sbin/init
root 2 0.0 0.0 0 0 ? S 11:10 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 11:10 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 11:10 0:00 [kworker/0:0H]
root 6 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/u4:0]
root 7 0.1 0.0 0 0 ? S 11:10 0:01 [rcu_sched]
root 8 0.0 0.0 0 0 ? S 11:10 0:00 [rcuos/0]
root 9 0.0 0.0 0 0 ? S 11:10 0:01 [rcuos/1]
root 10 0.0 0.0 0 0 ? S 11:10 0:00 [rcu_bh]
root 11 0.0 0.0 0 0 ? S 11:10 0:00 [rcuob/0]
root 12 0.0 0.0 0 0 ? S 11:10 0:00 [rcuob/1]
root 13 0.0 0.0 0 0 ? S 11:10 0:00 [migration/0]
root 14 0.0 0.0 0 0 ? S 11:10 0:00 [watchdog/0]
root 15 0.0 0.0 0 0 ? S 11:10 0:00 [watchdog/1]
root 16 0.0 0.0 0 0 ? S 11:10 0:00 [migration/1]
root 17 0.0 0.0 0 0 ? S 11:10 0:00 [ksoftirqd/1]
root 18 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/1:0]
root 19 0.0 0.0 0 0 ? S< 11:10 0:00 [kworker/1:0H]
root 20 0.0 0.0 0 0 ? S< 11:10 0:00 [khelper]
root 21 0.0 0.0 0 0 ? S 11:10 0:00 [kdevtmpfs]
root 22 0.0 0.0 0 0 ? S< 11:10 0:00 [netns]
root 23 0.0 0.0 0 0 ? S< 11:10 0:00 [writeback]
root 24 0.0 0.0 0 0 ? S< 11:10 0:00 [kintegrityd]
root 25 0.0 0.0 0 0 ? S< 11:10 0:00 [bioset]
root 26 0.0 0.0 0 0 ? S< 11:10 0:00 [kworker/u5:0]
root 27 0.0 0.0 0 0 ? S< 11:10 0:00 [kblockd]
root 28 0.0 0.0 0 0 ? S< 11:10 0:00 [ata_sff]
root 29 0.0 0.0 0 0 ? S 11:10 0:00 [khubd]
root 30 0.0 0.0 0 0 ? S< 11:10 0:00 [md]
root 31 0.0 0.0 0 0 ? S< 11:10 0:00 [devfreq_wq]
root 32 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/0:1]
root 33 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/1:1]
root 35 0.0 0.0 0 0 ? S 11:10 0:00 [khungtaskd]
root 36 0.0 0.0 0 0 ? S 11:10 0:00 [kswapd0]
root 37 0.0 0.0 0 0 ? SN 11:10 0:00 [ksmd]
root 38 0.0 0.0 0 0 ? SN 11:10 0:00 [khugepaged]
root 39 0.0 0.0 0 0 ? S 11:10 0:00 [fsnotify_mark]
root 40 0.0 0.0 0 0 ? S 11:10 0:00 [ecryptfs-kthrea]
root 41 0.0 0.0 0 0 ? S< 11:10 0:00 [crypto]
root 53 0.0 0.0 0 0 ? S< 11:10 0:00 [kthrotld]
root 54 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/u4:1]
root 55 0.0 0.0 0 0 ? S 11:10 0:00 [vballoon]
root 56 0.0 0.0 0 0 ? S 11:10 0:00 [scsi_eh_0]
root 57 0.0 0.0 0 0 ? S 11:10 0:00 [scsi_eh_1]
root 78 0.0 0.0 0 0 ? S< 11:10 0:00 [deferwq]
root 79 0.0 0.0 0 0 ? S< 11:10 0:00 [charger_manager]
root 128 0.0 0.0 0 0 ? S< 11:10 0:00 [kpsmoused]
root 135 0.0 0.0 0 0 ? S< 11:10 0:00 [kworker/u5:1]
root 136 0.0 0.0 0 0 ? S 11:10 0:00 [jbd2/vda1-8]
root 137 0.0 0.0 0 0 ? S< 11:10 0:00 [ext4-rsv-conver]
root 151 0.0 0.0 0 0 ? S 11:10 0:00 [kworker/0:2]
root 329 0.0 0.0 19472 652 ? S 11:10 0:00 upstart-udev-bridge --daemon
root 358 0.0 0.0 51504 1704 ? Ss 11:10 0:00 /lib/systemd/systemd-udevd --daemon
root 406 0.0 0.0 0 0 ? S< 11:10 0:00 [ttm_swap]
root 503 0.0 0.0 15256 384 ? S 11:10 0:00 upstart-socket-bridge --daemon
root 604 0.0 0.0 0 0 ? S< 11:10 0:00 [kvm-irqfd-clean]
message+ 724 0.0 0.0 39224 1268 ? Ss 11:10 0:00 dbus-daemon --system --fork
root 768 0.0 0.0 43448 1804 ? Ss 11:10 0:00 /lib/systemd/systemd-logind
syslog 786 0.0 0.0 255840 1356 ? Ssl 11:10 0:00 rsyslogd
root 812 0.0 0.0 15272 632 ? S 11:10 0:00 upstart-file-bridge --daemon
root 878 0.0 0.0 15816 960 tty4 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty4
root 881 0.0 0.0 15816 964 tty5 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty5
root 886 0.0 0.0 15816 960 tty2 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty2
root 887 0.0 0.0 15816 956 tty3 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty3
root 890 0.0 0.0 15816 948 tty6 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty6
root 910 0.0 0.1 61368 3072 ? Ss 11:10 0:00 /usr/sbin/sshd -D
daemon 917 0.0 0.0 19136 164 ? Ss 11:10 0:00 atd
root 918 0.0 0.0 23652 1040 ? Ss 11:10 0:00 cron
root 943 0.0 0.0 4364 668 ? Ss 11:10 0:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
beansta+ 963 0.0 0.0 4468 616 ? S 11:10 0:00 /usr/bin/beanstalkd -l 127.0.0.1 -p 11300 -b /var/lib/beanstalkd
mysql 982 0.2 4.0 747300 82496 ? Ssl 11:10 0:02 /usr/sbin/mysqld
redis 1036 0.1 0.3 37132 7352 ? Ssl 11:10 0:01 /usr/bin/redis-server 127.0.0.1:6379
root 1049 0.1 0.3 35256 7416 ? Ssl 11:10 0:01 /usr/local/bin/redis-server *:6379
root 1174 0.0 0.9 389616 19104 ? Ss 11:10 0:00 /usr/sbin/apache2 -k start
root 1307 0.0 0.0 15816 960 tty1 Ss+ 11:10 0:00 /sbin/getty -8 38400 tty1
root 1351 0.0 0.0 0 0 ? S 11:11 0:00 [kauditd]
www-data 1354 0.1 1.6 398424 34748 ? S 11:11 0:01 /usr/sbin/apache2 -k start
www-data 1355 0.1 1.7 398480 35332 ? S 11:11 0:01 /usr/sbin/apache2 -k start
www-data 1358 0.3 1.7 398388 35920 ? S 11:11 0:02 /usr/sbin/apache2 -k start
www-data 1363 0.2 1.7 398340 35832 ? S 11:11 0:01 /usr/sbin/apache2 -k start
www-data 1366 0.2 1.8 399488 36932 ? S 11:11 0:02 /usr/sbin/apache2 -k start
root 1372 0.0 0.2 105632 4336 ? Ss 11:11 0:00 sshd: root@pts/1
root 1421 0.0 0.2 42868 4488 pts/1 Ss 11:11 0:00 -zsh
www-data 1480 0.0 1.6 397836 33432 ? S 11:15 0:00 /usr/sbin/apache2 -k start
www-data 1482 0.2 1.7 399844 36172 ? S 11:15 0:01 /usr/sbin/apache2 -k start
www-data 1490 0.0 1.1 390552 24336 ? S 11:17 0:00 /usr/sbin/apache2 -k start
www-data 1498 0.0 1.1 390532 23404 ? S 11:18 0:00 /usr/sbin/apache2 -k start
www-data 1499 0.1 1.7 398832 35392 ? S 11:18 0:00 /usr/sbin/apache2 -k start
root 1535 0.1 0.6 65056 14000 ? Ss 11:27 0:00 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
root 1538 2.0 1.6 284232 32916 ? S 11:27 0:00 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 1539 1.8 1.5 283428 32116 ? S 11:27 0:00 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 1540 1.8 1.6 285256 33976 ? S 11:27 0:00 php artisan queue:work --queue=deployer-high,deployer-low --sleep=3 --tries=1 --daemon
root 1541 1.6 1.6 285268 33892 ? S 11:27 0:00 php artisan queue:work --queue=deployer-default --sleep=3 --tries=1 --daemon
root 1542 3.3 1.5 1009764 31340 ? Sl 11:27 0:00 node socket.js
root 1745 0.0 0.0 18444 1320 pts/1 R+ 11:27 0:00 ps aux
but still it displays error
A connection could not be established to the socket at https://deploy.lorvent.com:6001. This is required for reporting the status on running deployments. Please reload, if the issue continues please contact the system administrator
and another thing is....now it says connection successful but when i hit deploy, it failed and error is
[128.199.177.124]: Could not send file - scp: /var/www/html/deploy_folder/id_rsa: No such file or directory
It could be that your firewall isn't allowing port 6001 through? However, my guess is because it is over HTTPS, haven't actually tested the node server like that. Could you try HTTP and I will take a look this evening at what is needed to get the node server working on HTTPS
The second error occurs if you the target directory for the deployment doesn't exist on the server you are deploying to, i.e. /var/www/html/bower-gulp/
I should probably see if I can catch that error and report it, maybe at the "test connection" stage
interesting, i will find out i will see how i can only http aswell...currently its https only
it says connection successful
Yeah because currently it doesn't check that the directory exists when it connects, shouldn't be a problem to get it to do that this evening
hi, i removed https requirement and that error is not popping up and i can confirm socket is running as its updating status realtime :dancer:
but still deployment is being failed.
interestingly, its trying to send id_rsa, do you have any idea why?
[128.199.177.124]: Could not send file - scp: /var/www/html/bower-gulp/id_rsa: No such file or directory```
Does /var/www/html/bower-gulp/
exist and is it writable by the user deployer is connecting to the server as?
Man..... its f***ing awesome.....
it worked like a charm..... i can't express my joy after spending more than 2days with it.
Love your work!
let me how can i send you a beer :beers: or a paypal donation or some book you wanted to purchase...
And i know many vital points for documentation, how can i collaborate on that?
Glad it is all sorted, sorry it was such a PITA!
I'll look into the 2 issues this evening :)
Thanks for the offer of beer, but I think I have more than enough currently ;)
I have a repo for the documentation at https://github.com/REBELinBLUE/deployer-docs if you can raise an issue listing the points that would be awesome.
Hi, I really want to do that but its throwing an error.
I just meant raise an issue rather than a pull request but thanks ;)
Looks like the theme isn't installed, did you run bin/grav install
?
yes i installed, after that only its showing that error.
with grav's defalt user folder, its working fine.
i want to send PRs because there are many tips we can add in doc like how to run gulp, migrations on server for laravel instances.
It could be because I have set the config for dev.phpdeployment.org
copy the folder in user/ to whatever domain you are using
Still its not working but dev.phpdeployment.org so i can send PR after checking content there.
Hmm, I'll have to check with the latest version of grav
Hi, Sorry to bug you on an old thread.... but recently i had to move to another server and i have installed everything and its working properly but when i am on a deploy page, i am not able to see changes
i.e. all steps are in pending, if i refresh page then only i can see updates.... some background process might be not working.
can you please give me direction of how to fix it?
thanks
Sounds like you have forgotten to start the node js server? node socket.js
or use supervisor to keep it running?
This is the result of ps aux
i think supervisord is running
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 38008 6072 ? Ss Apr27 0:06 /sbin/init
root 2 0.0 0.0 0 0 ? S Apr27 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Apr27 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Apr27 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S Apr27 0:50 [rcu_sched]
root 8 0.0 0.0 0 0 ? S Apr27 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S Apr27 0:14 [migration/0]
root 10 0.0 0.0 0 0 ? S Apr27 0:00 [watchdog/0]
root 11 0.0 0.0 0 0 ? S Apr27 0:00 [watchdog/1]
root 12 0.0 0.0 0 0 ? S Apr27 0:15 [migration/1]
root 13 0.0 0.0 0 0 ? S Apr27 0:00 [ksoftirqd/1]
root 15 0.0 0.0 0 0 ? S< Apr27 0:00 [kworker/1:0H]
root 16 0.0 0.0 0 0 ? S Apr27 0:00 [watchdog/2]
root 17 0.0 0.0 0 0 ? S Apr27 0:15 [migration/2]
root 18 0.0 0.0 0 0 ? S Apr27 0:00 [ksoftirqd/2]
root 20 0.0 0.0 0 0 ? S< Apr27 0:00 [kworker/2:0H]
root 21 0.0 0.0 0 0 ? S Apr27 0:00 [watchdog/3]
root 22 0.0 0.0 0 0 ? S Apr27 0:14 [migration/3]
root 23 0.0 0.0 0 0 ? S Apr27 0:00 [ksoftirqd/3]
root 25 0.0 0.0 0 0 ? S< Apr27 0:00 [kworker/3:0H]
root 26 0.0 0.0 0 0 ? S Apr27 0:00 [kdevtmpfs]
root 27 0.0 0.0 0 0 ? S< Apr27 0:00 [netns]
root 28 0.0 0.0 0 0 ? S< Apr27 0:00 [perf]
root 29 0.0 0.0 0 0 ? S Apr27 0:00 [khungtaskd]
root 30 0.0 0.0 0 0 ? S< Apr27 0:00 [writeback]
root 31 0.0 0.0 0 0 ? SN Apr27 0:00 [ksmd]
root 32 0.0 0.0 0 0 ? SN Apr27 0:04 [khugepaged]
root 33 0.0 0.0 0 0 ? S< Apr27 0:00 [crypto]
root 34 0.0 0.0 0 0 ? S< Apr27 0:00 [kintegrityd]
root 35 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 36 0.0 0.0 0 0 ? S< Apr27 0:00 [kblockd]
root 37 0.0 0.0 0 0 ? S< Apr27 0:00 [ata_sff]
root 38 0.0 0.0 0 0 ? S< Apr27 0:00 [md]
root 39 0.0 0.0 0 0 ? S< Apr27 0:00 [devfreq_wq]
root 46 0.0 0.0 0 0 ? S Apr27 0:00 [kswapd0]
root 47 0.0 0.0 0 0 ? S< Apr27 0:00 [vmstat]
root 48 0.0 0.0 0 0 ? S Apr27 0:00 [fsnotify_mark]
root 49 0.0 0.0 0 0 ? S Apr27 0:00 [ecryptfs-kthrea]
root 64 0.0 0.0 0 0 ? S< Apr27 0:00 [kthrotld]
root 65 0.0 0.0 0 0 ? S< Apr27 0:00 [acpi_thermal_pm]
root 66 0.0 0.0 0 0 ? S Apr27 0:00 [vballoon]
root 67 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 68 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 69 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 70 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 71 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 72 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 73 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 74 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 75 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 76 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 77 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 78 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 79 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 80 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 81 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 82 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 83 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 84 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 85 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 86 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 87 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 88 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 89 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 90 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 91 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 92 0.0 0.0 0 0 ? S Apr27 0:00 [scsi_eh_0]
root 93 0.0 0.0 0 0 ? S< Apr27 0:00 [scsi_tmf_0]
root 94 0.0 0.0 0 0 ? S Apr27 0:00 [scsi_eh_1]
root 95 0.0 0.0 0 0 ? S< Apr27 0:00 [scsi_tmf_1]
root 100 0.0 0.0 0 0 ? S< Apr27 0:00 [ipv6_addrconf]
root 114 0.0 0.0 0 0 ? S< Apr27 0:00 [deferwq]
root 115 0.0 0.0 0 0 ? S< Apr27 0:00 [charger_manager]
root 116 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 158 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 160 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 161 0.0 0.0 0 0 ? S< Apr27 0:00 [kpsmoused]
root 162 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 164 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 170 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 188 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 192 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 193 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 214 0.0 0.0 0 0 ? S< Apr27 0:02 [kworker/2:1H]
root 296 0.0 0.0 0 0 ? S< Apr27 0:00 [raid5wq]
root 327 0.0 0.0 0 0 ? S< Apr27 0:00 [bioset]
root 350 0.0 0.0 0 0 ? S< Apr27 0:01 [kworker/1:1H]
root 352 0.0 0.0 0 0 ? S Apr27 0:11 [jbd2/vda1-8]
root 353 0.0 0.0 0 0 ? S< Apr27 0:00 [ext4-rsv-conver]
root 434 0.0 0.0 32144 3016 ? Ss Apr27 0:06 /lib/systemd/systemd-journald
root 437 0.0 0.0 0 0 ? S< Apr27 0:00 [iscsi_eh]
root 443 0.0 0.0 0 0 ? S Apr27 0:00 [kauditd]
root 455 0.0 0.0 0 0 ? S< Apr27 0:00 [ib_addr]
root 458 0.0 0.0 0 0 ? S< Apr27 0:00 [ib_mcast]
root 459 0.0 0.0 0 0 ? S< Apr27 0:00 [ib_nl_sa_wq]
root 460 0.0 0.0 94772 1620 ? Ss Apr27 0:00 /sbin/lvmetad -f
root 461 0.0 0.0 0 0 ? S< Apr27 0:00 [ib_cm]
root 462 0.0 0.0 0 0 ? S< Apr27 0:00 [iw_cm_wq]
root 463 0.0 0.0 0 0 ? S< Apr27 0:00 [rdma_cm]
root 487 0.0 0.0 44684 3992 ? Ss Apr27 0:00 /lib/systemd/systemd-udevd
root 501 0.0 0.0 0 0 ? S< Apr27 0:02 [kworker/0:1H]
root 533 0.0 0.0 0 0 ? S Apr27 0:35 [hwrng]
root 569 0.0 0.0 0 0 ? S< Apr27 0:01 [kworker/3:1H]
root 714 0.0 0.0 28548 2824 ? Ss Apr27 0:00 /lib/systemd/systemd-logind
root 717 0.0 0.0 4400 1392 ? Ss Apr27 0:00 /usr/sbin/acpid
message+ 722 0.0 0.0 42908 3564 ? Ss Apr27 0:00 /usr/bin/dbus-daemon --system --add
root 732 0.0 0.0 160896 1448 ? Ssl Apr27 0:00 /usr/bin/lxcfs /var/lib/lxcfs/
syslog 734 0.0 0.0 256396 3144 ? Ssl Apr27 0:01 /usr/sbin/rsyslogd -n
daemon 736 0.0 0.0 26044 2084 ? Ss Apr27 0:00 /usr/sbin/atd -f
root 740 0.0 0.0 29296 2696 ? Ss Apr27 0:00 /usr/sbin/cron -f
root 741 0.0 0.1 276056 5988 ? Ssl Apr27 0:05 /usr/lib/accountsservice/accounts-d
root 760 0.0 0.0 13376 168 ? Ss Apr27 0:00 /sbin/mdadm --monitor --pid-file /r
root 765 0.0 0.1 277180 5760 ? Ssl Apr27 0:00 /usr/lib/policykit-1/polkitd --no-d
root 913 0.0 0.0 16120 2936 ? Ss Apr27 0:00 /sbin/dhclient -1 -v -pf /run/dhcli
root 971 0.0 0.0 16124 2900 ? Ss Apr27 0:00 /sbin/dhclient -1 -v -pf /run/dhcli
root 1067 0.0 0.1 65612 5800 ? Ss Apr27 0:02 /usr/sbin/sshd -D
root 1083 0.0 0.0 5224 160 ? Ss Apr27 0:05 /sbin/iscsid
root 1084 0.0 0.0 5724 3516 ? S<Ls Apr27 0:25 /sbin/iscsid
root 1154 0.0 0.0 19472 248 ? Ss Apr27 0:05 /usr/sbin/irqbalance --pid=/var/run
ntp 1159 0.0 0.1 110124 4516 ? Ss Apr27 0:11 /usr/sbin/ntpd -p /var/run/ntpd.pid
root 1177 0.0 0.0 16228 1612 tty1 Ss+ Apr27 0:00 /sbin/agetty --noclear tty1 linux
www-data 1397 0.0 0.8 374684 35932 ? S 06:35 0:00 /usr/sbin/apache2 -k start
www-data 1756 0.0 0.7 374584 31300 ? S 06:35 0:01 /usr/sbin/apache2 -k start
root 2881 0.0 0.0 0 0 ? S Apr28 0:02 [kworker/3:0]
mysql 2976 0.1 24.7 2571780 1001188 ? Ssl Apr27 2:58 /usr/sbin/mysqld
root 3054 0.0 0.4 59768 18860 ? Ss Apr28 0:42 /usr/bin/python /usr/bin/supervisor
root 3088 0.0 3.8 449488 155300 ? S Apr28 0:42 php artisan queue:work --queue=depl
root 3090 0.0 3.8 450444 156728 ? S Apr28 0:41 php artisan queue:work --queue=depl
root 3091 0.0 3.5 363048 141912 ? S Apr28 0:46 php artisan queue:work --queue=depl
root 3092 0.0 1.1 1215912 47032 ? Sl Apr28 1:43 node socket.js
www-data 11452 0.0 0.6 371440 27268 ? S 06:59 0:00 /usr/sbin/apache2 -k start
www-data 11458 0.0 0.7 374632 31156 ? S 07:01 0:00 /usr/sbin/apache2 -k start
root 13279 0.0 0.9 258956 37224 ? S 09:59 0:07 php artisan queue:work --queue=depl
www-data 13937 0.0 0.6 371396 28224 ? S 11:21 0:00 /usr/sbin/apache2 -k start
root 15549 0.0 0.0 0 0 ? S 14:37 0:00 [kworker/0:0]
root 15612 0.0 0.0 0 0 ? S 14:37 0:00 [kworker/3:1]
root 17341 0.0 0.0 0 0 ? S Apr27 0:05 [kworker/2:1]
root 17916 0.0 0.0 0 0 ? R 19:12 0:00 [kworker/u8:1]
root 17925 0.0 0.0 0 0 ? S 19:21 0:00 [kworker/u8:0]
root 18043 0.0 0.1 95460 7196 ? Ss 19:26 0:00 sshd: root@pts/0
root 18045 0.0 0.1 36800 4352 ? Ss 19:26 0:00 /lib/systemd/systemd --user
root 18047 0.0 0.0 61460 2180 ? S 19:26 0:00 (sd-pam)
root 18049 0.0 0.0 0 0 ? S 19:26 0:00 [kworker/1:2]
root 18109 0.0 0.0 0 0 ? S 19:26 0:00 [kworker/u8:2]
root 18110 0.2 0.1 44716 5388 pts/0 Ss 19:26 0:00 -zsh
root 18211 0.0 0.0 37652 3272 pts/0 R+ 19:27 0:00 ps aux
root 20577 0.0 0.0 0 0 ? S 06:25 0:00 [kworker/0:1]
www-data 20589 0.0 0.9 374808 37024 ? S 06:25 0:02 /usr/sbin/apache2 -k start
www-data 20590 0.0 0.8 374600 32768 ? S 06:25 0:01 /usr/sbin/apache2 -k start
www-data 20593 0.0 0.9 451328 39560 ? S 06:25 0:01 /usr/sbin/apache2 -k start
www-data 20722 0.0 0.7 371464 29668 ? S 06:25 0:01 /usr/sbin/apache2 -k start
root 23390 0.0 0.8 368140 34452 ? Ss Apr28 0:07 /usr/sbin/apache2 -k start
root 24387 0.0 0.0 0 0 ? S Apr28 0:08 [kworker/1:1]
www-data 28800 0.0 0.7 371488 30680 ? S 06:31 0:01 /usr/sbin/apache2 -k start
beansta+ 28994 0.0 0.0 23424 2780 ? Ss Apr28 0:38 /usr/bin/beanstalkd -l 127.0.0.1 -p
root 31852 0.0 0.0 0 0 ? S Apr28 0:03 [kworker/2:0]
root 32369 0.0 0.0 0 0 ? S 00:07 0:06 [kworker/1:0]
hmm
Assuming you are using the default supervisor.conf
can you take a look at /var/log/supervisor/deployer-socket-stderr.log
server says no such file or directory
i have modified supervisor.conf as per deployer requirements.
Well the stderr_logfile
from the deployer-socketio
section of the config :)
my path is stderr_logfile=/var/www/deploy/storage/logs/supervisord-%(process_num)s-stderr.log
but i don't find any log file :(
Damn. OK can you comment out the deployer-socketio
section in the config and then restart supervisor
Then run node socket.js
manually and see if there is any output when you do something (could be something as simple as edit a project, server or user, doesn't have to be running a full deployment)
got something like
Server is running!
Token - eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NjE5ODg2NTAsImp0aSI6IlJHcHdOMWRIZUhwUmQyY3dkbFZ2T1c1RlpEZEpVWEZwUlhKb1REUXpTV009IiwiaXNzIjoiaHR0cDpcL1wvZGVwbG95LmxvcnZlbnQuY29tIiwibmJmIjoxNDYxOTg4NjUwLCJleHAiOjE0NjE5OTk0NTAsImRhdGEiOnsidXNlcklkIjoxfSwic3ViIjoxfQ.CLMlw53p2wdwO77Lqtl5Cu04ScZjSW6gdiA9yg1cB-c
{ iat: 1461988650,
jti: 'RGpwN1dHeHpRd2cwdlVvOW5FZDdJUXFpRXJoTDQzSWM=',
iss: 'http://deploy.lorvent.com',
nbf: 1461988650,
exp: 1461999450,
data: { userId: 1 },
sub: 1 }
connection
Token - eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NjE5ODg2NTAsImp0aSI6IlJHcHdOMWRIZUhwUmQyY3dkbFZ2T1c1RlpEZEpVWEZwUlhKb1REUXpTV009IiwiaXNzIjoiaHR0cDpcL1wvZGVwbG95LmxvcnZlbnQuY29tIiwibmJmIjoxNDYxOTg4NjUwLCJleHAiOjE0NjE5OTk0NTAsImRhdGEiOnsidXNlcklkIjoxfSwic3ViIjoxfQ.CLMlw53p2wdwO77Lqtl5Cu04ScZjSW6gdiA9yg1cB-c
{ iat: 1461988650,
jti: 'RGpwN1dHeHpRd2cwdlVvOW5FZDdJUXFpRXJoTDQzSWM=',
iss: 'http://deploy.lorvent.com',
nbf: 1461988650,
exp: 1461999450,
data: { userId: 1 },
sub: 1 }
connection
Hmm, OK so that is all working correctly. OK can you look in the web developer tools console in Chrome, on the Network tab select "WS" and reload the page and then again edit something.
What do you get?
Actually now i run deploy....its been more than 2minute and its still in pending only
Hmm, I don't see WS anywhere...
After 15+ minutes its still in pending only so i stopped and uncommented code in supervisor conf file then restarted it, now deployment has started....but its not refreshing in realtime.
Second from the end there, it may say "Websockets" on your copy I guess ?
Its just in pending mode...
That is fine, that is all it does. Can you click on the "name", i.e. the "?jwt=....." bit and share the "headers" tab which comes up, then go to the frames tab and in a new window update something and see if you get any data come into the frames tab
headers
Request URL:ws://deploy.lorvent.com:6001/socket.io/?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NjIyMTc5NDUsImp0aSI6IlNEVm9ZMVpvVFVkT1NVUk5aakpLYzBoc1ZqUlJXV1Y2TjJ4UVZ6VjVOemM9IiwiaXNzIjoiaHR0cDpcL1wvZGVwbG95LmxvcnZlbnQuY29tIiwibmJmIjoxNDYyMjE3OTQ1LCJleHAiOjE0NjIyMjg3NDUsImRhdGEiOnsidXNlcklkIjoxfSwic3ViIjoxfQ.IRY4Eg5Qkqe70xb_A3zAXBstgaxkwXRSPgA55FJV2Wg&EIO=3&transport=websocket&sid=cBA02G_V0wFGGkbuAABu
Request Method:GET
Status Code:101 Switching Protocols
Response Headers
view source
Connection:Upgrade
Sec-WebSocket-Accept:FymzKVedxTx5PNuk/DDQxtrYYwU=
Sec-WebSocket-Extensions:permessage-deflate
Upgrade:websocket
Request Headers
view source
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:Upgrade
Cookie:io=cBA02G_V0wFGGkbuAABu; remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d=eyJpdiI6IjNzZVg5bVptcDdXNHhNaDlJcG1UdkE9PSIsInZhbHVlIjoiWU1TXC9La0lyUGdINFwvSkZ6Z3c5OUtKWmc5NG5UMWF4V3NBRnN4dTlpc3dWNE1sYzZiWVIxSG9STHR6MGJBUlZ0SFNXUGwzXC9OcUowakdyeHFpNDl6a3E0bDYrbE1IaVd6Nk8ySzVCdllpcEk9IiwibWFjIjoiYWRkOTI5NjlhN2YzZTg4YzIwMjQwM2JkY2E5OTNiYjk4M2VlYzIxY2Y1YTM4YjNhYjI5NmI4NzE3MGU5M2M3OSJ9; _ga=GA1.2.2102572194.1460662721; XSRF-TOKEN=eyJpdiI6IjhOQWwyYlpjckJVWEo1VHZHSlA3VXc9PSIsInZhbHVlIjoiVmpRMEEzUUdseThVRzd2ZGQ0eUF4YmJYc1RBTnpBbDBIVXBIQ0hZbTI1XC9McGltR20xSjRzczc3aUlpXC9cL1pZU29ET3NGRmk2ZWJoRTVjNE13bVlXZlE9PSIsIm1hYyI6IjE5NzBlNjUyNmIzMTM0MTY4NjFhNDM0YThlNDA3Nzg5YTg0YjU2NjA2Mzk3MWRiNmE5MGY3YTQ5YmEwMWZmN2MifQ%3D%3D; deployer_session=eyJpdiI6IndSdnVUWGpmRitTOVRsNGlcL01aNU9BPT0iLCJ2YWx1ZSI6IkcwYmNobFwvWXcrNXp2OU55Y25qcDhER0Y5S1d4WTYxbWNOZGdcL2lPWEhEbGFLWkhNR3A1MUZyQ1MxSUdKRUpJZG5WWWR0Q095K0N5bFV6NE5LVXpKbmc9PSIsIm1hYyI6Ijk0NDRhYmNjZjQyMmMyNmYxODI0NDU3MDNkNmYxODlmZTc5NjBlMWMzMDY4Y2ViMzg2NDZlMTYyMjYxNTdlZmIifQ%3D%3D
DNT:1
Host:deploy.lorvent.com:6001
Origin:http://deploy.lorvent.com
Pragma:no-cache
Sec-WebSocket-Extensions:permessage-deflate; client_max_window_bits
Sec-WebSocket-Key:0ugCrqpb+zKwl6TFbNUTOg==
Sec-WebSocket-Version:13
Upgrade:websocket
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
Query String Parameters
view source
view URL encoded
jwt:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NjIyMTc5NDUsImp0aSI6IlNEVm9ZMVpvVFVkT1NVUk5aakpLYzBoc1ZqUlJXV1Y2TjJ4UVZ6VjVOemM9IiwiaXNzIjoiaHR0cDpcL1wvZGVwbG95LmxvcnZlbnQuY29tIiwibmJmIjoxNDYyMjE3OTQ1LCJleHAiOjE0NjIyMjg3NDUsImRhdGEiOnsidXNlcklkIjoxfSwic3ViIjoxfQ.IRY4Eg5Qkqe70xb_A3zAXBstgaxkwXRSPgA55FJV2Wg
EIO:3
transport:websocket
sid:cBA02G_V0wFGGkbuAABu
Name
?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NjIyMTc5NDUsImp0aSI6IlNEVm9ZMVpvVFVkT1NVUk5aakpLYzBoc1ZqUlJXV1Y2TjJ4UVZ6VjVOemM9IiwiaXNzIjoiaHR0cDpcL1wvZGVwbG95LmxvcnZlbnQuY29tIiwibmJmIjoxNDYyMjE3OTQ1LCJleHAiOjE0NjIyMjg3NDUsImRhdGEiOnsidXNlcklkIjoxfSwic3ViIjoxfQ.IRY4Eg5Qkqe70xb_A3zAXBstgaxkwXRSPgA55FJV2Wg&EIO=3&transport=websocket&sid=cBA02G_V0wFGGkbuAABu
and in frametab
new rows are being added...not right after i edit something but after that...
hmm, that is weird. There should be JSON data showing as well 😕
hmmm....
can you guess what could be the problem?
Not yet, still trying to figure it out. What you should see is something like
Do you get anything if you run
$ php artisan queue:failed
It gaves me 100s of lines like below
+---------+------------+------------------+--------------------------------------------------+---------------------+
| ID | Connection | Queue | Class | Failed At |
+---------+------------+------------------+--------------------------------------------------+---------------------+
| 3477459 | beanstalkd | deployer-low | mailer@handleQueuedMessage | 2016-05-03 09:56:05 |
| 3477458 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477457 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477456 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477455 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477454 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477453 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477452 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477451 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:34 |
| 3477450 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477449 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477448 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477447 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477446 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477445 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477444 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477443 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477442 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477441 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477440 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477439 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477438 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:28 |
| 3477437 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:25 |
| 3477436 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 09:55:24 |
Interesting... Can you do
$ php artisan queue:flush
if you run
$ php artisan queue:failed
it should then be empty
then make a change to something and see if it appears in another browser window, if not then run
$ php artisan queue:failed
again and see what it outputs
when making change, it same as before
and queue:failed return
+---------+------------+------------------+----------------------------------------+---------------------+
| ID | Connection | Queue | Class | Failed At |
+---------+------------+------------------+----------------------------------------+---------------------+
| 3477460 | beanstalkd | deployer-default | Illuminate\Broadcasting\BroadcastEvent | 2016-05-03 17:39:23 |
+---------+------------+------------------+----------------------------------------+---------------------+
OK so here is the problem, the job to broadcast the event is failing. Can you try restarting redis? Also is there anything in the logs in storage/logs/cli-2016-05-03.log
?
what a bummer.... looks like redis not running at all
running redis-server
returns nothing, same for redis-cli
also i try installing it again now.....after make
if i run redis-cli
it shows same error command not found
looks like something went wrong and i am just wasting your time :cry:
not related but does php 7 makes any difference?
I am actually quite surprised deployer isn't throwing any errors when redis isn't running. I should probably fix that.
Hello,
I really loved this one and spent more than 2 days to make it working but failed miserably.
i installed redis, beanstalkd,spervisor everything mentioned but still it says not able to connect to socket.
I have setup project and server for project (infact i used same server where deployer installed) and added ssh key to authorized_keys, to github private repo
and if hit "check status" for server...its forever in Testing with loading icon mode.
I really love this app and want to use it, can you please help me set it up properly.
thanks.