Hi,
I have installed logsync-james and logsync-receiver on 2 arm64 devices.
It’s not working but I wonder is it related to the following messages in dmesg:
No I don’t.
I am thinking to make my own version of these snaps but build them so they are not services, and instead be able to run the from a command line, so I might see the problem.
I seem to have narrowed down the problem.
logsync-receiver works on arm64 platform.
logsync-james works on amd64 platform
logsync-james not working on arm64 platform.
I will compare the system logs between amd64 and arm64 next.
this is very interesting indeed … i do not think we even tested cross arch back when we developed it (simply assuming it would behave the same) … it might be that different versions of journald could also play a role here (if they actually are different) …
Possibly I should create this as a separate issue, but it is more of a question than an issue.
I put a my version of logsync-receiver and logsync-james into the same snapcraft file - with 2 apps (an upload and a download).
This seems to not be allowed/appropriate as the upload parts repeatedly crashes and is restarted by the watchdog.
I see the following warnings from snappy debug
= AppArmor =
Time: Sep 07 11:00:12
Log: apparmor="DENIED" operation="sendmsg" profile="snap.epi-logstream.upload" name="/run/systemd/notify" pid=8265 comm="systemd-journal" requested_mask="w" denied_mask="w" fsuid=0 ouid=0
File: /run/systemd/notify (write)
Suggestions:
* adjust program to use $SNAP_DATA
* adjust program to use /run/shm/snap.$SNAP_NAME.*
* adjust program to use /run/snap.$SNAP_NAME.*
* adjust snap to use snap layouts (https://forum.snapcraft.io/t/snap-layouts/7207)
This is how I define the layout:
layout:
/etc/systemd:
bind: $SNAP_DATA/systemd
This is extract from my snapcraft.yaml
apps:
download:
command: lib/systemd/systemd-journal-remote --listen-http=-3 --output=$SNAP_COMMON
plugs:
- network-bind
- network
- time-control # this quietens log spam at access of /proc/1/environ
daemon: simple
sockets:
systemd-journal-remote:
listen-stream: 19532
upload:
command: lib/systemd/systemd-journal-upload --url=http://localhost --save-state=$SNAP_DATA/state
plugs:
- daemon-notify
- network-bind
- network-control
- network
- log-observe
- time-control # this quietens log spam at access of /proc/1/environ
daemon: simple
watchdog-timeout: 3m
So I would like to understand the reason why they cannot co-exist within the same snap.
When I run (inside the snap) journactl directly on a journal file produced by version 249 I see the following error:
$ journalctl --file=ARM/system.journal
Failed to open files: Protocol not supported
So the version of journactl and systemd-journal-upload pulled down as part of the building of the snap cannot read the files produced by the version in the Ubuntu Core OS.
I believe my problems can be solves if I can build this snap for core22.
I understand that there are some different requirements when building with core22.
My main problem is to do with missing libs as follows: