[CLOSED] Metronome is dead

Hardware: VPS bought online ( Contabo )
YunoHost version: 4.3.6.3 (stable)
I have access to my server : Through SSH and browser
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

when run the last diagnosis, i received an error saying

Service metronome is dead :frowning:

i restarted it, but the error is still there, so i requested the logs as advised by the diagnosis tool

sudo yunohost service log metronome
/var/log/metronome/metronome.err: 
  - b'Jun 18 01:13:55 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 18 01:13:55 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 18 01:13:55 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 18 01:13:55 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:16 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:16 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:16 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:16 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:42 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:42 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:42 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:22:42 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:25:40 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:25:40 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:25:40 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:25:40 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:26:01 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:26:01 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:26:01 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 14:26:01 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:42:20 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:42:20 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:42:20 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:42:20 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:43:18 portmanager\terror\tFailed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:43:18 portmanager\terror\tFailed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:43:18 portmanager\terror\tFailed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port'
  - b'Jun 22 15:43:18 portmanager\terror\tFailed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port'
  - Jun 27 10:08:03 portmanager	error	Failed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:08:03 portmanager	error	Failed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:08:03 portmanager	error	Failed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:08:03 portmanager	error	Failed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port
/var/log/metronome/metronome.log: 
  - Jun 27 10:08:05 xmpp-upload.docs.brigata.gay:http_upload	info	URL: <https://xmpp-upload.docs.brigata.gay/upload>; Storage path: /var/xmpp-upload/docs.brigata.gay/upload
  - Jun 27 10:08:05 xmpp-upload.meet.brigata.gay:http_upload	info	URL: <https://xmpp-upload.meet.brigata.gay/upload>; Storage path: /var/xmpp-upload/meet.brigata.gay/upload
  - Jun 27 10:08:05 xmpp-upload.pad.brigata.gay:http_upload	info	URL: <https://xmpp-upload.pad.brigata.gay/upload>; Storage path: /var/xmpp-upload/pad.brigata.gay/upload
  - Jun 27 10:08:05 xmpp-upload.forms.brigata.gay:http_upload	info	URL: <https://xmpp-upload.forms.brigata.gay/upload>; Storage path: /var/xmpp-upload/forms.brigata.gay/upload
  - Jun 27 10:08:06 xmpp-upload.brigata.gay:http_upload	info	URL: <https://xmpp-upload.brigata.gay/upload>; Storage path: /var/xmpp-upload/brigata.gay/upload
  - Jun 27 10:08:06 xmpp-upload.mx.brigata.gay:http_upload	info	URL: <https://xmpp-upload.mx.brigata.gay/upload>; Storage path: /var/xmpp-upload/mx.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.poll.brigata.gay:http_upload	info	URL: <https://xmpp-upload.poll.brigata.gay/upload>; Storage path: /var/xmpp-upload/poll.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.crypt.brigata.gay:http_upload	info	URL: <https://xmpp-upload.crypt.brigata.gay/upload>; Storage path: /var/xmpp-upload/crypt.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.mail.brigata.gay:http_upload	info	URL: <https://xmpp-upload.mail.brigata.gay/upload>; Storage path: /var/xmpp-upload/mail.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.agenda.brigata.gay:http_upload	info	URL: <https://xmpp-upload.agenda.brigata.gay/upload>; Storage path: /var/xmpp-upload/agenda.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.sheet.brigata.gay:http_upload	info	URL: <https://xmpp-upload.sheet.brigata.gay/upload>; Storage path: /var/xmpp-upload/sheet.brigata.gay/upload
  - Jun 27 10:08:07 xmpp-upload.news.brigata.gay:http_upload	info	URL: <https://xmpp-upload.news.brigata.gay/upload>; Storage path: /var/xmpp-upload/news.brigata.gay/upload
  - Jun 27 10:21:25 mod_posix	warn	Received SIGTERM
  - Jun 27 10:21:25 general	info	Shutting down: Received SIGTERM
  - Jun 27 10:21:25 general	info	Shutting down...
  - Jun 27 10:21:25 general	info	Shutdown status: Cleaning up
  - Jun 27 10:21:25 general	info	Shutdown status: Closing all active sessions
  - Jun 27 10:21:25 general	info	Shutdown status: Closing all server connections
  - Jun 27 10:21:25 general	info	Shutdown complete
  - Jun 27 10:30:34 general	info	Hello and welcome to Metronome version 3.14.5
  - Jun 27 10:30:34 general	info	Metronome is using the epoll backend for connection handling
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5269 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5269 on *, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	info	Activated service 's2s'
  - Jun 27 10:30:34 mod_s2s	warn	s2s not listening on any ports, outgoing connections may fail
  - Jun 27 10:30:34 portmanager	info	Activated service 's2s_secure'
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5222 on ::, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	error	Failed to open server port 5222 on *, check that Metronome or another XMPP server is not already running and using this port
  - Jun 27 10:30:34 portmanager	info	Activated service 'c2s'
  - Jun 27 10:30:34 portmanager	info	Activated service 'c2s_secure'
  - Jun 27 10:30:34 portmanager	info	Activated service 'http'
  - Jun 27 10:30:34 portmanager	info	Activated service 'https'
  - Jun 27 10:30:34 mod_posix	info	Successfully daemonized to PID 31402
  - Jun 27 10:30:34 xmpp-upload.chat.brigata.gay:http_upload	info	URL: <https://xmpp-upload.chat.brigata.gay/upload>; Storage path: /var/xmpp-upload/chat.brigata.gay/upload
  - Jun 27 10:30:34 xmpp-upload.forum.brigata.gay:http_upload	info	URL: <https://xmpp-upload.forum.brigata.gay/upload>; Storage path: /var/xmpp-upload/forum.brigata.gay/upload
  - Jun 27 10:30:35 xmpp-upload.searx.brigata.gay:http_upload	info	URL: <https://xmpp-upload.searx.brigata.gay/upload>; Storage path: /var/xmpp-upload/searx.brigata.gay/upload
  - Jun 27 10:30:35 xmpp-upload.cloud.brigata.gay:http_upload	info	URL: <https://xmpp-upload.cloud.brigata.gay/upload>; Storage path: /var/xmpp-upload/cloud.brigata.gay/upload
  - Jun 27 10:30:35 xmpp-upload.search.brigata.gay:http_upload	info	URL: <https://xmpp-upload.search.brigata.gay/upload>; Storage path: /var/xmpp-upload/search.brigata.gay/upload
  - Jun 27 10:30:36 xmpp-upload.docs.brigata.gay:http_upload	info	URL: <https://xmpp-upload.docs.brigata.gay/upload>; Storage path: /var/xmpp-upload/docs.brigata.gay/upload
  - Jun 27 10:30:36 xmpp-upload.meet.brigata.gay:http_upload	info	URL: <https://xmpp-upload.meet.brigata.gay/upload>; Storage path: /var/xmpp-upload/meet.brigata.gay/upload
  - Jun 27 10:30:36 xmpp-upload.pad.brigata.gay:http_upload	info	URL: <https://xmpp-upload.pad.brigata.gay/upload>; Storage path: /var/xmpp-upload/pad.brigata.gay/upload
  - Jun 27 10:30:36 xmpp-upload.forms.brigata.gay:http_upload	info	URL: <https://xmpp-upload.forms.brigata.gay/upload>; Storage path: /var/xmpp-upload/forms.brigata.gay/upload
  - Jun 27 10:30:37 xmpp-upload.brigata.gay:http_upload	info	URL: <https://xmpp-upload.brigata.gay/upload>; Storage path: /var/xmpp-upload/brigata.gay/upload
  - Jun 27 10:30:37 xmpp-upload.mx.brigata.gay:http_upload	info	URL: <https://xmpp-upload.mx.brigata.gay/upload>; Storage path: /var/xmpp-upload/mx.brigata.gay/upload
  - Jun 27 10:30:38 xmpp-upload.poll.brigata.gay:http_upload	info	URL: <https://xmpp-upload.poll.brigata.gay/upload>; Storage path: /var/xmpp-upload/poll.brigata.gay/upload
  - Jun 27 10:30:38 xmpp-upload.crypt.brigata.gay:http_upload	info	URL: <https://xmpp-upload.crypt.brigata.gay/upload>; Storage path: /var/xmpp-upload/crypt.brigata.gay/upload
  - Jun 27 10:30:38 xmpp-upload.mail.brigata.gay:http_upload	info	URL: <https://xmpp-upload.mail.brigata.gay/upload>; Storage path: /var/xmpp-upload/mail.brigata.gay/upload
  - Jun 27 10:30:38 xmpp-upload.agenda.brigata.gay:http_upload	info	URL: <https://xmpp-upload.agenda.brigata.gay/upload>; Storage path: /var/xmpp-upload/agenda.brigata.gay/upload
  - Jun 27 10:30:38 xmpp-upload.sheet.brigata.gay:http_upload	info	URL: <https://xmpp-upload.sheet.brigata.gay/upload>; Storage path: /var/xmpp-upload/sheet.brigata.gay/upload
  - Jun 27 10:30:39 xmpp-upload.news.brigata.gay:http_upload	info	URL: <https://xmpp-upload.news.brigata.gay/upload>; Storage path: /var/xmpp-upload/news.brigata.gay/upload
