Skip to content

Ubuntu 24.04 Support #1261

@danielstojkovski

Description

@danielstojkovski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions