Open piccadil opened 2 years ago
There is probably a problem with those config files, so somebody with more docker experience should chime in.
Could also be a problem with the host?
You should probably try to add some diagnostic logging in entrypoint.sh. It looks like some problem with
volumes:
- /home/user/docker-vols/stellar/core/:/stellar/buckets/
I would try to replace it with something like
#!/bin/bash
ls -al /stellar/buckets/
mkdir /stellar/buckets/testfolder
touch /stellar/buckets/testfolder/somefile
rm -rf /stellar/buckets/testfolder
ls -al /stellar/buckets/
exec "$@"
@MonsieurNicolas thanks for answer. I've a lot of other services and blockchain nodes running with docker volume. Please find a log of the new entrypoint.sh, that you provided earlier:
#!/bin/bash
ls -al /stellar/buckets/
mkdir /stellar/buckets/testfolder
touch /stellar/buckets/testfolder/somefile
rm -rf /stellar/buckets/testfolder
ls -al /stellar/buckets/
exec "$@"
The logs:
stellar | total 8
stellar | drwxrwxrwx 2 stellar stellar 4096 Jun 27 10:58 .
stellar | drwxr-xr-x 1 root root 4096 Jul 4 06:10 ..
stellar | total 8
stellar | drwxrwxrwx 2 stellar stellar 4096 Jul 4 06:10 .
stellar | drwxr-xr-x 1 root root 4096 Jul 4 06:10 ..
postgresql-core_1 | 2022-07-04 06:10:25.991 UTC [19] LOG: database system was shut down at 2022-06-27 11:02:02 UTC
postgresql-core_1 | 2022-07-04 06:10:26.000 UTC [1] LOG: database system is ready to accept connections
stellar | 2022-07-04T06:10:36.673 [default INFO] Config from /stellar/stellar-core.cfg
stellar | 2022-07-04T06:10:36.677 [default INFO] Generated QUORUM_SET: {
stellar | "t" : 2,
stellar | "v" : [ "sdf_testnet_2", "sdf_testnet_3", "sdf_testnet_1" ]
stellar | }
stellar |
stellar | 2022-07-04T06:10:36.685 GAHTJ [default INFO] Application destructing
stellar | 2022-07-04T06:10:36.686 GAHTJ [default INFO] Application destroyed
stellar | 2022-07-04T06:10:36.687 GAHTJ [default FATAL] Got an exception: filesystem error: in remove_all: Device or resource busy [/stellar/buckets/]
stellar | 2022-07-04T06:10:36.687 GAHTJ [default FATAL] Please report this bug along with this log file if this was not expected
stellar exited with code 1
Do we have any update for Device or resource busy when mount BUCKET_DIR_PATH using docker container. We are facing this on this version also: stellar-core 20.0.2 (669916b56106a72a7f79ab8b4a7898e77b28b49e)
I have an issue with mounting a docker volume to stellar-core node. I've written own dockerfile on top of the official image from docker hub and docker-compose file. After starting, stellar-core connects to db, but I'm getting an error:
Dockerfile:
entrypoint.sh :
docker-compose file:
stellar config: