Open stonegray opened 1 year ago
There are instructions in the README (cf "running this image with docker-compose"). Though they it be improved, a few things I can already mention based on your description:
images
directory, not to run docker imagesCan you try first with the instructions mentioned and with version 11?
Is your feature request related to a problem? Please describe. I can't figure out how to install this. I feel like I've tried everything.
By brute-force trying everything (
find -name "docker-compose*" | xargs -I{} docker compose -f {} up
) I found that I can get some of them to boot up, but not function.Describe the solution you'd like
A clear and concise description of how to install
What I've tried
Platform:
Running
./template/docker-compose_postgres.yml
: Gives this error:Expand log
``` root@saffron:~/erp/docker-erpnext/template# docker compose up [+] Running 26/26 ⠿ erpnext_redis_queue Pulled 10.4s ⠿ 8921db27df28 Already exists 0.0s ⠿ aa0a0152d355 Pull complete 1.8s ⠿ 402c460b24b7 Pull complete 2.9s ⠿ 2a51e6c2ffd9 Pull complete 4.2s ⠿ b0ff5e2bc6cc Pull complete 4.9s ⠿ 976b5457593c Pull complete 6.4s ⠿ erpnext_redis_cache Pulled 10.5s ⠿ erpnext_web Pulled 14.2s ⠿ 83e90619bc2e Pull complete 3.5s ⠿ d52adec6f48b Pull complete 5.2s ⠿ 10eb2ce358fa Pull complete 6.4s ⠿ a1be370d6a52 Pull complete 6.9s ⠿ 689b9959905b Pull complete 7.8s ⠿ c7a81ce22aac Pull complete 9.4s ⠿ erpnext_redis_socketio Pulled 10.2s ⠿ erpnext_db Pulled 14.0s ⠿ ca7dd9ec2225 Already exists 0.0s ⠿ 126ca7716c09 Pull complete 1.4s ⠿ 72a45366ffb3 Pull complete 1.9s ⠿ fe5f8c70e89a Pull complete 6.3s ⠿ f2b8bcd3cdb2 Pull complete 6.9s ⠿ 6c83c4f8fa74 Pull complete 7.4s ⠿ d17dc8335598 Pull complete 8.3s ⠿ 3c86850a05ef Pull complete 8.7s ⠿ cae66d64382a Pull complete 9.1s [+] Building 3.9s (14/14) FINISHED => [template-erpnext_app internal] load build definition from Dockerfile 1.3s => => transferring dockerfile: 2B 0.0s => [template-erpnext_scheduler internal] load build definition from Dockerfile 3.4s => => transferring dockerfile: 2B 0.0s => [template-erpnext_worker_short internal] load build definition from Dockerfile 3.7s => => transferring dockerfile: 2B 0.0s => CANCELED [template-erpnext_worker_long internal] load build definition from Dockerfile 3.8s => => transferring dockerfile: 2B 0.0s => CANCELED [template-sut internal] load build definition from Dockerfile 3.8s => => transferring dockerfile: 210B 0.0s => CANCELED [template-erpnext_worker_default internal] load build definition from Dockerfile 3.7s => => transferring dockerfile: 2B 0.0s => CANCELED [template-erpnext_socketio internal] load build definition from Dockerfile 3.7s => => transferring dockerfile: 2B 0.0s => CANCELED [template-erpnext_app internal] load .dockerignore 3.6s => => transferring context: 0.1s => CANCELED [template-erpnext_scheduler internal] load .dockerignore 3.5s => => transferring context: 0.2s => CANCELED [template-erpnext_worker_short internal] load .dockerignore 3.5s => => transferring context: 218B 0.0s => CANCELED [template-erpnext_worker_long internal] load .dockerignore 3.5s => => transferring context: 218B 0.0s => CANCELED [template-sut internal] load .dockerignore 3.5s => => transferring context: 2B 0.0s => CANCELED [template-erpnext_worker_default internal] load .dockerignore 3.5s => => transferring context: 218B 0.0s => CANCELED [template-erpnext_socketio internal] load .dockerignore 3.5s => => transferring context: 218B 0.0s failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3171846146/Dockerfile: no such file or directory ```Running
./images/14/debian/docker-compose_postgres.yml
: Gives this error:Running
/images/14/debian/test/docker_test.sh
: Gives this error:I figured maybe I had the wrong dockerfile, so just to be sure, I tried the brute force approach:
The first file seems to run, but doesn't work. (Shows 404 when you visit):
Expand log
``` root@saffron:~/erp/docker-erpnext# find -name "docker-compose*" | xargs -I{} docker compose -f {} up WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. WARN[0000] The "IMAGE_NAME" variable is not set. Defaulting to a blank string. service "erpnext_scheduler" has neither an image nor a build context specified: invalid compose project [+] Running 10/0 ⠿ Container erpnext_redis_socketio Running 0.0s ⠿ Container erpnext_redis_queue Running 0.0s ⠿ Container erpnext_db Created 0.0s ⠿ Container erpnext_redis_cache Running 0.0s ⠿ Container erpnext_app Running 0.0s ⠿ Container erpnext_worker_short Running 0.0s ⠿ Container erpnext_socketio Running 0.0s ⠿ Container erpnext_worker_default Running 0.0s ⠿ Container erpnext_worker_long Running 0.0s ⠿ Container erpnext_scheduler Running 0.0s Attaching to erpnext_app, erpnext_db, erpnext_redis_cache, erpnext_redis_queue, erpnext_redis_socketio, erpnext_scheduler, erpnext_socketio, erpnext_web, erpnext_worker_default, erpnext_worker_long, erpnext_worker_short, sut erpnext_db | 2023-01-31 16:35:35+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.10.2+maria~ubu2204 started. erpnext_db | 2023-01-31 16:35:36+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' erpnext_db | 2023-01-31 16:35:36+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.10.2+maria~ubu2204 started. erpnext_app | 2023/01/31 11:35:36 Problem with dial: dial tcp 172.19.0.2:3306: connect: connection refused. Sleeping 1s erpnext_db | 2023-01-31 16:35:37+00:00 [Note] [Entrypoint]: MariaDB upgrade information missing, assuming required erpnext_db | 2023-01-31 16:35:37+00:00 [Note] [Entrypoint]: MariaDB upgrade (mariadb-upgrade) required, but skipped due to $MARIADB_AUTO_UPGRADE setting erpnext_db | 2023-01-31 16:35:37 0 [Note] Using unique option prefix 'character_set_client' is error-prone and can break in the future. Please use the full name 'character-set-client-handshake' instead. erpnext_db | 2023-01-31 16:35:37 0 [Warning] mariadbd: ignoring option '--character-set-client-handshake' due to invalid value 'utf8' erpnext_db | 2023-01-31 16:35:37 0 [Note] mariadbd (server 10.10.2-MariaDB-1:10.10.2+maria~ubu2204) starting as process 1 ... erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Number of transaction pools: 1 erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Using generic crc32 instructions erpnext_db | 2023-01-31 16:35:37 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts) erpnext_db | 2023-01-31 16:35:37 0 [Warning] mariadbd: io_uring_queue_init() failed with ENOMEM: try larger memory locked limit, ulimit -l, or https://mariadb.com/kb/en/systemd/#configuring-limitmemlock under systemd (262144 bytes required) erpnext_db | 2023-01-31 16:35:37 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Completed initialization of buffer pool erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes) erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: 128 rollback segments are active. erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ... erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB. erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: log sequence number 46622; transaction id 14 erpnext_db | 2023-01-31 16:35:37 0 [Note] Plugin 'FEEDBACK' is disabled. erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool erpnext_db | 2023-01-31 16:35:37 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work. erpnext_db | 2023-01-31 16:35:37 0 [Note] Server socket created on IP: '0.0.0.0'. erpnext_db | 2023-01-31 16:35:37 0 [Warning] 'user' entry 'root@2e4f7f458f81' ignored in --skip-name-resolve mode. erpnext_db | 2023-01-31 16:35:37 0 [Warning] 'proxies_priv' entry '@% root@2e4f7f458f81' ignored in --skip-name-resolve mode. erpnext_db | 2023-01-31 16:35:37 0 [Note] InnoDB: Buffer pool(s) load completed at 230131 16:35:37 erpnext_web | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration erpnext_web | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ erpnext_db | 2023-01-31 16:35:37 0 [Note] mariadbd: ready for connections. erpnext_db | Version: '10.10.2-MariaDB-1:10.10.2+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution erpnext_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh erpnext_app | 2023/01/31 11:35:37 Connected to tcp://erpnext_db:3306 erpnext_db | 2023-01-31 16:35:37 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.6' (This connection closed normally without authentication) erpnext_web | 10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?) erpnext_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh erpnext_app | [app] [2023-01-31T11:35:37-05:00] Reinstalling with fresh database... erpnext_web | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh erpnext_web | /docker-entrypoint.sh: Configuration complete; ready for start up erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: using the "epoll" event method erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: nginx/1.23.3 erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: OS: Linux 5.10.0-20-amd64 erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: start worker processes erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: start worker process 21 erpnext_web | 2023/01/31 11:35:38 [notice] 1#1: start worker process 22 sut | [sut] [2023-01-31T11:35:39] Reset docker entrypoint logs sut | [sut] [2023-01-31T11:35:39] Setup logs folders and files owner to frappe... sut | [sut] [2023-01-31T11:35:39] Waiting for frappe current site to be set... sut | [sut] [2023-01-31T11:35:39] Waiting for frappe apps to be set... sut | [sut] [2023-01-31T11:35:39] Waiting apps... erpnext_worker_long | [worker-long] [2023-01-31T11:35:40-05:00] Waiting apps... erpnext_db | 2023-01-31 16:35:40 4 [Warning] Aborted connection 4 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.6' (This connection closed normally without authentication) erpnext_db | 2023-01-31 16:35:40 5 [Warning] Aborted connection 5 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.6' (This connection closed normally without authentication) erpnext_db | 2023-01-31 16:35:40 6 [Warning] Aborted connection 6 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.6' (This connection closed normally without authentication) erpnext_db | 2023-01-31 16:35:40 7 [Warning] Aborted connection 7 to db: 'unconnected' user: 'unauthenticated' host: '172.19.0.6' (This connection closed normally without authentication) erpnext_app | Traceback (most recent call last): erpnext_app | File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main erpnext_app | "__main__", mod_spec) erpnext_app | File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code erpnext_app | exec(code, run_globals) erpnext_app | File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 99, inOther files seem to alternate between not working and not starting, so I'm thinking this is user error?