Server Migration - Reflash needed?

Does this mean that when I set up a new server, I always have to flash the new C2 certificate file from the server to all Tonieboxes, or copy the C2 file from the old server to the new one?

Otherwise, the Tonieboxes won’t be found on the new server?

Thats the purpose of those certs. To identify server.

so flash the new ones or copy the old ones are the way to go ( toniebox will find tc if the ip/hostname stays the same even with wrong ca cert, but won’t be able to connect correctly)

Okay, that explains why my Tonieboxes aren’t being recognized on the newly set up server. On the old server, I can download the C2 certificate as usual. But how do I upload it to the new server? I don’t have access to the folder structure of the new server, and I haven’t found an upload function.

I really don’t want to re-flash my Tonieboxes, as I have the version without ESP32.

You need access to the server to upload the old server certs.

Would it be possible to add a function to upload the certificate via the web UI? I don’t have enough knowledge to access the folder structure in my Portainer environment within Proxmox to download the certificate. I don’t mean to complain; I think you’re doing a fantastic job and I’m very grateful for it.

not on sort notice.

so you should consult chatgpt how to access it and upload it (in cert is not only ca.der, there are other necessary files which needs to be copied)

Is this the correct path and all the files I need to copy from the old server to the new server? There is no file CA2.

image

those files should be copied from the old to the new server.

they must be there, if not, it would have never worked.

No CA2 existing, I think you are mixing up c2.der and ca.der (c2.der is just the ca.der with another name)

I’ve uploaded all the data from the Certs Server and Client folders to the new Teddycloud server. I shut down the old server and restarted the new one. Do I need to add the Tonieboxes again, or will they appear automatically after copying the old data? Or are there any files missing that I need to copy from the old server to the new one?

I transferred all the data to the new server, and both Tonieboxes were displayed. I removed one as a test and was able to add it back without any problems. Audiobooks I’ve uploaded myself to a Toniebox also play.

However, I can’t connect to Boxine. The “Not connected to Boxine/Toniecloud” message is red. The Teddycloud button is green.

Internet radio stations aren’t found either when I try to assign them to a Toniebox.

What else can I do?

I’m using version 0.6.5

The IP address and the name in the Fritzbox are the same as before. When I enter tb.fritz.box, I can access the Fritzbox as before.

Ensure you have uploaded the original boxine ca as server ca for teddycloud.

And teddycloud is allowed to access internet. Maybe it’s disabled. You might post your docker compose file.

What do you mean by original Boxine CA? I copied the entire Cert/Server folder from the old TeddyCloud instance to the new one.

Then please the docker compose file.

I got it working, but I don’t really understand why it behaves this way. Hopefully I’ll get some kind of explanation.

On my old Teddycloud server, the certificate files were stored in the following folder structure.
I think I also asked about this in another post:

Certs/Client/(MAC address)/

The folder Certs/Client/ itself was empty.

Since I have two Tonieboxes, I had two folders inside the Client directory:

Certs/Client/(MAC address 1)/
Certs/Client/(MAC address 2)/

So after copying everything to the new server, the Certs/Client/ folder was empty again.

In the container log I saw an error message saying that files were missing in the Certs/Client/ folder, even though in the Toniebox settings the file path is set to Certs/Client/(MAC address 1)/ or Certs/Client/(MAC address 2)/.

I then copied the three files from Toniebox 1 into the folder mentioned in the log: Certs/Client/.
Now all three certificate files from Toniebox 1 exist in two locations:

Certs/Client/
and
Certs/Client/(MAC address 1)/

So my question is:
Do the certificate files from one Toniebox need to be placed twice, once in Certs/Client/ as some kind of “master Toniebox,” even though they also exist in their own folder and the settings point to that individual path?

I hope this explanation makes sense. :slight_smile:

the certs/client is the fallback location if no box is used for connecting boxine or if no certificate is available for a certain box.

so its completely ok, to have the same certs of one box in those locations.