Ns8-netdata a new monitoring tool to play with

add-module ghcr.io/nethserver/netdata:1.0.0-dev.1

once installed go to the status page you have the random link to the netdata app


3 Likes

discovered you work well and fast at night…

my installation worked fine

However i am sure my sotrage is not 592 gigs…

1 Like

Installed correctly. the URL is the FQDN so “https://servername.domainname.tld/randomstring”

  • Can the random string be changes, for it is now grayed out under settings?
  • It seems that Netdata is consuming quite a lot of server resources (relatively) (top shows av 10%)?
1 Like

fun for the resssources. Need to check. Netdata is the engine in NS7 to populate charts, same for nethsecurity

Go to the environment file of the module and adjust it. We could imagine to do it inside the UI

new version rootfull, not a big fan but upstream itself claims for it, in the meanwhile if you are a simple linux user you miss a lot of information

1 Like

I had assumed the current one was

No a quick rootless but I missed systemd, log, users

1 Like

What are the dangers of a rootfull app in Nethserver.

Could there be something like a limited rootfull

if the app is corrupted, then it is launched by root, you cannot well know where your go

but it is true also for any rpm

could you kindly re-phrase the statement above please

other are better than me

https://medium.com/@maros.kukan/advanced-containers-with-podman-f79302de85b0

the amount of content sys admins read everyday is on another level, no wonder we nowadays just want dashboards with nice graphics

1 Like

as possible do it rootless, root full is an exception

https://github.com/search?q=org%3ANethserver%20rootfull%3D1&type=code

Updating netdata from Version 1.0.0-dev.1 to Version 1.0.1 available via the software center shows an error

image
something went wrong

<7>podman-pull-missing ghcr.io/nethserver/netdata:1.0.1
Trying to pull ghcr.io/nethserver/netdata:1.0.1...
Getting image source signatures
Copying blob sha256:025a82273e6dc55d3dbb722a22e4e0ffa6985f800d9ebe7f1e050cf8da7b9658
Copying config sha256:942b57dff9f1b3960c991345c7d6e104fb32dc5d0848aa64b6ab76190a95ab69
Writing manifest to image destination
942b57dff9f1b3960c991345c7d6e104fb32dc5d0848aa64b6ab76190a95ab69
<3>Module instance "netdata1" update failed with code 1
Assertion failed
  File "/var/lib/nethserver/cluster/actions/update-module/50update", line 141, in <module>
    agent.assert_exp(errors == 0)

And Updt-module

<7>podman-pull-missing ghcr.io/nethserver/netdata:1.0.1
Trying to pull ghcr.io/nethserver/netdata:1.0.1...
Getting image source signatures
Copying blob sha256:025a82273e6dc55d3dbb722a22e4e0ffa6985f800d9ebe7f1e050cf8da7b9658
Copying config sha256:942b57dff9f1b3960c991345c7d6e104fb32dc5d0848aa64b6ab76190a95ab69
Writing manifest to image destination
942b57dff9f1b3960c991345c7d6e104fb32dc5d0848aa64b6ab76190a95ab69
<7>podman-pull-missing docker.io/netdata/netdata:v1.44.3
<7>extract-image ghcr.io/nethserver/netdata:1.0.1
'.imageroot.lst' -> '.imageroot.lst~'
Extracting container filesystem imageroot to /home/netdata1/.config
Total bytes read: 8529920 (8.2MiB, 21MiB/s)
imageroot/actions/
imageroot/actions/clone-module/
imageroot/actions/clone-module/50Traefik
imageroot/actions/configure-module/
imageroot/actions/configure-module/80start_services
imageroot/actions/configure-module/validate-input.json
imageroot/actions/create-module/
imageroot/actions/create-module/10firewall
imageroot/actions/create-module/20create-traefik-path
imageroot/actions/create-module/30create-env-var
imageroot/actions/create-module/80start_services
imageroot/actions/destroy-module/
imageroot/actions/destroy-module/10firewall
imageroot/actions/destroy-module/20destroy
imageroot/actions/destroy-module/30systemd
imageroot/actions/get-configuration/
imageroot/actions/get-configuration/20read
imageroot/actions/get-configuration/validate-output.json
imageroot/actions/restore-module/
imageroot/actions/restore-module/06copyenv
imageroot/actions/restore-module/40restore_database
imageroot/actions/restore-module/50traefik
imageroot/bin/
imageroot/bin/discover-smarthost
imageroot/bin/module-cleanup-state
imageroot/bin/module-dump-state
imageroot/bin/set-hosname
imageroot/etc/
imageroot/etc/state-include.conf
imageroot/events/
imageroot/events/smarthost-changed/
imageroot/events/smarthost-changed/10reload_services
imageroot/netdata.service
imageroot/update-module.d/
imageroot/update-module.d/20restart
chown: changing ownership of './state/netdata/lib/dbengine_multihost_size': Operation not permitted
chown: changing ownership of './state/netdata/lib/lock': Operation not permitted
chown: cannot read directory './state/netdata/lib/dynconf': Permission denied
chown: cannot read directory './state/netdata/lib/registry': Permission denied
chown: changing ownership of './state/netdata/lib/netdata.api.key': Operation not permitted
chown: changing ownership of './state/netdata/lib/.agent_crash': Operation not permitted
changed ownership of './state/netdata/lib/god-jobs-statuses.json' from netdata1:1738600 to netdata1:netdata1
chown: changing ownership of './state/netdata/lib/netdata_random_session_id': Operation not permitted
chown: changing ownership of './state/netdata/lib': Operation not permitted
chown: changing ownership of './state/netdata/cache/ml.db': Operation not permitted
chown: changing ownership of './state/netdata/cache/ml.db-wal': Operation not permitted
chown: changing ownership of './state/netdata/cache/ml.db-shm': Operation not permitted
chown: changing ownership of './state/netdata/cache/netdata-meta.db': Operation not permitted
chown: changing ownership of './state/netdata/cache/netdata-meta.db-wal': Operation not permitted
chown: changing ownership of './state/netdata/cache/netdata-meta.db-shm': Operation not permitted
chown: changing ownership of './state/netdata/cache/context-meta.db': Operation not permitted
chown: changing ownership of './state/netdata/cache/context-meta.db-wal': Operation not permitted
chown: changing ownership of './state/netdata/cache/context-meta.db-shm': Operation not permitted
chown: cannot read directory './state/netdata/cache/dbengine': Permission denied
chown: cannot read directory './state/netdata/cache/dbengine-tier1': Permission denied
chown: cannot read directory './state/netdata/cache/dbengine-tier2': Permission denied
chown: changing ownership of './state/netdata/cache/.netdata_bash_sleep_timer_fifo': Operation not permitted
chown: changing ownership of './state/netdata/cache': Operation not permitted
94b581065de534636ec9a4b098860fc6d70d471a10a271b2c802a3c82d83a302
Traceback (most recent call last):
  File "/usr/local/agent/actions/update-module/05pullimages", line 85, in <module>
    ).check_returncode()
      ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 502, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '('extract-image', 'ghcr.io/nethserver/netdata:1.0.1')' returned non-zero exit status 1.

the dev was installed directly via cli, but the update appeared on the software center

not sure we can upgrade from rootless to rootfull, please reinstall:p

1 Like

Ah, interesting. so if an app was rootless, and a user setup their data, then the dev updted to rootful, then the user is not able to update?

is it the same for reverse?

1 Like

going to the core :stuck_out_tongue:

1 Like

Weiredly after trying to update my net data from the rootless to rootfull and it refused, I am completely unable to remove the current netdata version.

Could you text this case. I’ll share logs when I get hme

Assertion failed
  File "/var/lib/nethserver/cluster/actions/remove-module/50update", line 66, in <module>
    agent.assert_exp(destroy_module_result['exit_code'] == 0)
Assertion failed
  File "/var/lib/nethserver/cluster/actions/remove-module/50update", line 66, in <module>
    agent.assert_exp(destroy_module_result['exit_code'] == 0)
<7>firewall-cmd --permanent --delete-service=netdata1
Error: INVALID_SERVICE: netdata1
Traceback (most recent call last):
  File "/var/lib/nethserver/node/actions/remove-public-service/50remove", line 31, in <module>
    agent.run_helper('firewall-cmd', '--permanent', f'--delete-service={name}').check_returncode()
  File "/usr/lib64/python3.11/subprocess.py", line 502, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '('firewall-cmd', '--permanent', '--delete-service=netdata1')' returned non-zero exit status 101.

@stephdl what could cause this issue.

BAsically i had installed the original veersion, then atttmpted to update when you converted from normal module to root module.

now i can not remove the said module, could this be a bug in the core?

trying to remove a module that was non root, updated to root, then try to remove fails to remove?