After rebuilding the container, the agent configuration is lost #116

Closed
opened 2025-12-29 14:25:11 +01:00 by adam · 5 comments
Owner

Originally created by @death4444 on GitHub (Oct 29, 2025).

Image As shown in the figure, after configuring the agent But if you rebuild it, this container

frontend:
image: ghcr.io/yusing/godoxy-frontend:${TAG:-latest}
container_name: godoxy-frontend
Image

The agent list will be lost, but agent information will still be present in config
Like this
Image
Image

I guess the data in the agent list has not been mapped to the host machine and has not been persisted, resulting in data loss when the container is recreated!

Where is the Servers-agent list data stored?

Originally created by @death4444 on GitHub (Oct 29, 2025). <img width="1326" height="762" alt="Image" src="https://github.com/user-attachments/assets/c586bb32-81ed-4896-84aa-63289c0cb643" /> As shown in the figure, after configuring the agent But if you rebuild it, this container frontend: image: ghcr.io/yusing/godoxy-frontend:${TAG:-latest} container_name: godoxy-frontend <img width="409" height="299" alt="Image" src="https://github.com/user-attachments/assets/c975b860-511d-43ff-8c7f-2ff8980817bb" /> The agent list will be lost, but agent information will still be present in config Like this <img width="635" height="426" alt="Image" src="https://github.com/user-attachments/assets/43857313-11c3-41b1-b3e9-a4d4a7e0ac6b" /> <img width="783" height="363" alt="Image" src="https://github.com/user-attachments/assets/60ec2875-d3f4-45ff-824a-3a4d7d67337d" /> I guess the data in the agent list has not been mapped to the host machine and has not been persisted, resulting in data loss when the container is recreated! Where is the Servers-agent list data stored?
adam closed this issue 2025-12-29 14:25:11 +01:00
Author
Owner

@yusing commented on GitHub (Oct 29, 2025):

Check for GoDoxy's log and see if there's any error initializing that agent.

Where is the Servers-agent list data stored?

It is not stored anywhere, every time the program starts, it initializes from the agents list.

@yusing commented on GitHub (Oct 29, 2025): Check for GoDoxy's log and see if there's any error initializing that agent. > Where is the Servers-agent list data stored? It is not stored anywhere, every time the program starts, it initializes from the `agents` list.
Author
Owner

@yusing commented on GitHub (Oct 29, 2025):

You need these folders mounted: certs, data, config, agent TLS client certs are stored in certs. I guess that's why you lost the agent when you restart the container.

@yusing commented on GitHub (Oct 29, 2025): You need these folders mounted: `certs`, `data`, `config`, agent TLS client certs are stored in `certs`. I guess that's why you lost the agent when you restart the container.
Author
Owner

@death4444 commented on GitHub (Oct 30, 2025):

You need these folders mounted: , , , agent TLS client certs are stored in . I guess that's why you lost the agent when you restart the container.certs``data``config``certs

Image

Because my https certificate is self-signed in other tools,
according to your compose prompt "remove "./ certs:/app/certs" and comment below to use existing certificate",
so I deleted the mapping of the/app/certs directory and directly mapped the certificate file.
I guess this should be the problem.
I'll give it a try and wait for my feedback

@death4444 commented on GitHub (Oct 30, 2025): > You need these folders mounted: , , , agent TLS client certs are stored in . I guess that's why you lost the agent when you restart the container.`certs``data``config``certs` <img width="653" height="299" alt="Image" src="https://github.com/user-attachments/assets/799c5c2f-246f-48dd-a8ab-b904e37c2e06" /> Because my https certificate is self-signed in other tools, according to your compose prompt "remove "./ certs:/app/certs" and comment below to use existing certificate", so I deleted the mapping of the/app/certs directory and directly mapped the certificate file. I guess this should be the problem. I'll give it a try and wait for my feedback
Author
Owner

@death4444 commented on GitHub (Oct 30, 2025):

Image This is it!!! Great, it's working! thanks!!
@death4444 commented on GitHub (Oct 30, 2025): <img width="511" height="373" alt="Image" src="https://github.com/user-attachments/assets/7c0f384a-acb7-4661-afc0-1bf3ade4c63f" /> This is it!!! Great, it's working! thanks!!
Author
Owner

@yusing commented on GitHub (Oct 30, 2025):

You need these folders mounted: , , , agent TLS client certs are stored in . I guess that's why you lost the agent when you restart the container. certsdataconfigcerts ``

Image

Because my https certificate is self-signed in other tools, according to your compose prompt "remove "./ certs:/app/certs" and comment below to use existing certificate", so I deleted the mapping of the/app/certs directory and directly mapped the certificate file. I guess this should be the problem. I'll give it a try and wait for my feedback

Ahh sry for the confusion, that part hasn't been updated for a while. Updated just now, thanks.

@yusing commented on GitHub (Oct 30, 2025): > > You need these folders mounted: , , , agent TLS client certs are stored in . I guess that's why you lost the agent when you restart the container.`` certs``data``config``certs `` > > <img alt="Image" width="653" height="299" src="https://private-user-images.githubusercontent.com/26320543/507391192-799c5c2f-246f-48dd-a8ab-b904e37c2e06.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjE3OTYyNzUsIm5iZiI6MTc2MTc5NTk3NSwicGF0aCI6Ii8yNjMyMDU0My81MDczOTExOTItNzk5YzVjMmYtMjQ2Zi00OGRkLWE4YWItYjkwNGUzN2MyZTA2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTEwMzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMDMwVDAzNDYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJhMTk5NGRmMDdmNGIwMDBmZWVjZTRhNzNhMjI0NzViNjVhZjk1Y2RiMmFhZmEyYmRkN2M2NmI3Yzc3OTRiMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RMJ1eY2F2FUkYqIS3faCwgm7AKNCoVpztjTff7kKMOI"> > > Because my https certificate is self-signed in other tools, according to your compose prompt "remove "./ certs:/app/certs" and comment below to use existing certificate", so I deleted the mapping of the/app/certs directory and directly mapped the certificate file. I guess this should be the problem. I'll give it a try and wait for my feedback Ahh sry for the confusion, that part hasn't been updated for a while. Updated just now, thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy-yusing#116