Has my node been vetted yet?

Please, copy the script from there (you didn’t copied the whole script anyway): Script for Audits stat by satellites

@Alexey thank you, but here i see only 4 commands and non of it about vetting:

1 Like

Don’t worry, just run the script and you got the stat from each satellite. You can choose the first script, since you on Linux and uses docker
The successCount is what you want to know

@Alexey wich of the scripts? Could you please show the command?

Just copy the first script from the article to do not mess any symbol as you did before. The bash sometimes is not a best language.

Did you read this?

Edit: and please don’t type these commands by yourself. Copy and paste it into your terminal.

As i DID before??? what are you talking about?

I copied this command from this page from @max example, that it in this page. Have NOT change anything.

The forum can remove special symbols, and when you copy from the usual text, not the code block, the command can lose an important symbols. This is happened with all your commands which you posted here, and @max 's post is not an exception…
Sorry for confusion and inconvenience, please, copy the first script from the article from the code block - it’s not messed up.

och… i see i see…
thank you for explanation. will try.

Never ending story :smiley:
Command looks ok now, but…

for sat in docker exec -i storagenode wget -qO - localhost:14002/api/dashboard | jq .data.satellites[].id -r; do docker exec -i storagenode wget -qO - localhost:14002/api/satellite/$sat | jq .data.id,.data.audit; done

Command ‘jq’ not found, but can be installed with:

sudo snap install jq # version 1.5+dfsg-1, or

sudo apt install jq

See ‘snap info jq’ for additional versions.

node@server:~$ sudo apt install jq

[sudo] password for node:

Reading package lists… Done

Building dependency tree

Reading state information… Done

The following additional packages will be installed:

libjq1 libonig4

The following packages will be REMOVED:

linux-image-4.15.0-45-generic

The following NEW packages will be installed:

jq libjq1 libonig4

0 upgraded, 3 newly installed, 1 to remove and 26 not upgraded.

2 not fully installed or removed.

Need to get 0 B/276 kB of archives.

After this operation, 7,381 kB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database … 110727 files and directories currently installed.)

Removing linux-image-4.15.0-45-generic (4.15.0-45.48) …

/etc/kernel/postrm.d/initramfs-tools:

update-initramfs: Deleting /boot/initrd.img-4.15.0-45-generic

/etc/kernel/postrm.d/x-grub-legacy-ec2:

Searching for GRUB installation directory … found: /boot/grub

Searching for default file … found: /boot/grub/default

Testing for an existing GRUB menu.lst file …

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub-legacy-ec2: line 1101: read: read error: 0: Bad file descriptor

run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 1

dpkg: error processing package linux-image-4.15.0-45-generic (–remove):

installed linux-image-4.15.0-45-generic package post-removal script subprocess returned error exit status 1

Errors were encountered while processing:

linux-image-4.15.0-45-generic

E: Sub-process /usr/bin/dpkg returned an error code (1)

node@server:~$

Try sudo apt install -f
Without any package. We should fix the broken installation on your system

thank you Alexey, but did not worked as well:

sudo apt install -f
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
linux-image-4.15.0-45-generic
0 upgraded, 0 newly installed, 1 to remove and 26 not upgraded.
2 not fully installed or removed.
After this operation, 8,311 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 110727 files and directories currently installed.)
Removing linux-image-4.15.0-45-generic (4.15.0-45.48) …
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.15.0-45-generic
/etc/kernel/postrm.d/x-grub-legacy-ec2:
Searching for GRUB installation directory … found: /boot/grub
Searching for default file … found: /boot/grub/default
Testing for an existing GRUB menu.lst file …

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) /usr/sbin/update-grub-legacy-ec2: line 1101: read: read error: 0: Bad file descriptor
run-parts: /etc/kernel/postrm.d/x-grub-legacy-ec2 exited with return code 1
dpkg: error processing package linux-image-4.15.0-45-generic (–remove):
installed linux-image-4.15.0-45-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
linux-image-4.15.0-45-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

But as i understand this is already problem with my ubuntu?? :frowning:

yep.
Maybe better to solve this problem on https://discourse.ubuntu.com/

Try to answer with N on the question

Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N)

It was just a thought as you once had an 0 instead of a O. This would never happen if you copy and paste.

@donald.m.motsinger here should be O, not 0 (zero)…

-O file
–output-document=file
The documents will not be written to the appropriate files, but all will be concatenated together and
written to file. If - is used as file, documents will be printed to standard output, disabling link
conversion. (Use ./- to print to a file literally named -.)

1 Like

Ah, ok. @heunland set me on the wrong path

@donald.m.motsinger thanks for that explanation. Short question, how does the sattelites do the auditing? Is there sth like it audits twice a day or sth like this?

Audits are made all the time. Just search for “GET_AUDIT” in your logs. I have audits almost every minute. If your node is new, then there is much less data to audit and therefore you will see less audits.

1 Like

Hi there,

does this work on windows too? I dont get a response for /api/satellite/{id}

The endpoint has been changed:

Please use an updated one:

Or you can use this script:

1 Like