Have you read a contributing guide?
Current Behavior
According to the description at Configuration,
"If you need to connect external clients, please add 'EXTERNAL_LISTEN_HOSTS' in the .env.override file."
However, in reality, the EXTERNAL_LISTEN_HOST="127.0.0.1" parameter still exists in .env.default. This results in the generated client.yml containing content similar to the following:
- addresses:
- any-sync-node-1:1001
- quic://any-sync-node-1:1011
- my:server:ip:here:1001
- quic://my:server:ip:here:1011
- 127.0.0.1:1001
- quic://127.0.0.1:1011
When the client loads the client.yml configuration file and attempts to create a new space, images fail to synchronize. The developer console shows a 500 error similar to the following:
bafyreic5wofjuzj52wruunuczjhdd4f6tcjjr67nvniv25p3urb7bgw37u:1
GET http://127.0.0.1:47800/image/bafyreic5wofjuzj52wruunuczjhdd4f6tcjjr67nvniv25p3urb7bgw37u?width=1920 500 (Internal Server Error)
Image
kk @ main.js?0.8319832979224048:121292
ik @ main.js?0.8319832979224048:121290
hk @ main.js?0.8319832979224048:121289
Wk @ main.js?0.8319832979224048:121313
Pk @ main.js?0.8319832979224048:121311
Ek @ main.js?0.8319832979224048:121303
jg @ main.js?0.8319832979224048:121158
Wk @ main.js?0.8319832979224048:121313
Pk @ main.js?0.8319832979224048:121311
Gk @ main.js?0.8319832979224048:121300
performWorkUntilDeadline @ main.js?0.8319832979224048:121652
If the sections containing 127.0.0.1 are removed from theclient.yml, synchronization functions normally.
I believe there are two issues here:
First, the description of the "EXTERNAL_LISTEN_HOSTS" is misleading. It is not a parameter for configuring the server to listen on a specific port in the traditional sense; rather, it is used to inform the client of the server address. The variable name is ambiguous.
Second, the description only mentions adding the "HOSTS" parameter but does not specify how to adjust the "HOST" parameter. Regardless, this ultimately leads to the generated configuration file containing the "127.0.0.1" field, causing synchronization failure for the client.
I am not a Docker expert nor deeply familiar with this project's code, but I suspect other users may have encountered this issue, possibly related to #148 .
Expected Behavior
-
Update the description in Configuration to more precisely explain how to configure EXTERNAL_LISTEN_HOSTS and EXTERNAL_LISTEN_HOST.
-
If possible, rename the EXTERNAL_LISTEN_HOSTS field to better reflect its purpose, as it is not truly about external listening.
-
Consider adjusting the generation of client.yml to avoid including the "127.0.0.1" field in configurations for third-party servers, which ultimately leads to synchronization issues.
Steps To Reproduce
- Deploy this on a third party cloud server.
- Add "EXTERNAL_LISTEN_HOSTS"="Your.Server.IP.Here" to
.env.override
- Use
make start command to start compose.
- Check
./etc/client.yml and see there are "127.0.0.1" inside.
- Download configure file and load to local client.
- Try to create a new space.
- Notice image sync failed. Wait for some time and check the devtool errors info.
500 (Internal Server Error)
Environment
- Cloud Service Provider: Alibaba Cloud
- OS: Ubuntu 24.04
- Any-Sync_DockerCompose Version: 6.4.0
Anything else?
No response
Have you read a contributing guide?
Current Behavior
According to the description at Configuration,
However, in reality, the
EXTERNAL_LISTEN_HOST="127.0.0.1"parameter still exists in.env.default. This results in the generated client.yml containing content similar to the following:When the client loads the
client.ymlconfiguration file and attempts to create a new space, images fail to synchronize. The developer console shows a 500 error similar to the following:If the sections containing
127.0.0.1are removed from theclient.yml, synchronization functions normally.I believe there are two issues here:
First, the description of the "EXTERNAL_LISTEN_HOSTS" is misleading. It is not a parameter for configuring the server to listen on a specific port in the traditional sense; rather, it is used to inform the client of the server address. The variable name is ambiguous.
Second, the description only mentions adding the "HOSTS" parameter but does not specify how to adjust the "HOST" parameter. Regardless, this ultimately leads to the generated configuration file containing the "127.0.0.1" field, causing synchronization failure for the client.
I am not a Docker expert nor deeply familiar with this project's code, but I suspect other users may have encountered this issue, possibly related to #148 .
Expected Behavior
Update the description in Configuration to more precisely explain how to configure
EXTERNAL_LISTEN_HOSTSandEXTERNAL_LISTEN_HOST.If possible, rename the
EXTERNAL_LISTEN_HOSTSfield to better reflect its purpose, as it is not truly about external listening.Consider adjusting the generation of
client.ymlto avoid including the "127.0.0.1" field in configurations for third-party servers, which ultimately leads to synchronization issues.Steps To Reproduce
.env.overridemake startcommand to start compose../etc/client.ymland see there are "127.0.0.1" inside.500 (Internal Server Error)Environment
Anything else?
No response