Webadmin: 500 internal error for Service > Metronome Log

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 4.2.8
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

I’m trying to check the logs for Metronome using the Webadmin.
I clicked Service > Metronome and then get a " "500" Internal Server Error"

Clicking on other services works.

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 484, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 600, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/service.py", line 516, in service_log
    result[log_path] = _tail(log_path, number)
  File "/usr/lib/moulinette/yunohost/service.py", line 755, in _tail
    lines = f.read().splitlines()
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 2197: invalid start byte

Screenshot of what happened:

Hmokay,

I guess we can manually try to run

tail -n 300 /var/log/metronome/metronome.log

and

tail -n 300 /var/log/metronome/metronome.err

Can you tell if there’s any special character inside these ?

Lots of pipe characters in the metronome.log

|Aug 22 17:31:34 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 17:35:09 c2s55f38a0c57e0|info|Client disconnected: closed|
|Aug 22 17:35:28 c2s55f38a020100|info|Client connected|
|Aug 22 17:35:28 c2s55f38a020100|info|c2s stream for <89.248.165.24> closed: not-well-formed|
|Aug 22 17:35:28 c2s55f38a020100|info|Client disconnected: connection closed|
|Aug 22 17:35:54 c2s55f38a03cbc0|info|Client connected|
|Aug 22 17:35:54 c2s55f38a03cbc0|info|Authenticated as chantel@arkadi.one|
|Aug 22 17:35:54 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 17:39:52 c2s55f38a0c57e0|info|Client disconnected: closed|
|Aug 22 17:40:55 c2s55f38a048c30|info|Client connected|
|Aug 22 17:40:55 c2s55f38a048c30|info|Authenticated as chantel@arkadi.one|
|Aug 22 17:40:55 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 17:41:36 c2s55f38a0c57e0|info|Client disconnected: closed|
|Aug 22 17:41:54 c2s55f397e6c410|info|Client connected|
|Aug 22 17:41:54 c2s55f397e6c410|info|Authenticated as chantel@arkadi.one|
|Aug 22 17:41:54 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 17:45:09 c2s55f38a0c57e0|info|Client disconnected: closed|
|Aug 22 17:46:04 c2s55f397e6d4c0|info|Client connected|
|Aug 22 17:46:05 c2s55f397e6d4c0|info|Authenticated as chantel@arkadi.one|
|Aug 22 17:46:05 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 17:46:23 c2s55f38a0c57e0|info|Client disconnected: closed|
|Aug 22 18:45:56 c2s55f397ee3e80|info|Client connected|
|Aug 22 18:45:56 c2s55f397ee3e80|info|Authenticated as chantel@arkadi.one|
|Aug 22 18:45:56 c2s55f397ee3e80|warn|Attempted to resume unexistent session with id 5af425b3-a3be-43a6-9128-efe0db25abec|
|Aug 22 18:45:58 s2sout55f397f4fec0|info|Beginning new connection attempt to jabber.arkadi.one ([49.159.85.76]:5269)|
|Aug 22 18:45:58 s2sin55f397f6e540|info|incoming s2s stream arkadi.one->jabber.arkadi.one closed: This host does not serve jabber.arkadi.one|
|Aug 22 18:45:58 s2sout55f397f4fec0|info|Session closed by remote with error: host-unknown (This host does not serve jabber.arkadi.one)|
|Aug 22 18:45:58 s2sout55f397f4fec0|info|outgoing s2s stream arkadi.one->jabber.arkadi.one closed: host-unknown (This host does not serve jabber.arkadi.one)|
|Aug 22 18:45:58 s2sout55f397f4fec0|info|sending error replies for 1 queued stanzas because of failed outgoing connection to jabber.arkadi.one|
|Aug 22 18:46:21 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 18:46:24 c2s55f397ee3e80|info|Client disconnected: closed|
|Aug 22 18:50:12 c2s55f38b12cb20|info|Client connected|
|Aug 22 18:50:12 c2s55f38b12cb20|info|Authenticated as chantel@arkadi.one|
|Aug 22 18:50:12 arkadi.one:stanza_optimizations|info|chantel@arkadi.one/Conversations.hhRH signaling client is inactive filtering and queuing incoming stanzas|
|Aug 22 18:51:19 c2s55f397ee3e80|info|Client disconnected: closed|
|Aug 22 18:57:19 c2s55f397ee3e80|warn|Session is being destroyed while it still has unacked stanzas|
|Aug 22 19:02:52 c2s55f38b16a880|info|Client connected|
|Aug 22 19:02:52 c2s55f38b16a880|info|Client disconnected: closed|
|Aug 22 19:15:29 c2s55f38b180620|info|Client connected|
|Aug 22 19:15:29 c2s55f38b180620|info|Authenticated as elias@arkadi.one|

This one looks ok.

sudo tail -n 300 /var/log/metronome/metronome.err
Aug 22 00:25:56 adns	error	Exhausted all 1 configured DNS servers, next lookup will try 127.0.0.1 again
Aug 22 10:18:17 adns	error	Exhausted all 1 configured DNS servers, next lookup will try 127.0.0.1 again

Something strange, but doesn’t seem to be webadmin related:

|Aug 22 19:32:11 s2sin55f38aa420a0|info|incoming s2s stream arkadi.one->jabber.arkadi.one closed: This host does not serve jabber.arkadi.one|
|Aug 22 19:32:11 s2sout55f38aa265a0|info|Session closed by remote with error: host-unknown (This host does not serve jabber.arkadi.one)|

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