Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superslacker exits instantly #26

Open
astrooom opened this issue Aug 19, 2023 · 2 comments
Open

Superslacker exits instantly #26

astrooom opened this issue Aug 19, 2023 · 2 comments

Comments

@astrooom
Copy link

I'm trying to run superslacker with one program in the supervisord.conf, but getting the following:

2023-08-19 23:00:50,520 INFO supervisord started with pid 1
2023-08-19 23:00:51,522 INFO spawned: 'superslacker' with pid 8
2023-08-19 23:00:51,524 INFO spawned: 'directus' with pid 9
2023-08-19 23:00:53,078 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:00:53,078 INFO success: directus entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:00:53,079 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:00:54,081 INFO spawned: 'superslacker' with pid 19
2023-08-19 23:00:54,541 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:00:55,544 INFO spawned: 'superslacker' with pid 24
2023-08-19 23:00:56,927 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:00:56,928 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:00:57,930 INFO spawned: 'superslacker' with pid 33
2023-08-19 23:00:59,346 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:00:59,346 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:00,264 INFO spawned: 'superslacker' with pid 42
2023-08-19 23:01:01,720 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:01,720 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:02,722 INFO spawned: 'superslacker' with pid 43
2023-08-19 23:01:04,101 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:04,102 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:05,105 INFO spawned: 'superslacker' with pid 44
2023-08-19 23:01:06,506 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:06,506 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:07,509 INFO spawned: 'superslacker' with pid 45
2023-08-19 23:01:08,904 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:08,905 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:09,907 INFO spawned: 'superslacker' with pid 46
2023-08-19 23:01:11,286 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:11,286 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:12,289 INFO spawned: 'superslacker' with pid 47
2023-08-19 23:01:13,670 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:13,670 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:14,673 INFO spawned: 'superslacker' with pid 48
2023-08-19 23:01:16,049 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:16,050 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:17,052 INFO spawned: 'superslacker' with pid 49
2023-08-19 23:01:18,424 INFO success: superslacker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-19 23:01:18,424 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:19,426 ERRO pool superslacker event buffer overflowed, discarding event 0
2023-08-19 23:01:19,428 INFO spawned: 'superslacker' with pid 50
2023-08-19 23:01:19,740 ERRO pool superslacker event buffer overflowed, discarding event 1
2023-08-19 23:01:19,785 ERRO pool superslacker event buffer overflowed, discarding event 2
2023-08-19 23:01:19,785 ERRO pool superslacker event buffer overflowed, discarding event 3
2023-08-19 23:01:19,785 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:20,787 ERRO pool superslacker event buffer overflowed, discarding event 3
2023-08-19 23:01:20,787 ERRO pool superslacker event buffer overflowed, discarding event 4
2023-08-19 23:01:20,789 INFO spawned: 'superslacker' with pid 51
2023-08-19 23:01:20,789 ERRO pool superslacker event buffer overflowed, discarding event 4
2023-08-19 23:01:21,110 ERRO pool superslacker event buffer overflowed, discarding event 5
2023-08-19 23:01:21,160 ERRO pool superslacker event buffer overflowed, discarding event 6
2023-08-19 23:01:21,160 ERRO pool superslacker event buffer overflowed, discarding event 6
2023-08-19 23:01:21,160 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:23,161 ERRO pool superslacker event buffer overflowed, discarding event 7
2023-08-19 23:01:23,161 ERRO pool superslacker event buffer overflowed, discarding event 7
2023-08-19 23:01:23,163 INFO spawned: 'superslacker' with pid 52
2023-08-19 23:01:23,461 ERRO pool superslacker event buffer overflowed, discarding event 8
2023-08-19 23:01:23,508 ERRO pool superslacker event buffer overflowed, discarding event 8
2023-08-19 23:01:23,508 ERRO pool superslacker event buffer overflowed, discarding event 9
2023-08-19 23:01:23,509 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:25,511 ERRO pool superslacker event buffer overflowed, discarding event 9
2023-08-19 23:01:26,512 ERRO pool superslacker event buffer overflowed, discarding event 10
2023-08-19 23:01:26,512 ERRO pool superslacker event buffer overflowed, discarding event 11
2023-08-19 23:01:26,514 INFO spawned: 'superslacker' with pid 53
2023-08-19 23:01:26,843 ERRO pool superslacker event buffer overflowed, discarding event 11
2023-08-19 23:01:26,890 ERRO pool superslacker event buffer overflowed, discarding event 12
2023-08-19 23:01:26,890 ERRO pool superslacker event buffer overflowed, discarding event 12
2023-08-19 23:01:26,890 INFO exited: superslacker (exit status 1; not expected)
2023-08-19 23:01:27,891 ERRO pool superslacker event buffer overflowed, discarding event 13
2023-08-19 23:01:27,891 ERRO pool superslacker event buffer overflowed, discarding event 14
2023-08-19 23:01:27,891 INFO gave up: superslacker entered FATAL state, too many start retries too quickly```
@astrooom
Copy link
Author

astrooom commented Aug 19, 2023

I figured it out. The issue was that I hadn't configured supervisorctl properly first.

Add this:

[unix_http_server]
file=/dev/shm/supervisor.sock
chmod=0700

[supervisord]
nodaemon=true
pidfile=/var/run/supervisord.pid

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///dev/shm/supervisor.sock

@astrooom
Copy link
Author

astrooom commented Aug 20, 2023

New issue, it shouts this after being on for a couple of minutes:

2023-08-20 08:56:25,553 ERRO pool superslacker event buffer overflowed, discarding event 5495
2023-08-20 08:56:30,560 ERRO pool superslacker event buffer overflowed, discarding event 5496
2023-08-20 08:56:35,565 ERRO pool superslacker event buffer overflowed, discarding event 5497
2023-08-20 08:56:40,572 ERRO pool superslacker event buffer overflowed, discarding event 5498
2023-08-20 08:56:45,579 ERRO pool superslacker event buffer overflowed, discarding event 5499
2023-08-20 08:56:50,586 ERRO pool superslacker event buffer overflowed, discarding event 5500
2023-08-20 08:56:55,593 ERRO pool superslacker event buffer overflowed, discarding event 5501
2023-08-20 08:57:00,600 ERRO pool superslacker event buffer overflowed, discarding event 5502
2023-08-20 08:57:05,606 ERRO pool superslacker event buffer overflowed, discarding event 5503
2023-08-20 08:57:10,612 ERRO pool superslacker event buffer overflowed, discarding event 5504
2023-08-20 08:57:15,618 ERRO pool superslacker event buffer overflowed, discarding event 5505
2023-08-20 08:57:20,624 ERRO pool superslacker event buffer overflowed, discarding event 5506
2023-08-20 08:57:25,631 ERRO pool superslacker event buffer overflowed, discarding event 5507
2023-08-20 08:57:30,638 ERRO pool superslacker event buffer overflowed, discarding event 5508
2023-08-20 08:57:35,644 ERRO pool superslacker event buffer overflowed, discarding event 5509
2023-08-20 08:57:40,650 ERRO pool superslacker event buffer overflowed, discarding event 5510
2023-08-20 08:57:45,657 ERRO pool superslacker event buffer overflowed, discarding event 5511
2023-08-20 08:57:50,664 ERRO pool superslacker event buffer overflowed, discarding event 5512
2023-08-20 08:57:55,669 ERRO pool superslacker event buffer overflowed, discarding event 5513
2023-08-20 08:58:00,675 ERRO pool superslacker event buffer overflowed, discarding event 5514
2023-08-20 08:58:05,682 ERRO pool superslacker event buffer overflowed, discarding event 5515
2023-08-20 08:58:10,689 ERRO pool superslacker event buffer overflowed, discarding event 5516

Increasing the buffer_size option delays this from happening, but it still occurs after a while no matter what the buffer_size is set to:

[eventlistener:superslacker]
autostart=%(ENV_ENABLE_SLACK_PROCESS_NOTIFS)s
user=root
command=/usr/bin/superslacker blacklist="superslacker" --token="xoxb-4691993022849-5761582075526-5PgiBYO72rMKdrA6F1i88qCc" --channel="#us-processes" --hostname="%(host_node_name)s" --events="STARTING,RUNNING,BACKOFF,STOPPING,EXITED,STOPPED,UNKNOWN" 
buffer_size=200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant