minikeyvalue icon indicating copy to clipboard operation
minikeyvalue copied to clipboard

replica 0 write failed: http://localhost:3001/sv07/60/08/L3dlaGF2ZQ==

Open pathbox opened this issue 3 years ago • 4 comments

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?

pathbox avatar Jan 31 '21 08:01 pathbox

I also has this error, is anyone an give me a help?

flyysr avatar Apr 02 '21 06:04 flyysr

I solved this problem.

  1. 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/ &;

flyysr avatar Apr 02 '21 07:04 flyysr

I solved this problem.

  1. 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?

pathbox avatar Apr 03 '21 03:04 pathbox

@pathbox

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

enryold avatar May 29 '21 13:05 enryold