I will try adding my publeys
I would not try that. The pubkey gets auto populated by the orchestrator. How do you know the orchestrator is failing? Status = stopped?
I tried the solution you gave again, I noticed my config.json got back to glbalstate 3 and the old buggy values. Redoing the process.
EDIT: aaaand doesnât work.
The link to get the last update is wget https://github.com/HyperCore-Team/orchestrator/releases/download/v0.0.3-alphanet/orchestrator-linux-amd64.zip right ?
Just to confirm youâre overwriting the old file (if any) and unzipping the new one right?
I can confirm that my GlobalState remains 0.
I will redo the process tomorrow
I have redone all the process and still nothing works for me. I drop my configuration file here in case Sumamu see it:
{
âDataPathâ: â/root/.orchestratorâ,
âEventsPathâ: ââ,
âQueuesPathâ: ââ,
âGlobalStateâ: 0,
âEvmAddressâ: âredactedâ,
âNetworksâ: {
âBSCâ: {
âUrlsâ: [
âws://127.0.0.1:8545â
],
âFilterQuerySizeâ: 2000
},
âEthereumâ: {
âUrlsâ: [
âredactedâ
],
âFilterQuerySizeâ: 2000
},
âZenonâ: {
âUrlsâ: [
âws://127.0.0.1:35998â
],
âFilterQuerySizeâ: 0
}
},
âTssConfigâ: {
âPortâ: 55055,
âPublicKeyâ: ââ,
âDecompressedPublicKeyâ: ââ,
âLocalPubKeysâ: null,
âBootstrapâ: ââ,
âPubKeyWhitelistâ: {},
âBaseDirâ: â/root/.orchestrator/tssâ,
âBaseConfigâ: {
âPartyTimeoutâ: 160000000000,
âKeyGenTimeoutâ: 900000000000,
âKeySignTimeoutâ: 240000000000,
âKeyRegroupTimeoutâ: 60,
âPreParamTimeoutâ: 900000000000,
âEnableMonitorâ: false
}
},
âProducerKeyFileNameâ: âproducerâ,
âProducerKeyFilePassphraseâ: âredactedâ,
âProducerIndexâ: 0
}
So itâs
wget https://github.com/HyperCore-Team/orchestrator/releases/download/v0.0.3-alphanet/orchestrator-linux-amd64.zip
unzip orchestrator-linux-amd64.zip
And âAâ ?
Then you edit the âoldâ config file right?
EDIT : It seems to work for now, I forgot sudo cp orchestrator-linux-amd64 /usr/local/bin/
EDIT2 : plz ser add mine here, producer ends with âtjjzlâ Orchestrators
wget -O orchestrator-linux-amd64.zip https://github.com/HyperCore-Team/orchestrator/releases/download/v0.0.3-alphanet/orchestrator-linux-amd64.zip
unzip orchestrator-linux-amd64.zip
sudo systemctl stop orchestrator
sudo cp orchestrator-linux-amd64 /usr/local/bin/
sudo systemctl start orchestrator
# check status of orchestrator by running next command
sudo systemctl status orchestrator
Note: it is wget -O
I donât think you are actually upgrading the orchestrator. What we discovered was that when you wget
a file with a name that already exists, wget renames the file and adds .1
after .zip
.
Do an ls
in your download directory and do you see many files with .zip.1
, .zip.2
. if so those are the new downloads. If you are unzipping .zip
that is the very first download. And you are unziping it and replace the same binary over and over.
when you do wget -O
it will overwrite the filename and will NOT add a number at the end.
Iâve deleted a few posts in this thread that are confusing (mostly by me). As the instructions change Iâm updating the original post.
I canât edit this post, so here is the corrected version:
If you want the orchestrator to restart multiple times after it crashes (in instances where perhaps it canât connect to the Zenon / ETH node and needs to try again/wait between attempts):
@sumamu had shared some configs, and here is a variation of it:
Stop the orchestrator:
sudo systemctl stop orchestrator
Followed by:
sudo nano /etc/systemd/system/orchestrator.service
Then add StartLimitIntervalSec=300s
, StartLimitBurst=10
and RestartSec=60
as seen below:
[Unit]
Description=Orchestrator Service
After=network.target
StartLimitIntervalSec=300s
StartLimitBurst=10
[Service]
User=root
Group=root
ExecStart=/usr/local/bin/orchestrator-linux-amd64
ExecStop=/usr/bin/pkill -9 orchestrator-linux-amd64
Restart=on-failure
RestartSec=60
TimeoutStopSec=10s
TimeoutStartSec=10s
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=orchestrator
[Install]
WantedBy=multi-user.target
Then:
sudo systemctl daemon-reload
sudo systemctl start orchestrator
In this configuration:
StartLimitIntervalSec=300s: systemd will observe restart attempts within a 300 second (5 minute) interval.
StartLimitBurst=10: If the service fails and restarts more than 10 times within the above interval, systemd will stop trying to restart it until the interval has passed.
Restart=on-failure: The service will be restarted when the process exits with a non-zero exit code.
RestartSec=60: systemd will wait for 60 seconds before trying to restart the service after it has failed.
So, in a scenario where the service continually fails, the Orchestrator service will restart up to 10 times within a 5-minute window, with a delay of 60 seconds between each restart attempt. After 10 failed attempts within this window, systemd will stop trying to restart the service until the 5-minute interval has passed.
I just fixed the edit post issue. Have you had success with this? I did not update the original instructions because I have not tested them. If this is working well, Iâll try to update my node and then update the original instructions.
Update the binary in 1 command (takes a total of 25 seconds to execute). Include the parentheses when copy/pasting the whole code block â and remember to update the the URL path to the .zip file between releases!
(
wget -O orchestrator-linux-amd64.zip https://github.com/HyperCore-Team/orchestrator/releases/download/v0.0.3b-alphanet/orchestrator-linux-amd64.zip
sleep 5 && unzip -o orchestrator-linux-amd64.zip
sleep 5 && sudo systemctl stop orchestrator
sleep 5 && sudo cp orchestrator-linux-amd64 /usr/local/bin/
sleep 5 && sudo systemctl start orchestrator
sleep 5 && sudo systemctl status orchestrator
)
Here is an upgrade script to automatically the orchestrator.
sudo apt-get install jq
nano upgrade.sh
#!/bin/bash
set -e
# Get the latest release from GitHub API
latest_release=$(curl -s https://api.github.com/repos/HyperCore-Team/orchestrator/releases/latest | jq -r ".assets[] | select(.name | contains(\"linux-amd64.zip\")) | .browser_download_url")
# Download the latest release
wget -O orchestrator-linux-amd64.zip "$latest_release"
unzip -o orchestrator-linux-amd64.zip
sudo systemctl stop orchestrator
sleep 5
sudo cp orchestrator-linux-amd64 /usr/local/bin/
sudo systemctl start orchestrator
sleep 5
sudo systemctl status orchestrator
To use the script, save the above lines in a file, letâs say upgrade.sh
. Then, run chmod +x upgrade.sh
to make it executable. You can then run it with ./upgrade.sh
.