senx / warp10-docker

Apache License 2.0
20 stars 16 forks source link

Backup no longer work with the ng-2 flavour ? #124

Closed nsteinmetz closed 1 year ago

nsteinmetz commented 1 year ago

Hi there,

Seems we cannot do backups with docker image (it worked with previous image)

❯ docker run -d --name warp10 warp10io/warp10:2.11.1-ng-2-ubuntu

❯ docker exec -ti warp10 bash                                   
root@cc5da60cf574:/opt/warp10-2.11.1# /opt/warp10/bin/warp10-standalone.init snapshot toto
No Warp 10 instance is currently running !

root@cc5da60cf574:/opt/warp10-2.11.1# /opt/warp10/bin/snapshot.sh toto
You must be warp10 to run this script.

❯ docker exec -u warp10 -ti warp10 bash
warp10@cc5da60cf574:/opt/warp10-2.11.1$ /opt/warp10/bin/warp10-standalone.init snapshot toto
You must be root to run '/opt/warp10/bin/warp10-standalone.init'

warp10@cc5da60cf574:/opt/warp10-2.11.1/bin$ /opt/warp10/bin/snapshot.sh toto
No Warp 10 instance is currently running !

@steven-gueguen any idea on this ?

stggn commented 1 year ago

There is an issue with this image which does not create a pid file for Warp 10. This has been fixed.

However, in 3.x, the snapshot script has been deleted. Use the dedicated WarpScript functions instead.