[SOLVED] dmidecode needs root privileges

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Information service
Messages: 24
Registration: Sep 14, 2022 - 12:10

August 18, 2023 - 11:03

Agent versions 2.3 and 2.4.

Hello,

on Debian systems, when I run the command "wat-get upgrade" I receive the following error message:
WARNING Error while running dmidecode, dmidecode needs root privileges.

However, forcing the installation or update of packages from the console works perfectly.

How can I resolve this local issue?
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 21, 2023 - 10:50

Hello,
did you run the command as root or with sudo?
Best regards,
Bertrand
Information service
Messages: 24
Registration: Sep 14, 2022 - 12:10

August 22, 2023 - 09:45

Hello,
the command was launched under the root account.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

August 22, 2023 - 10:45

Hello,
I'm unable to reproduce the error with the latest version of the agent. Could you please update and try again?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 22, 2023 - 2:11 PM

Selinux? AppArmor?

Agent OS and version? (see forum rules).
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Information service
Messages: 24
Registration: Sep 14, 2022 - 12:10

August 22, 2023 - 4:29 PM

Agent OS and version?
> Debian 11 and agent version 2.4.
Here is the output of the command "uname -a
6.1.29-v8+ #1652 SMP PREEMPT Wed May 24 14:46:55 BST 2023 aarch64 GNU/Linux

selinux? apparmor?
> I'm not a Linux expert, but the problem seems to only be present on Raspberry Pis, and if I understand correctly, it's using AppArmor.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 22, 2023 - 6:42 PM

Service info wrote: August 22, 2023 - 4:29 PM Agent OS and version?
> Debian 11 and agent version 2.4
Here is the output of the command "uname -a
6.1.29-v8+ #1652 SMP PREEMPT Wed May 24 14:46:55 BST 2023 aarch64 GNU/Linux
2.4 how many?

Code: Select all

wapt-get --version | grep full-version
Do you have dmidecode installed on the machine? It might be a minimal installation. I noticed it's missing from the Depends section of the control file. This will be fixed in the next version.
SELinux? AppArmor?
> I'm not a Linux expert, but the problem seems to only occur on Raspberry Pis, and if I understand correctly, it involves using AppArmor.
AppArmor doesn't block anything to my knowledge in deb11. So that must be the problem with dmidecode.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 23, 2023 - 4:59 PM

Hello IT support,

were you able to verify that installing dmidecode resolves the issue so I can close the topic?

Thank you,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Information service
Messages: 24
Registration: Sep 14, 2022 - 12:10

August 24, 2023 - 4:59 PM

Hello,

additional information for version 2.4.0.14143-9847ee8b.

Sorry for the delayed response.

On the Raspberry Pi, it appears to be present but doesn't respond correctly.

Here is the output of the command:

# dmidecode 3.3
# No SMBIOS nor DMI entry point found, sorry.

This same command on a Debian 11 VM returns the correct information.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

August 24, 2023 - 6:15 PM

Hello IT Support,
what model Raspberry Pi is it? I only have 4B models available, and it works on them with ARM64 deb11.
Regards,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked