SciPhi-AI/R2R

r2r serve --docker --config-name=default nothing happened

Closed this issue · 10 comments

r2r serve --docker --config-name=default
Starting Docker Compose setup...
unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage: docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
run Create and run a new container from an image
exec Execute a command in a running container
ps List containers
build Build an image from a Dockerfile
pull Download an image from a registry
push Upload an image to a registry
images List images
login Log in to a registry
logout Log out from a registry
search Search Docker Hub for images
version Show the Docker version information
info Display system-wide information

Management Commands:
builder Manage builds
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
plugin Manage plugins
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes

Swarm Commands:
swarm Manage Swarm

Commands:
attach Attach local standard input, output, and error streams to a running container
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
export Export a container's filesystem as a tar archive
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
wait Block until one or more containers stop, then print their exit codes

Global Options:
--config string Location of client config files (default "/home/redel/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST
env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket to connect to
-l, --log-level string Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/home/redel/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/home/redel/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/home/redel/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit

Run 'docker COMMAND --help' for more information on a command.

For more help on how to use Docker, head to https://docs.docker.com/go/guides/

Navigating to dashboard in 3 seconds...
Navigating to dashboard in 2 seconds...
Navigating to dashboard in 1 seconds...
Opening browser to http://localhost:8001> Hi,

I cloned repo and installed r2r to a clean machine.

r2r serve --docker --config-name=default

doesn't dw or start any docker images/container.

here:

I just tested and could not replicate. To be certain I was running in a new environment I cloned the Github directory (which should be synced with the latest release) and used poetry. Here is my command stack below -

git clone git@github.com:SciPhi-AI/R2R.git r2r
cd r2r/py
poetry install
poetry shell


% (r2r-py3.10) which r2r
% my_root/pypoetry/virtualenvs/r2r-o33_k66G-py3.10/bin/r2r

r2r serve --docker --config-name=default

Output:

Warning: Subnet conflict detected with network 'r2r-network' using subnet 172.28.0.0/16
This may cause issues when starting the Docker setup.
Do you want to continue? [Y/n]: Y
Warning: Port 8000 is in use. Using 8001
Starting Docker Compose setup...
[+] Running 5/5
 ✔ Container r2r-postgres-1       Healthy                                                                                                                                0.0s 
 ✔ Container r2r-traefik-1        Started                                                                                                                                0.6s 
 ✔ Container r2r-neo4j-1          Healthy                                                                                                                                0.0s 
 ✔ Container r2r-r2r-1            Started                                                                                                                                1.1s 
 ✔ Container r2r-r2r-dashboard-1  Started                                                                                                                                1.0s 
Navigating to dashboard in 3 seconds...
Navigating to dashboard in 2 seconds...
Navigating to dashboard in 1 seconds...
Opening browser to http://localhost:8002
```bash


Can you attempt this exact command sequence and report back? If you continue to fail, could you report your OS / CPU and any other details.

@emrgnt-cmplxty

I cloned from the site and removed all images caches re download docker images.

it started but cant login
Screen Shot 2024-08-28 at 20 02 42

@emrgnt-cmplxty

I seperatelly started dashboard and now its logged. !

but cnat get documents and when I upload doc:

error:
Screen Shot 2024-08-28 at 20 35 56

I believe you have a stale volume that needs to be cleaned, can you delete your old volume in Docker and then try again?

I have other images so how I can do this ? I used docker rmi and prune .

can you suggest a way ?

Screenshot 2024-08-28 at 11 30 49 AM
This volume in docker, alternatively yo should be able to change your POSTGRES_VECS_COLLECTION

changed POSTGRES_VECS_COLLECTION now its accept file upload.. make search but still shows document list empty

that's unexpected, can you try ingesting the sample file as per hte walkthrough to confirm the system is fully operational?

The original issue was fixed with a hotfix today, thx again for flagging.