OpenBMB / XAgent

An Autonomous LLM Agent for Complex Task Solving
https://blog.x-agent.net/blog/xagent/
Apache License 2.0
7.82k stars 795 forks source link

failed to mount local volume: mount ./assets/config:/var/lib/docker/volumes/toolserverconfig/_data, flags: 0x1000: no such file or directory #331

Closed loche666 closed 6 months ago

loche666 commented 6 months ago

failed to mount local volume: mount ./assets/config:/var/lib/docker/volumes/toolserverconfig/_data, flags: 0x1000: no such file or directory

[System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock Error response from daemon: error while mounting volume '/var/lib/docker/volumes/toolserverconfig/_data': failed to mount local volume: mount ./assets/config:/var/lib/docker/volumes/toolserverconfig/_data, flags: 0x1000: no such file or directory

Steps to Reproduce

1、拉取相关镜像 2、进入项目根目录执行 docker-compose up 3、启动过程中报错 Please provide the specific steps to reproduce the error. / 请提供复现错误的具体步骤。

Expected Behavior 正常启动Xagent server

Describe the behavior you expected to see. / 请描述您期望的正确行为。

Environment / 环境信息

Error Screenshots or Logs / 错误截图或日志

If possible, please provide relevant screenshots or logs of the error.

```bash (xagent) root@ubuntu:/home/ubuntu/chenl/projects/XAgent# docker-compose up [+] Running 7/7 ⠿ Network tool-server-network Created 0.1s ⠿ Container xagent-db-1 Created 2.3s ⠿ Container xagent-xagent-redis-1 Created 2.3s ⠿ Container xagent-ToolServerNode-1 Created 2.3s ⠿ Container xagent-xagent-mysql-1 Created 2.3s ⠿ Container xagent-ToolServerManager-1 Created 0.2s ⠿ Container XAgent-Server Created 0.2s Attaching to XAgent-Server, xagent-ToolServerManager-1, xagent-ToolServerNode-1, xagent-db-1, xagent-xagent-mysql-1, xagent-xagent-redis-1 xagent-xagent-mysql-1 | 2023-12-12 01:38:53+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.2.0-1.el8 started. xagent-xagent-redis-1 | 1:C 12 Dec 2023 01:38:53.572 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. xagent-xagent-redis-1 | 1:C 12 Dec 2023 01:38:53.572 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo xagent-xagent-redis-1 | 1:C 12 Dec 2023 01:38:53.572 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started xagent-xagent-redis-1 | 1:C 12 Dec 2023 01:38:53.572 * Configuration loaded xagent-xagent-redis-1 | 1:M 12 Dec 2023 01:38:53.573 * monotonic clock: POSIX clock_gettime xagent-xagent-redis-1 | 1:M 12 Dec 2023 01:38:53.576 * Running mode=standalone, port=6379. xagent-xagent-redis-1 | 1:M 12 Dec 2023 01:38:53.579 * Server initialized xagent-xagent-redis-1 | 1:M 12 Dec 2023 01:38:53.580 * Ready to accept connections tcp xagent-xagent-mysql-1 | 2023-12-12 01:38:53+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' xagent-xagent-mysql-1 | 2023-12-12 01:38:54+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.2.0-1.el8 started. xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.201+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.204+00:00"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"main","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.205+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"REPL", "id":5123008, "ctx":"main","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"main","msg":"Multi threading initialized"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"TENANT_M", "id":7091600, "ctx":"main","msg":"Starting TenantMigrationAccessBlockerRegistry"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"b11aa3c69c15"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"7.0.4","gitVersion":"38f3e37057a43d2e9f41a39142681a76062d582e","openSSLVersion":"OpenSSL 3.0.2 15 Mar 2022","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu2204","distarch":"x86_64","target_arch":"x86_64"}}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"22.04"}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.207+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"},"security":{"authorization":"enabled"}}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.208+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.209+00:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:54.209+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=63765M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,remove=true,path=journal,compressor=snappy),builtin_extension_config=(zstd=(compression_level=6)),file_manager=(close_idle_time=600,close_scan_interval=10,close_handle_minimum=2000),statistics_log=(wait=0),json_output=(error,message),verbose=[recovery_progress:1,checkpoint_progress:1,compact_progress:1,backup:0,checkpoint:0,compact:0,evict:0,history_store:0,recovery:0,rts:0,salvage:0,tiered:0,timestamp:0,transaction:0,verify:0,log:0],"}} xagent-xagent-mysql-1 | 2023-12-12 01:38:54+00:00 [Note] [Entrypoint]: Initializing database files xagent-xagent-mysql-1 | 2023-12-12T01:38:54.390288Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start. xagent-xagent-mysql-1 | 2023-12-12T01:38:54.393996Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. xagent-xagent-mysql-1 | 2023-12-12T01:38:54.394175Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.2.0) initializing of server in progress as process 80 xagent-xagent-mysql-1 | 2023-12-12T01:38:54.409239Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.632+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":1423}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.632+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.699+00:00"},"s":"W", "c":"CONTROL", "id":22167, "ctx":"initandlisten","msg":"You are running on a NUMA machine. We suggest launching mongod like this to avoid performance problems: numactl --interleave=all mongod [other options]","tags":["startupWarnings"]} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.699+00:00"},"s":"W", "c":"CONTROL", "id":5123300, "ctx":"initandlisten","msg":"vm.max_map_count is too low","attr":{"currentValue":65530,"recommendedMinimum":1677720,"maxConns":838860},"tags":["startupWarnings"]} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.730+00:00"},"s":"I", "c":"NETWORK", "id":4915702, "ctx":"initandlisten","msg":"Updated wire specification","attr":{"oldSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":21},"outgoing":{"minWireVersion":6,"maxWireVersion":21},"isInternalClient":true},"newSpec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":21},"incomingInternalClient":{"minWireVersion":21,"maxWireVersion":21},"outgoing":{"minWireVersion":21,"maxWireVersion":21},"isInternalClient":true}}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.731+00:00"},"s":"I", "c":"REPL", "id":5853300, "ctx":"initandlisten","msg":"current featureCompatibilityVersion value","attr":{"featureCompatibilityVersion":"7.0","context":"startup"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.731+00:00"},"s":"I", "c":"STORAGE", "id":5071100, "ctx":"initandlisten","msg":"Clearing temp directory"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.738+00:00"},"s":"I", "c":"CONTROL", "id":6608200, "ctx":"initandlisten","msg":"Initializing cluster server parameters from disk"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.738+00:00"},"s":"I", "c":"CONTROL", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.739+00:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.802+00:00"},"s":"I", "c":"REPL", "id":6015317, "ctx":"initandlisten","msg":"Setting new configuration state","attr":{"newState":"ConfigReplicationDisabled","oldState":"ConfigPreStart"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.802+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.805+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.805+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}} xagent-db-1 | {"t":{"$date":"2023-12-12T01:38:55.805+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}} xagent-xagent-mysql-1 | 2023-12-12T01:38:56.988014Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. xagent-xagent-mysql-1 | 2023-12-12T01:39:02.372634Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option. ]xagent-xagent-mysql-1 | 2023-12-12T01:39:13.504482Z 0 [System] [MY-015018] [Server] MySQL Server Initialization - end. xagent-xagent-mysql-1 | 2023-12-12 01:39:13+00:00 [Note] [Entrypoint]: Database files initialized xagent-xagent-mysql-1 | 2023-12-12 01:39:13+00:00 [Note] [Entrypoint]: Starting temporary server xagent-xagent-mysql-1 | 2023-12-12T01:39:13.614702Z 0 [System] [MY-015015] [Server] MySQL Server - start. xagent-xagent-mysql-1 | 2023-12-12T01:39:13.922773Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. xagent-xagent-mysql-1 | 2023-12-12T01:39:13.925499Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.2.0) starting as process 124 xagent-xagent-mysql-1 | 2023-12-12T01:39:13.965836Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. xagent-xagent-mysql-1 | 2023-12-12T01:39:14.405245Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. xagent-xagent-mysql-1 | 2023-12-12T01:39:15.027638Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. xagent-xagent-mysql-1 | 2023-12-12T01:39:15.027710Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. xagent-xagent-mysql-1 | 2023-12-12T01:39:15.038387Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. xagent-xagent-mysql-1 | 2023-12-12T01:39:15.071523Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.2.0' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL. xagent-xagent-mysql-1 | 2023-12-12T01:39:15.071555Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock xagent-xagent-mysql-1 | 2023-12-12T01:39:15.076328Z 0 [System] [MY-015016] [Server] MySQL Server - end. xagent-xagent-mysql-1 | 2023-12-12 01:39:15+00:00 [Note] [Entrypoint]: Temporary server started. xagent-xagent-mysql-1 | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it. xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it. xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it. xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it. xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it. xagent-xagent-mysql-1 | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it. xagent-xagent-mysql-1 | xagent-xagent-mysql-1 | 2023-12-12 01:39:20+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/create_mysql_table.sql xagent-xagent-mysql-1 | xagent-xagent-mysql-1 | xagent-xagent-mysql-1 | 2023-12-12 01:39:21+00:00 [Note] [Entrypoint]: Stopping temporary server xagent-xagent-mysql-1 | 2023-12-12T01:39:21.562828Z 11 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.2.0). xagent-xagent-mysql-1 | 2023-12-12T01:39:24.904748Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.2.0) MySQL Community Server - GPL. xagent-xagent-mysql-1 | 2023-12-12T01:39:24.915283Z 0 [System] [MY-015016] [Server] MySQL Server - end. xagent-xagent-mysql-1 | 2023-12-12 01:39:25+00:00 [Note] [Entrypoint]: Temporary server stopped xagent-xagent-mysql-1 | xagent-xagent-mysql-1 | 2023-12-12 01:39:25+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up. xagent-xagent-mysql-1 | xagent-xagent-mysql-1 | 2023-12-12T01:39:25.600721Z 0 [System] [MY-015015] [Server] MySQL Server - start. xagent-xagent-mysql-1 | 2023-12-12T01:39:25.880720Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. xagent-xagent-mysql-1 | 2023-12-12T01:39:25.882604Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.2.0) starting as process 1 xagent-xagent-mysql-1 | 2023-12-12T01:39:25.890534Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.375878Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.866534Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.866580Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.876116Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.909036Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.2.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL. xagent-xagent-mysql-1 | 2023-12-12T01:39:26.909031Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock Error response from daemon: error while mounting volume '/var/lib/docker/volumes/toolserverconfig/_data': failed to mount local volume: mount ./assets/config:/var/lib/docker/volumes/toolserverconfig/_data, flags: 0x1000: no such file or directory ```

Additional Notes / 其他备注

已尝试修改过docker-compose yml文件的volumes,将./assets/config相对路径改为绝对路径,并执行docker-compose down/up,依旧不好用

Umpire2018 commented 6 months ago

Can you contact me here? We can schedule a meeting to locate the problem.

sxzq46 commented 6 months ago

最后是这么解决的?

sxzq46 commented 6 months ago

@Umpire2018

Umpire2018 commented 6 months ago

@sxzq46 您可以在以上的邮件地址联系到我,我们可以预约一个会议来进行远程排障。

NUSthb commented 1 month ago

请问问题解决了吗