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

Ubuntu 24.04 Support #1261

Open
danielstojkovski opened this issue May 6, 2024 · 1 comment
Open

Ubuntu 24.04 Support #1261

danielstojkovski opened this issue May 6, 2024 · 1 comment

Comments

@danielstojkovski
Copy link

danielstojkovski commented May 6, 2024

Hello,
I am using the install instructions from here: https://app.scalyr.com/help/install-agent-linux?teamToken=zKjoHZMakitVemhyJ1xvXQ--
inside a docker image. When I use ubuntu:24.04, I get the following:


Adding the scalyr agent repository.
Update scalyr repository.
Installing scalyr-agent-2 package
Install failed while executing "apt-get -y install scalyr-agent-2". Execute "apt-get -y install scalyr-agent-2" to see error.

Displaying last 20 lines from scalyr_install.log

  • command python3 [3.12.3] is found and matches the minimum required version - Success!
  • The Scalyr Agent will use the default system python3 binary (/usr/bin/env python3).
    Traceback (most recent call last):
    File "/usr/share/scalyr-agent-2/bin/scalyr-agent-2", line 95, in
    import scalyr_agent.scalyr_logging as scalyr_logging
    File "/usr/share/scalyr-agent-2/py/scalyr_agent/init.py", line 60, in
    from scalyr_agent.scalyr_monitor import ScalyrMonitor
    File "/usr/share/scalyr-agent-2/py/scalyr_agent/scalyr_monitor.py", line 42, in
    import scalyr_agent.scalyr_logging as scalyr_logging
    File "/usr/share/scalyr-agent-2/py/scalyr_agent/scalyr_logging.py", line 51, in
    import scalyr_agent.util as util
    File "/usr/share/scalyr-agent-2/py/scalyr_agent/util.py", line 54, in
    import six.moves._thread
    ModuleNotFoundError: No module named 'six.moves'
    /usr/bin/env: 'python': No such file or directory
    dpkg: error processing package scalyr-agent-2 (--configure):
    installed scalyr-agent-2 package post-installation script subprocess returned error exit status 127
    Errors were encountered while processing:
    scalyr-agent-2
    E: Sub-process /usr/bin/dpkg returned an error code (1)

See scalyr_install.log for additional details.
The command '/bin/sh -c bash ./install-agent.sh --set-api-key 0xJ6z1ov6Wtz8I7x9IxhYPJa88XerYd49JiSf1N4a18U-' returned a non-zero code: 1


I tried building the same docker image with ubuntu:22.04 base and it worked fine. However when I used the image on an ubuntu:24.04 based device I encountered a journal file incompatibility, and I couldn't see logs in scalyr- this is a second order issue, I am sure when I can install scalyr on an ubuntu:24.04 base image everything will be fine :)

FYI, running journalctl inside the container gives me:

root@up-000732a73172:/# SYSTEMD_LOG_LEVEL=debug journalctl --file=/run/log/journal/f5379ddd066b4793982a6b3bfe2de19f/system@3467afaf27734a80a2993ede8cba20e2-0000000000000001-000617bfd915e2b9.journal
Journal effective settings seal=no keyed_hash=yes compress=no compress_threshold_bytes=8B
Journal file /run/log/journal/f5379ddd066b4793982a6b3bfe2de19f/system@3467afaf27734a80a2993ede8cba20e2-0000000000000001-000617bfd915e2b9.journal has unknown incompatible flags 0x10
Failed to open journal file /run/log/journal/f5379ddd066b4793982a6b3bfe2de19f/system@3467afaf27734a80a2993ede8cba20e2-0000000000000001-000617bfd915e2b9.journal: Protocol not supported
mmap cache statistics: 0 context cache hit, 0 window list hit, 1 miss
Failed to open files: Protocol not supported

@oleg-s1
Copy link

oleg-s1 commented May 20, 2024

@danielstojkovski
We are working on adding support for Ubuntu 24.04 for scalyr-agent

Meanwhile could you, please, try AIO package?

sudo apt-get update
sudo apt-get remove scalyr-agent-2
sudo apt-get install scalyr-agent-2-aio

This package contains all necessary libraries and packages as bundle.

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

2 participants