Q: After trying to update my version of ASL, I get a "401: Unauthorized" error trying to pull the repo data.
A: If you are seeing an error that looks something like this:
https://pleskuser:firstname.lastname@example.org/channels/asl-4.0/centos/7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 401 - Unauthorized
Trying other mirror.
This means that Plesk is overriding your credentials and Plesk keeps replacing them with one of their generated license keys.
If you purchased your ASL license directly from us and not through Plesk, but your credentials are being replaced in your config by Plesk, here are the recommended steps to fix the issue:
1. Locate a lingering license key file. Look for a file called "license.key" in the /etc/asl directory. If you find that file exists, remove it.
2. Once you have removed the file /etc/asl/license.key, run the following command to make it unalterable:
chattr +i /etc/asl/license.key
This essentially means that not even root will be able to mess with this file. That way, it will be the case that Plesk's updater, nor our updater, will able to modify it.
However, you will see this at the end of every aum -uf output until we settle everything with Plesk:
2 9901 ASLCommon::cmd_system ERROR: '/bin/chown tortix.root /etc/asl/license.key (1)'
3. Open your ASL configuration file (/etc/asl/config) and edit the following fields with the credentials you use for your Atomicorp rules license:
For example, you may see the following settings in your /etc/asl/config file:
In this case, you need to replace that username and password that was put in by Plesk with the username and password you use for Atomicorp ASL.
UPDATE_TYPE should be changed to "all" if you have purchased the full ASL product.
FEED_SOURCE should be changed to the empty value ""
4. Run the Atomic updater with the following command:
5. Inspect the contents of the ASL configuration file again to confirm the user credentials in the config file are correct.
If you have done all this, the issue persists, and you still need further assistance: