Node version rollback after removing container

Hey so, I just had to stop and remove my docker containers for nodes, because I needed to change one parameter in the setup, but when I recreated the nodes, they have older version now. Before I had like almost all my nodes on 1.155 version, but now they’re all on 152.6, and they’re running with no errors.

in the docker command I used this parameter --name storagenode1 storjlabs/storagenode:latest

also this command

docker logs storagenode 2>&1 | grep -iE "fatal|unrecoverable"

doesn’t return anything

the nodes just went back with versions, also I checked logs and I get like a tons of download cancelled and upload cancelled, the only actions that go through are get_repair and put_repair, rest is cancelled…

also here is log when I startup the node, the version is set to old

Also all nodes that were stopped and removed, all their versions went back to the old one and they’re not receiving any data, its all cancelled now, only repair

Ok I think I just overreacted here, I think its all fine, I just had some connectivity issues and it might be affected and just in bad time, Im getting downloads fine now.

So this looks like normal behaviour, but I was surprised that the version of all nodes went few versions back, I checked version.io and it looks like this is the minimal version so I think everything is fine.

Hello @PePeR,
Welcome back!

Did you also remove binaries from the storage location?

What do you mean binaries? Where excatly? in node/storage I can only see .db, .db-shm and .db-wal files

In the storage location there is a bin subfolder, there are also folders like storage, etc. and the config.yaml file.

I don’t see bin folder, in any of my nodes folders, only these

#EDIT

But I mean they’re working fine, they just all reverted back to previous version which to me was very suspicious, im getting data etc

#Edit 2

btw I have my storagenode file binary in other localization, usr/local/bin/storagenode, dunno if it matters, but I had recently upgraded my system to a debian 13 which could maybe break something here?

So, you do not use a Docker version, but the binary version with services? Otherwise I don’t know why you also have the binary on your host.
The latest docker version should create a binary subfolder in the /app/config/bin location in the container, if you mapped /mnt/storj/ as /app/config, then the bin subfolder will be /mnt/storj/bin on your host.
I just want to get steps to reproduce and confirm a bug. I do not expect a rollback just on restart, while your node is upgraded automatically using our storagenode-updater.

I use docker version, however I did set it up long time ago, this is the command that I used to recreate the container

docker run -d --network Storj-network --restart unless-stopped --stop-timeout 300
-p 28967:28967/tcp
-p 28967:28967/udp
-p 14002:14002
-e WALLET=“XXX”
-e EMAIL="XXX@gmail.com"
-e ADDRESS=“XXXX:28967”
-e STORAGE=“20TB”
–mount type=bind,source=“/Jupiter/Node/identity”,destination=/app/identity
–mount type=bind,source=“/Jupiter/Node”,destination=/app/config
–name Node storjlabs/storagenode:latest

I removed private info from the command.

I don’t have anything in location /mnt

I checked inside the container and there is binary inside the container.

#EDIT

I have the binary on my host because I used some scripts to calculate earnings etc and they needed the binary I think or something

#EDIT2

There is binary storagenode, but there is no /bin folder at all here either

Long time ago I had this case, where the nodes reverted versions too, but it was on much smaller scale and there was a bit different issue related to that

I believe that you run a very old base image. The latest one should create a bin subfolder exactly to prevent a revert.

most of my nodes is 3 years old, but I have one that is like 1.5 year old and it’s the same there, I dont know

It’s easy to check - you may compare the hash of the image on the server, where you do not have a bin subfolder with the image on the server, where you have it.
Or you may just do docker pull storjlabs/storagenode on your server without a bin subfolder, it will pull a newer version of the base image. It also mean, that you do not run a watchtower container.
After pulling a new version you need to stop and remove the container, then run it back using all your parameters.

thanks,
Yeah I inspected the image and the one I had was from 2024-february, but the newest one is from 2024-october, which means I had older one, but the weird thing is that I used flag --name Node storjlabs/storagenode:latest - so I thought everytime this is setup the docker would check the version on the server and use the latest one, dunno why it didn’t automatically download a newer version if there were one.

I can confirm this was the cause, I inspected both versions and the new version has the parameter in json
“BINARY_STORE_DIR=/app/config/bin”
and the previous one didn’t have that. So that was the case here.

Thanks for help

#Edit

Just verified and now I have both /bin folders on my drive where the storage is and inside of the container also

It doesn’t work like this. If you use a tag :latest it will not pull new version of the image, if you already has it on the host.
This is why the recommendation to run a watchtower is still in place.

thanks, when I did setup the nodes there was no info about that in the docs, that’s why I don’t have it most probably

This article has existed since the beginning. Without Watchtower, the storagenode couldn’t be updated. Later, we added storagenode-updater to the same container, and now the storagenode is updated automatically. Updating the base image using Watchtower is no longer as important as it once was, but we still recommend running it.

My first node was setup in march 2022, there was nothing regarding this watchtower in the old docs when I setup the node, im 100% sure. Otherwise I would make a note regarding this in my own docs

Snapshot from April 2022.