Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pathbox opened this issue Jan 31, 2021 · 4 comments
Open

Comments

@pathbox
Copy link

pathbox commented Jan 31, 2021

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
Copy link

flyysr commented Apr 2, 2021

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

@flyysr
Copy link

flyysr commented Apr 2, 2021

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

@pathbox
Copy link
Author

pathbox commented Apr 3, 2021

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?

@enryold
Copy link

enryold commented May 29, 2021

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants