Introduction
A handful of customers observed a 403 error when upgrading the Scalyr Agent from v2.1.17. This occurs because the Linux Scalyr Agent installer script points to the wrong location in our repository. The issue has been corrected in v2.1.18. However, if you installed v2.1.17 and / or have automatic updates enabled, you may need to follow the steps below to ensure that future updates are installed correctly.
Configuration Steps
Debian based systems (.deb packages)
sed "s~4adfas/internal~stable~g" -i /etc/apt/sources.list.d/scalyr.list
apt update
apt install scalyr-agent-2
The contents of /etc/apt/sources.list.d/scalyr.list
are as follows (after the sed
command is run):
deb https://scalyr-repo.s3.amazonaws.com/stable/apt scalyr main
RedHat based systems (.rpm packages)
sed "s~4adfas/internal~stable~g" -i /etc/yum.repos.d/scalyr.repo
yum install scalyr-agent-2
The contents of /etc/yum.repos.d/scalyr.repo
are as follows (after the sed
command is run):
[scalyr] includepkgs=scalyr-agent,scalyr-agent-2,scalyr-repo
name=Scalyr packages - noarch
baseurl=https://scalyr-repo.s3.amazonaws.com/stable/yum/binaries/noarch
mirror_expire=300
metadata_expire=300
enabled=1
gpgcheck=1
gpgkey=https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x84AC559B5FB5463885CE0841F70CEEDB4AD7B6C6
Reinstall via script
Alternatively, download and run the updated install script for Agent v2.1.18:
wget -q https://www.scalyr.com/scalyr-repo/stable/latest/install-scalyr-agent-2.sh && \
sudo bash ./install-scalyr-agent-2.sh \
--set-api-key "<API_WRITE_KEY>" \
--start-agent
Comments
0 comments
Please sign in to leave a comment.