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

Docker installation of hrms failed. #2590

Open
1 task done
brijeshvpatel opened this issue Jan 7, 2025 · 0 comments
Open
1 task done

Docker installation of hrms failed. #2590

brijeshvpatel opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@brijeshvpatel
Copy link

Information about bug

Performed following installation steps in ubuntu and found may issues during installation.

git clone https://github.com/frappe/hrms
cd hrms/docker
docker-compose up

Module

HR, Payroll, other

Version

Versions as per git docker-compose.yml

Installation method

docker

Relevant log output / Stack trace / Full Error Message.

docker-compose up
Creating network "docker_default" with the default driver
Pulling frappe (frappe/bench:latest)...
latest: Pulling from frappe/bench
fd674058ff8f: Pull complete
55a3e7627d03: Pull complete
d0c47e1b42ab: Pull complete
c684b84693b5: Pull complete
5c97d9d261d7: Pull complete
4f4fb700ef54: Pull complete
732357a7cf8b: Pull complete
8727d7437b6c: Pull complete
53661eefe933: Pull complete
Digest: sha256:17e6f4772e943977bf6a7e285a6de5a12bc54e47a7faddd94d57109d955a31e2
Status: Downloaded newer image for frappe/bench:latest
Creating docker_frappe_1  ... done
Creating docker_mariadb_1 ... done
Creating docker_redis_1   ... done
Attaching to docker_redis_1, docker_mariadb_1, docker_frappe_1
mariadb_1  | 2025-01-07 14:37:38+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.8+maria~ubu2204 started.
redis_1    | 1:C 07 Jan 2025 14:37:38.326 # 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.
redis_1    | 1:C 07 Jan 2025 14:37:38.329 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1    | 1:C 07 Jan 2025 14:37:38.329 * Redis version=7.4.1, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1    | 1:C 07 Jan 2025 14:37:38.329 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1    | 1:M 07 Jan 2025 14:37:38.330 * monotonic clock: POSIX clock_gettime
redis_1    | 1:M 07 Jan 2025 14:37:38.346 * Running mode=standalone, port=6379.
redis_1    | 1:M 07 Jan 2025 14:37:38.352 * Server initialized
redis_1    | 1:M 07 Jan 2025 14:37:38.356 * Ready to accept connections tcp
frappe_1   | Creating new bench...
frappe_1   | Setting Up Environment
frappe_1   | $ python3 -m venv env
mariadb_1  | 2025-01-07 14:37:40+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mariadb_1  | 2025-01-07 14:37:40+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.8.8+maria~ubu2204 started.
mariadb_1  | 2025-01-07 14:37:40+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
mariadb_1  | 2025-01-07 14:37:41 0 [Note] Starting MariaDB 10.8.8-MariaDB-1:10.8.8+maria~ubu2204 source revision 2668d596d1b4da99206146e4a2a25fc2d5dabeff as process 1
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Number of transaction pools: 1
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
mariadb_1  | 2025-01-07 14:37:41 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
mariadb_1  | 2025-01-07 14:37:41 0 [Warning] mariadbd: io_uring_queue_init() failed with errno 1
mariadb_1  | 2025-01-07 14:37:41 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: 128 rollback segments are active.
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: log sequence number 47030; transaction id 16
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
mariadb_1  | 2025-01-07 14:37:41 0 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1  | 2025-01-07 14:37:41 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
mariadb_1  | 2025-01-07 14:37:41 0 [Note] InnoDB: Buffer pool(s) load completed at 250107 14:37:41
mariadb_1  | 2025-01-07 14:37:41 0 [Note] Server socket created on IP: '0.0.0.0'.
mariadb_1  | 2025-01-07 14:37:41 0 [Note] Server socket created on IP: '::'.
mariadb_1  | 2025-01-07 14:37:41 0 [Note] mariadbd: ready for connections.
mariadb_1  | Version: '10.8.8-MariaDB-1:10.8.8+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
frappe_1   | $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
frappe_1   | $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet wheel
frappe_1   | Getting frappe
frappe_1   | $ git clone https://github.com/frappe/frappe.git  --depth 1 --origin upstream
frappe_1   | Cloning into 'frappe'...
Updating files: 100% (3279/3279), done./3279)
frappe_1   | Installing frappe
frappe_1   | $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe 
frappe_1   | ERROR: Exception:
frappe_1   | Traceback (most recent call last):
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
frappe_1   |     yield
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
frappe_1   |     data = self._fp_read(amt) if not fp_closed else b""
frappe_1   |            ^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
frappe_1   |     return self._fp.read(amt) if amt is not None else self._fp.read()
frappe_1   |            ^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read
frappe_1   |     data: bytes = self.__fp.read(amt)
frappe_1   |                   ^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/http/client.py", line 466, in read
frappe_1   |     s = self.fp.read(amt)
frappe_1   |         ^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/socket.py", line 706, in readinto
frappe_1   |     return self._sock.recv_into(b)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/ssl.py", line 1311, in recv_into
frappe_1   |     return self.read(nbytes, buffer)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/ssl.py", line 1167, in read
frappe_1   |     return self._sslobj.read(len, buffer)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   | TimeoutError: The read operation timed out
frappe_1   | 
frappe_1   | During handling of the above exception, another exception occurred:
frappe_1   | 
frappe_1   | Traceback (most recent call last):
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
frappe_1   |     status = _inner_run()
frappe_1   |              ^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
frappe_1   |     return self.run(options, args)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
frappe_1   |     return func(self, options, args)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 379, in run
frappe_1   |     requirement_set = resolver.resolve(
frappe_1   |                       ^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve
frappe_1   |     self.factory.preparer.prepare_linked_requirements_more(reqs)
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 554, in prepare_linked_requirements_more
frappe_1   |     self._complete_partial_requirements(
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 469, in _complete_partial_requirements
frappe_1   |     for link, (filepath, _) in batch_download:
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/network/download.py", line 184, in __call__
frappe_1   |     for chunk in chunks:
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_internal/network/utils.py", line 65, in response_chunks
frappe_1   |     for chunk in response.raw.stream(
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream
frappe_1   |     data = self.read(amt=amt, decode_content=decode_content)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 560, in read
frappe_1   |     with self._error_catcher():
frappe_1   |   File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/contextlib.py", line 155, in __exit__
frappe_1   |     self.gen.throw(typ, value, traceback)
frappe_1   |   File "/home/frappe/frappe-bench/env/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher
frappe_1   |     raise ReadTimeoutError(self._pool, None, "Read timed out.")
frappe_1   | pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
frappe_1   | Aborted!
frappe_1   | subprocess.CalledProcessError: Command '/home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe ' returned non-zero exit status 2.
frappe_1   | 
frappe_1   | The above exception was the direct cause of the following exception:
frappe_1   | 
frappe_1   | Traceback (most recent call last):
frappe_1   |   File "/home/frappe/.bench/bench/commands/make.py", line 75, in init
frappe_1   |     init(
frappe_1   |   File "/home/frappe/.bench/bench/utils/render.py", line 105, in wrapper_fn
frappe_1   |     return fn(*args, **kwargs)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/utils/system.py", line 87, in init
frappe_1   |     get_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 778, in get_app
frappe_1   |     app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
frappe_1   |   File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
frappe_1   |     return fn(*args, **kwargs)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 253, in install
frappe_1   |     install_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 912, in install_app
frappe_1   |     bench.run(
frappe_1   |   File "/home/frappe/.bench/bench/bench.py", line 48, in run
frappe_1   |     return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/utils/__init__.py", line 181, in exec_cmd
frappe_1   |     raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
frappe_1   | bench.exceptions.CommandFailedError: /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe 
frappe_1   | 
frappe_1   | ERROR: There was a problem while creating frappe-bench
frappe_1   | Do you want to rollback these changes? [y/N]: Getting erpnext
frappe_1   | $ git clone https://github.com/frappe/erpnext.git  --depth 1 --origin upstream
frappe_1   | Cloning into 'erpnext'...
frappe_1   | Ignoring dependencies of erpnext. To install dependencies use --resolve-deps
frappe_1   | Installing erpnext
frappe_1   | $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/erpnext 
frappe_1   | $ yarn install --check-files
frappe_1   | yarn install v1.22.22
frappe_1   | [1/4] Resolving packages...
frappe_1   | [2/4] Fetching packages...
frappe_1   | [3/4] Linking dependencies...
frappe_1   | [4/4] Building fresh packages...
frappe_1   | Done in 0.69s.
frappe_1   | Found existing apps updating states...
frappe_1   | $ bench build --app erpnext
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | ERROR: bench build --app erpnext
frappe_1   | subprocess.CalledProcessError: Command 'bench build --app erpnext' returned non-zero exit status 1.
frappe_1   | 
frappe_1   | The above exception was the direct cause of the following exception:
frappe_1   | 
frappe_1   | Traceback (most recent call last):
frappe_1   |   File "/home/frappe/.local/bin/bench", line 8, in <module>
frappe_1   |     sys.exit(cli())
frappe_1   |              ^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/cli.py", line 132, in cli
frappe_1   |     bench_command()
frappe_1   |   File "/home/frappe/.bench/bench/commands/make.py", line 181, in get_app
frappe_1   |     get_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 778, in get_app
frappe_1   |     app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
frappe_1   |   File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
frappe_1   |     return fn(*args, **kwargs)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 253, in install
frappe_1   |     install_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 928, in install_app
frappe_1   |     build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
frappe_1   |   File "/home/frappe/.bench/bench/utils/bench.py", line 381, in build_assets
frappe_1   |     exec_cmd(command, cwd=bench_path, env=env)
frappe_1   |   File "/home/frappe/.bench/bench/utils/__init__.py", line 181, in exec_cmd
frappe_1   |     raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
frappe_1   | bench.exceptions.CommandFailedError: bench build --app erpnext
frappe_1   | 
frappe_1   | Getting hrms
frappe_1   | $ git clone https://github.com/frappe/hrms.git  --depth 1 --origin upstream
frappe_1   | Cloning into 'hrms'...
frappe_1   | Ignoring dependencies of hrms. To install dependencies use --resolve-deps
frappe_1   | Installing hrms
frappe_1   | $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/hrms 
frappe_1   | $ yarn install --check-files
frappe_1   | yarn install v1.22.22
frappe_1   | [1/4] Resolving packages...
frappe_1   | [2/4] Fetching packages...
frappe_1   | [3/4] Linking dependencies...
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > [email protected]" has unmet peer dependency "workbox-build@^7.1.0".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > [email protected]" has unmet peer dependency "workbox-window@^7.1.0".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/vue-3 > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | warning "workspace-aggregator-5778dafb-dc22-4aa1-8eb3-09c42af1b65d > frappe-hr-ui > frappe-ui > @tiptap/vue-3 > @tiptap/[email protected]" has unmet peer dependency "@tiptap/core@^2.6.6".
frappe_1   | [4/4] Building fresh packages...
frappe_1   | success Saved lockfile.
frappe_1   | $ yarn install-pwa-deps && yarn install-roster-deps
frappe_1   | yarn run v1.22.22
frappe_1   | $ cd frontend && yarn install --check-files
frappe_1   | [1/4] Resolving packages...
frappe_1   | success Already up-to-date.
frappe_1   | Done in 43.84s.
frappe_1   | yarn run v1.22.22
frappe_1   | $ cd roster && yarn install --check-files
frappe_1   | [1/4] Resolving packages...
frappe_1   | success Already up-to-date.
frappe_1   | Done in 43.20s.
frappe_1   | Done in 235.28s.
frappe_1   | $ bench build --app hrms
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | ERROR: bench build --app hrms
frappe_1   | subprocess.CalledProcessError: Command 'bench build --app hrms' returned non-zero exit status 1.
frappe_1   | 
frappe_1   | The above exception was the direct cause of the following exception:
frappe_1   | 
frappe_1   | Traceback (most recent call last):
frappe_1   |   File "/home/frappe/.local/bin/bench", line 8, in <module>
frappe_1   |     sys.exit(cli())
frappe_1   |              ^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/cli.py", line 132, in cli
frappe_1   |     bench_command()
frappe_1   |   File "/home/frappe/.bench/bench/commands/make.py", line 181, in get_app
frappe_1   |     get_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 778, in get_app
frappe_1   |     app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
frappe_1   |   File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
frappe_1   |     return fn(*args, **kwargs)
frappe_1   |            ^^^^^^^^^^^^^^^^^^^
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 253, in install
frappe_1   |     install_app(
frappe_1   |   File "/home/frappe/.bench/bench/app.py", line 928, in install_app
frappe_1   |     build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
frappe_1   |   File "/home/frappe/.bench/bench/utils/bench.py", line 381, in build_assets
frappe_1   |     exec_cmd(command, cwd=bench_path, env=env)
frappe_1   |   File "/home/frappe/.bench/bench/utils/__init__.py", line 181, in exec_cmd
frappe_1   |     raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
frappe_1   | bench.exceptions.CommandFailedError: bench build --app hrms
frappe_1   | 
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | /home/frappe/frappe-bench/env/bin/python: Error while finding module specification for 'frappe.utils.bench_helper' (ModuleNotFoundError: No module named 'frappe')
frappe_1   | 14:49:07 system     | web.1 started (pid=584)
frappe_1   | 14:49:07 system     | socketio.1 started (pid=586)
frappe_1   | 14:49:07 system     | schedule.1 started (pid=589)
frappe_1   | 14:49:07 system     | worker.1 started (pid=593)
frappe_1   | 14:49:07 socketio.1 | node:internal/modules/cjs/loader:1080
frappe_1   | 14:49:07 socketio.1 |   throw err;
frappe_1   | 14:49:07 socketio.1 |   ^
frappe_1   | 14:49:07 socketio.1 | 
frappe_1   | 14:49:07 socketio.1 | Error: Cannot find module 'socket.io'
frappe_1   | 14:49:07 socketio.1 | Require stack:
frappe_1   | 14:49:07 socketio.1 | - /home/frappe/frappe-bench/apps/frappe/realtime/index.js
frappe_1   | 14:49:07 socketio.1 | - /home/frappe/frappe-bench/apps/frappe/socketio.js
frappe_1   | 14:49:07 socketio.1 |     at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
frappe_1   | 14:49:07 socketio.1 |     at Module._load (node:internal/modules/cjs/loader:922:27)
frappe_1   | 14:49:07 socketio.1 |     at Module.require (node:internal/modules/cjs/loader:1143:19)
frappe_1   | 14:49:07 socketio.1 |     at require (node:internal/modules/cjs/helpers:119:18)
frappe_1   | 14:49:07 socketio.1 |     at Object.<anonymous> (/home/frappe/frappe-bench/apps/frappe/realtime/index.js:1:20)
frappe_1   | 14:49:07 socketio.1 |     at Module._compile (node:internal/modules/cjs/loader:1256:14)
frappe_1   | 14:49:07 socketio.1 |     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
frappe_1   | 14:49:07 socketio.1 |     at Module.load (node:internal/modules/cjs/loader:1119:32)
frappe_1   | 14:49:07 socketio.1 |     at Module._load (node:internal/modules/cjs/loader:960:12)
frappe_1   | 14:49:07 socketio.1 |     at Module.require (node:internal/modules/cjs/loader:1143:19) {
frappe_1   | 14:49:07 socketio.1 |   code: 'MODULE_NOT_FOUND',
frappe_1   | 14:49:07 socketio.1 |   requireStack: [
frappe_1   | 14:49:07 socketio.1 |     '/home/frappe/frappe-bench/apps/frappe/realtime/index.js',
frappe_1   | 14:49:07 socketio.1 |     '/home/frappe/frappe-bench/apps/frappe/socketio.js'
frappe_1   | 14:49:07 socketio.1 |   ]
frappe_1   | 14:49:07 socketio.1 | }
frappe_1   | 14:49:07 socketio.1 | 
frappe_1   | 14:49:07 socketio.1 | Node.js v18.18.2
frappe_1   | 14:49:08 system     | socketio.1 stopped (rc=1)
frappe_1   | 14:49:08 system     | sending SIGTERM to web.1 (pid 584)
frappe_1   | 14:49:08 system     | sending SIGTERM to schedule.1 (pid 589)
frappe_1   | 14:49:08 system     | sending SIGTERM to worker.1 (pid 593)
frappe_1   | 14:49:08 system     | worker.1 stopped (rc=-15)
frappe_1   | 14:49:08 system     | web.1 stopped (rc=-15)
frappe_1   | 14:49:08 system     | schedule.1 stopped (rc=-15)
docker_frappe_1 exited with code 1

Code of Conduct

  • I agree to follow this project's Code of Conduct
@brijeshvpatel brijeshvpatel added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant