replica 0 write failed: http://localhost:3001/sv07/60/08/L3dlaGF2ZQ==
pathbox opened this issue · comments
Cary commented
Hi,
I do this: curl -v -L -X PUT -d bigswag lo:3000/wehave, and server print: replica 0 write failed: http://localhost:3001/sv07/60/08/L3dlaGF2ZQ==
then I go on: curl -v -L localhost:3000/bigswag or curl -v -L localhost:3000/wehave
the result is:
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> GET /wehave HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:3000
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 0
< Date: Sun, 31 Jan 2021 08:24:09 GMT
<
* Connection #0 to host localhost left intact
I can't get the right value,
Could you tell me what is wrong, please?
flyysr commented
I also has this error, is anyone an give me a help?
flyysr commented
I solved this problem.
- first, you should start the nginx under the hood by following commands:
PORT=3001 ./volume /tmp/volume1/ &;
PORT=3002 ./volume /tmp/volume2/ &;
PORT=3003 ./volume /tmp/volume3/ &;
Cary commented
I solved this problem.
- first, you should start the nginx under the hood by following commands:
PORT=3001 ./volume /tmp/volume1/ &;
PORT=3002 ./volume /tmp/volume2/ &;
PORT=3003 ./volume /tmp/volume3/ &;
I test in my local environment: my Macbook, It didn't run nginx, you means I need to run nginx?
Enrico Vecchio commented
Create a start.sh file
#!/bin/bash
PORT=3001 ./volume /tmp/volume1/ &
PORT=3002 ./volume /tmp/volume2/ &
PORT=3003 ./volume /tmp/volume3/ &
./mkv -volumes localhost:3001,localhost:3002,localhost:3003 -db /tmp/indexdb/ server
Than update Docker file by adding:
COPY tools/* mkv/tools/
COPY start.sh mkv/
WORKDIR /mkv
RUN chmod +x /mkv/start.sh
CMD ./start.sh