Hello everyone,
I need to convert a simple TXT file (maximum 20 lines) into a PDF on a WAGO PFC300.
I implemented a solution using a Python script running inside a Docker container.
The solution works correctly, but when I clone the controller and restore it on another PFC300, the Docker application is lost and the system no longer works.
This is a major issue for us, because we need a reliable way to create an exact copy of the controller.
Do you have any suggestions on how to generate a PDF on the PFC300, or how to preserve the Docker container during backup and restore?
Best regards
I think first you need to do a docker commit command to save your container as image and that will help you to deploy it easily:
Next, is how are you doing the backup / restore ?
I don’t remember that I used a commit, but I can try it.
The backup is done with WAGO upload.
Regards,
you can put SD card inside and from Web-based Management > “Configuration”>“Administration”>“Create Image”
This way you can create full copy of the controller.
You can also turn on autoboot function, so if you put SD card into another controller all will be copied to the controller on controller powerup.
To turn it on you need to connect via SSH to the controller and paste this line:
/etc/init.d/cpsd2intern makelink
thanks .. I try
If I understand correctly, if I need a full copy of the controller, I must use an SD card. It is not possible via the network. Is that correct?
(This is the first time we are using a WAGO controller.)
Hello everyone,
I followed these steps:
-
Install the Docker container
-
Verify with docker ps → Docker is running
-
Create a bootable image on the SD card
-
Remove the Docker containers using docker rm -f $(docker ps -aq)
-
Verify with docker ps -a → no containers present
-
Restart the PSC300 → the image on the SD card is restored
-
Verify with docker ps → Docker container is running
-
Power off the PSC300 and replace the SD card with an empty one
-
Restart the PSC300
-
Verify Docker → no Docker containers are present
When I change or remove the SD card, the container is removed.
Probably my procedure is wrong, but I don’t understand where the issue is.
Do you have any ideas?
Thanks a lot.
hello you forgot the step to reinstall the system from the SD card (aka copy from the SD card to the internal flash)
Many thanks.
I used the same procedure that I used to prepare the SD card, setting Boot device = Memory Card and Destination = Internal Flash.
The system is now working correctly.
Question:
Is it possible to achieve the same result via the network?
I tried using WAGO Upload and the Backup and Restore function, but the Docker container is not restored.
regards