How to migrate to new server?

Hello,

since I bought a new nas system I wanted migrate teddycloud from my old nas to the new one.

My old setup is proxmox with docker and portainer, my new nas is an Ugreen with the docker app installed and running.

Is there a best practice? I am not really familiar with docker itself. Or would it be easier to start from scratch?

1 Like

Im also interested! Coming from Proxmox with portainer too and would like to expand the volume of the docker image.

You could setup a new instance and copy alle the certificates to the new one (and ensure the ip/ hostname stays the same). That’s the minimal approach.

Or you migrate the whole volumes.

A post was split to a new topic: Move TC from Synology NAS to a Ugreen NaS

The IP of the new teddycloud is different, so I think I have to flash the boxes again. Since I have all the certificates it should be enough to flash the c2.der (like explained in this thread, I have the cc3200 version of the box). Or do I miss something?

If you have the cc3200 version you just need to change the alturl patch or do in case of a ip change only.

Is it enough to change the ip in pihole?

Edit: just changing the dns record in pihole to the new ip does not work, box just says code owl.
Edit2: I changed the ip of the new teddycloud server with macvlan to the old ip but I still get codeword owl.

Did you copy the boxes certs to teddycloud again? So you might have copied a teddycloud ca cert to teddycloud

Sorry for the late reply.

I uploaded the contents of the /teddycloud_certs/_data/client/00…1 from the old server to the location on my ugreen.

These folders are defined before deploying the container

I still get the codeworde owl.

Would it be easier/possible to reflash the toniebox and kind of start from scratch?

i would say the server certs are also important.

Is boxine green now in Teddycloud?

Can you check if the ca.der contains boxine if you open the file?

can you post the latest docker logs when you are doing a freshnesscheck?

Boxine is green in teddycloud. This is the content of the ca.der of my box:

And this from the new server

Log during freshness check:

INFO |cloud_request.c:0200:web_request()| Connecting to HTTP server prod.de.tbs.toys:443…
INFO |cloud_request.c:0252:web_request()| trying IP: 18.156.186.144
INFO |cloud_request.c:0200:web_request()| Connecting to HTTP server prod.de.tbs.toys:443…
INFO |cloud_request.c:0252:web_request()| trying IP: 3.69.182.181
INFO |cloud_request.c:0486:web_request()| Response: ‘1761996643’
INFO |cloud_request.c:0486:web_request()| Response: ‘1761996644’
INFO |handler_api.c:2389:handleApiTonieboxJson()| Trying to read /teddycloud/config/tonieboxes.json with size 3022
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections
INFO |server.c:0961:server_init()| 1 open HTTPS API connections
INFO |server.c:0961:server_init()| 0 open HTTPS API connections

EDIT: I copied the server certificates from the old one to the new server and now the box is recognized. I thought I had done this but apparently not.

so problem solved?

1 Like

Problem solved, yes. Thank you :slight_smile:

maybe there could be some feature implemented for the “rookies” like me which allowes to export/backup all the data from the Teddycloud GUI?

I’m also struggling to move my data from the “test” environment on Docker to the “live” system on Proxmox. the Proxmox container is already set up, now I’m stuck to move the existing data.

Google and ChatGPT are your Friends.

ChatGPT will give you detailed Information what You have to do (better than anyone here) seriously. Use such Tools for These questions. That’s where they are great. Even without an Account you will get the answer. And if the answer is to complicated, just say that and ChatGPT will reformierte it.

Most important are the files in the CERT volume.

1 Like

OK, will give it a try.

Don’t trust these AI tools since they caused bricking my internet router twice because of insufficient instructions.

in this case you are only to read data :wink: ignore hints to delete data from docker. So nothing should go wrong

1 Like

gave it multiple tries but still no success.
before I totally mess it up and waste any further hours with this instead of playing with the kids, I just leave it and wipe all data and start from scratch again. seems to be more efficient for me.

maybe some day there would be an easy “download data” or any similar feature also for the common operators like to backup the data that’s been on the TeddyCloud so far.

nevertheless, thanks for your help to try it.

That will be never implemented within teddyCloud.
The data is available within the docker volumes, that are defined in the docker compose file. It can be easily accessed on the host and copied anywhere else if needed.
https://docs.docker.com/engine/storage/volumes/#when-to-use-volumes

I understand that for you as pro user it’s simple to migrate or modify this.

but there are also plenty of common operators who would prefer easier handling

1 Like