Closed kuschzzp closed 1 month ago
code 137. It's been killed for lack of memory, may be.
code 137. It's been killed for lack of memory, may be.
The memory is enough, is there a way to display the detailed log
M1 MacBook cpu is arm. Which ragflow image are you using?
M1 MacBook cpu is arm. Which ragflow image are you using?
Launch the RAGFlow Backend Service From Source
i use this docker-compose-base.yml
deploy es,redis...... on my virtual machine. centos9
services:
es01:
container_name: ragflow-es-01
image: elasticsearch:8.11.3
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
environment:
- node.name=es01
- ELASTIC_PASSWORD=infini_rag_flow
- bootstrap.memory_lock=false
- discovery.type=single-node
- xpack.security.enabled=true
- xpack.security.http.ssl.enabled=false
- xpack.security.transport.ssl.enabled=false
- TZ='Asia/Shanghai'
mem_limit: 8073741824
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:9200"]
interval: 10s
timeout: 10s
retries: 120
networks:
- ragflow
restart: always
mysql:
# mysql:5.7 linux/arm64 image is unavailable.
image: mysql:8.0.39
container_name: ragflow-mysql
environment:
- MYSQL_ROOT_PASSWORD=infini_rag_flow
- TZ='Asia/Shanghai'
command:
--max_connections=1000
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--default-authentication-plugin=mysql_native_password
--tls_version="TLSv1.2,TLSv1.3"
--init-file /data/application/init.sql
ports:
- 3306:3306
volumes:
- mysql_data:/var/lib/mysql
- ./init.sql:/data/application/init.sql
networks:
- ragflow
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-pinfini_rag_flow"]
interval: 10s
timeout: 10s
retries: 3
restart: always
minio:
image: quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
container_name: ragflow-minio
command: server --console-address ":9001" /data
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=rag_flow
- MINIO_ROOT_PASSWORD=infini_rag_flow
- TZ='Asia/Shanghai'
volumes:
- minio_data:/data
networks:
- ragflow
restart: always
redis:
image: redis:7.2.4
container_name: ragflow-redis
command: redis-server --requirepass infini_rag_flow --maxmemory 128mb --maxmemory-policy allkeys-lru
ports:
- 6379:6379
volumes:
- redis_data:/data
networks:
- ragflow
restart: always
volumes:
esdata01:
driver: local
mysql_data:
driver: local
minio_data:
driver: local
redis_data:
driver: local
networks:
ragflow:
driver: bridge
And i follow https://ragflow.io/docs/dev/launch_ragflow_from_source
run by bash docker/entrypoint.sh
Where did you run bash docker/entrypoint.sh
, on M1 macbook
, or the linux vm 10.211.55.13
?
We don't have M1 macbook
. However I confirm that this procedure work on linux/amd64
and linux/arm64
.
Where did you run
bash docker/entrypoint.sh
, onM1 macbook
, or the linux vm10.211.55.13
? We don't haveM1 macbook
. However I confirm that this procedure work onlinux/amd64
andlinux/arm64
.
on M1 macbook
spec.loader.exec_module(page)
that fails when conversation_app.py
is loaded。service_conf.yaml
file:
ragflow:
host: 127.0.0.1
http_port: 9380
mysql:
name: 'rag_flow'
user: 'root'
password: 'infini_rag_flow'
host: '10.211.55.13'
port: 3306
max_connections: 100
stale_timeout: 30
minio:
user: 'rag_flow'
password: 'infini_rag_flow'
host: '10.211.55.13:9000'
es:
hosts: 'http://10.211.55.13:9200'
username: 'elastic'
password: 'infini_rag_flow'
redis:
db: 1
password: 'infini_rag_flow'
host: '10.211.55.13:6379'
How frequent does the issue happen? There could be some clue inside the system log on why the process be killed.
I removed all the environments and code, and re-pulled the code and configured the environment to run successfully.
Describe your problem
Here are all the console outputs:
10.211.55.13 es01 mysql minio redis
to /ect/hosts.10.211.55.13
is my virtual machine address。entrypoint.sh
environment :
M1 macbook