Problem getting debian 11 recognized as host OS

wila

Verified User
Joined
Dec 15, 2017
Messages
48
Hi,

I moved a host from CentOS to debian 11 recently and was having trouble to get DirectAdmin to recognize the host OS.
It kept on saying "linux_amd64" even when I tried adding the OS to directadmin.conf
eg.
Code:
 os_override=Debian%2011%2064
After a
Code:
[email protected]:/usr/local/directadmin/scripts# ./getDA.sh current
###################################################################################################################################### 100.0%
Update Successful.
and restarting directadmin, I would still end up with "linux_amd64".
Nothing helped, but since I had virtually no issues.. I let it go for now.

Today I had problems compiling the latest clamav 0.104.2 and I figured to try again to get the hostOS detection fixed.

So I followed the steps from https://docs.directadmin.com/direct...tml#manual-update-using-cli-and-helper-script yet another time.
Removed the os_override, tried again.. nope, no success.

Then I noticed that there's a special CLI way underneath that article. One where you have ALL control.
I do like the sound of that!

Code:
[email protected]:/usr/local/directadmin/scripts# CHANNEL=current
[email protected]:/usr/local/directadmin/scripts# OS_SLUG=debian11_amd64
[email protected]:/usr/local/directadmin/scripts# COMMIT=$(dig +short -t txt "$CHANNEL-version.directadmin.com" | sed 's|.*commit=\([0-9a-f]*\).*|\1|')
[email protected]:/usr/local/directadmin/scripts# FILE="directadmin_${COMMIT}_${OS_SLUG}.tar.gz"
[email protected]:/usr/local/directadmin/scripts# curl --location --progress-bar --connect-timeout 10 "https://download.directadmin.com/${FILE}" --output "/root/${FILE}"
###################################################################################################################################### 100.0%
[email protected]:~# tar xzf "/root/${FILE}" -C /usr/local/directadmin

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Hmm.. that sounds familiar...
Code:
[email protected]:~# cat directadmin_9a6798b0fb610c91775c580114a7101d8cad6fbf_debian11_amd64.tar.gz
<?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><BucketName>download-directadmin</BucketName><RequestId>tx00000000000016ecb6751-0061e2d445-18008f82-nyc3c</RequestId><HostId>18008f82-nyc3c-nyc3-zg03</HostId></Error>

Right.. so I changed the above to "OS_SLUG=debian10_amd64" and now it DID download a directadmin binary zipped up and I was able to switch to debian10

Not perfect, but closer to debian11 than a linux_amd64

With that I was able to compile Clamav 104.2

Hope this helps someone out there.
 
Last edited:
Top