journalctl: 
  - -- Logs begin at Mon 2022-06-27 10:00:24 CEST, end at Mon 2022-06-27 10:30:39 CEST. --
  - Jun 27 10:08:03 systemd[1]: Starting LSB: Metronome XMPP Server...
  - Jun 27 10:08:03 metronome[2923]: Starting Metronome XMPP Server: metronome.
  - Jun 27 10:08:03 systemd[1]: Started LSB: Metronome XMPP Server.
  - Jun 27 10:21:25 systemd[1]: Stopping LSB: Metronome XMPP Server...
  - Jun 27 10:21:25 metronome[21635]: Stopping Metronome XMPP Server: metronome.
  - Jun 27 10:21:25 systemd[1]: metronome.service: Succeeded.
  - Jun 27 10:21:25 systemd[1]: Stopped LSB: Metronome XMPP Server.
  - Jun 27 10:30:34 systemd[1]: Starting LSB: Metronome XMPP Server...
  - Jun 27 10:30:34 metronome[31387]: Starting Metronome XMPP Server: metronome.
  - Jun 27 10:30:34 systemd[1]: Started LSB: Metronome XMPP Server.

anyone can help with this?

Is there already a Metronome instance running (perhaps one which crashed and can’t be accessed now)? You can check that by running,

ps -ef | grep metronome

or maybe better still,

sudo ps -ef | grep metronome

(There must also be a command to show which process is blocking which port; I don’t know how to do that though so maybe someone else can help!).

Also, do you have access to stop/start the VPS server? Sometimes a restart is all it takes to clear some of these issues.

i ran your command and i got this response:

sudo ps -ef | grep metronome
metrono+ 31402     1  0 10:30 ?        00:00:05 lua5.1 /usr/bin/metronome
admin    31967  2914  0 11:31 pts/0    00:00:00 grep metronome

however, i don’t know what that means. :sweat_smile:

and, yeah, i’ve already restarted the vps and nothing really changed.

Okay, so ps -ef basically lists all the currently running commands; grep filters in the commands that contain the phrase metronome.

In your case, ignore the last line (it’s the ps/grep command you just ran). But the first line indicates that metronome is running, and apparently blocking the port which is why the new Metronome that YunoHost tries to start can’t connect.

Two questions for you:

  1. Are you planning to use Metronome (the XMPP service) at all? If not, then this problem isn’t important to you even if it’s there :crazy_face:
  2. If you are using XMPP, try logging in now and see if it connects? Since there’s a Metronome running it probably should—in which case there’s something wrong with the diagnosis, not with Metronome itself :electric_plug:

If neither of those work (you want to use XMPP but are unable to connect to metronome) you can try killing the metronome process using,

sudo killall metronome

and see if that helps. Run a ps -ef | grep metronome when you’re done to see what the status is. If all goes well, YunoHost should automatically restart Metronome and be able to do it properly this time, or if not then you should be able to manually start YunoHost’s Metronome service to get it running.

Failing that, try checking Metronome’s error logs to see if you can find any clues:

cat /var/log/metronome/metronome.log
cat /var/log/metronome/metronome.err

If there are any error messages, paste them here and I’ll see if I can figure out what went wrong!

not planning to use it right now, but not excluding it for the future.

but, well, i guess i can save your comment and use it when/if needed. :smiley:

thank you very much.

1 Like

Glad to be of help! If you (or anyone else) runs into a similar issue too, feel free to share the error messages and I’ll see what I can do :slightly_smiling_face:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.