Relays not showing up on Adapool.io

Their not showing up still. I ran topology updater twice yesterday.

Hello,

Twice? U need to run all the time once/hour (add a job in crontab)

The topologyupdater shell script must be executed on the relay node as a cronjob exactly every 60 minutes . After 4 consecutive requests (3 hours) the node is considered a new relay node in listed in the topology file. If the node is turned off, it’s automatically delisted after 3 hours.

Cheers,

1 Like

I have the cron tab but how do i check its working.

It should generate a log file… check the logs

I dont think its working, also one of my instances went down from amazon. So I gotta figure that out also

Instance status checks
Instance reachability check failed
Check failure at

Where would the logs be, I just checked my /logs folder in my NODE_HOME folder and it had 1 file called topology_uddate_lastresult

1 Like

image

$ systemctl status cron
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-02-28 14:41:40 UTC; 2 days ago
Docs: man:cron(8)
Main PID: 550 (cron)
Tasks: 1 (limit: 4638)
Memory: 14.5M
CGroup: /system.slice/cron.service
└─550 /usr/sbin/cron -f

This should be the file

Should I update the

nano /etc/crontab

/etc/crontab: system-wide crontab

Unlike any other crontab you don’t have to run the `crontab’

command to install the new version when you edit this file

and files in /etc/cron.d. These files also have username fields,

that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

Example of job definition:

.---------------- minute (0 - 59)

| .------------- hour (0 - 23)

| | .---------- day of month (1 - 31)

| | | .------- month (1 - 12) OR jan,feb,mar,apr …

| | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat

| | | | |

* * * * * user-name command to be executed

17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

Yes, u should find into the guide how to set it up on crontab

I followed the guide. All it says is this:

On relaynode1

cat > $NODE_HOME/crontab-fragment.txt << EOF

22 * * * * ${NODE_HOME}/topologyUpdater.sh

EOF

crontab -l | cat - crontab-fragment.txt >crontab.txt && crontab crontab.txt

rm crontab-fragment.txt

I don’t know but I can see the script in crontab…

22 * * * * ${NODE_HOME}/topologyUpdater.sh

U can set it to run in 5 min and check the result in log file

59 * * * * ${NODE_HOME}/topologyUpdater.sh

Do I add to

/etc/crontab

?

Nano crontab -e

Where is that located?

Type from everywhere , doesn’t matter

But where does this command link to?

etc/crontab? Or what was the question?

Where is this command " Nano crontab -e" creating the file?

Never mind I see where it created it, it put it in my folder. Will the system read that file?

How can I check that the system is reading it and performing the crontab from this file?

Or it’s just crontab -e
I forgot the command :slight_smile: