lvxj11 / docker

存储各种自建容器
MIT License
22 stars 13 forks source link

用erpnext14的脚本docker build出现错误 #12

Closed kelvin-ye closed 9 months ago

kelvin-ye commented 1 year ago

错误提示为:error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560 试了好几遍,不知道怎么解决,能否帮忙看看 完整的log如下: https://raw.githubusercontent.com/kelvin-ye/erpNextDocker/master/erpnext14/1.log

最后一部分如下: ==========frappe初始化失败第3次!自动重试。========== Setting Up Environment $ /usr/bin/python3 -m venv env $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip Getting frappe $ git clone https://gitee.com/mirrors/frappe --branch version-14 --depth 1 --origin upstream Cloning into 'frappe'... Installing frappe $ /home/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe  DEPRECATION: zxcvbn-python is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: PyQRCode is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: docopt is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: traceback-with-variables is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: maxminddb is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: hiredis is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: maxminddb-geolite2 is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: rauth is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: premailer is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: googlemaps is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559  DEPRECATION: cairocffi is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 $ yarn install yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency "less@^4.x". warning " > @frappe/esbuild-plugin-postcss2@0.1.3" has unmet peer dependency "stylus@^0.x". warning Workspaces can only be enabled in private projects. [5/5] Building fresh packages... Done in 11.62s. Found existing apps updating states... $ supervisorctl restart frappe: error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560 Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/bench/commands/make.py", line 68, in init init( File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 105, in wrapper_fn return fn(*args, kwargs) File "/usr/local/lib/python3.10/dist-packages/bench/utils/system.py", line 79, in init get_app( File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 444, in get_app app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench) File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn return fn(*args, *kwargs) File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 242, in install install_app( File "/usr/local/lib/python3.10/dist-packages/bench/app.py", line 589, in install_app bench.reload() File "/usr/local/lib/python3.10/dist-packages/bench/utils/render.py", line 126, in wrapper_fn return fn(args, kwargs) File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 151, in reload restart_supervisor_processes(bench_path=self.name, web_workers=web) File "/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py", line 315, in restart_supervisor_processes bench.run(f"{sudo}supervisorctl restart {group}") File "/usr/local/lib/python3.10/dist-packages/bench/bench.py", line 48, in run return exec_cmd(cmd, cwd=cwd or self.cwd) File "/usr/local/lib/python3.10/dist-packages/bench/utils/init.py", line 158, in exec_cmd raise CommandFailedError bench.exceptions.CommandFailedError

ERROR: There was a problem while creating frappe-bench Do you want to rollback these changes? [y/N]: Aborted! ==========frappe初始化失败太多4,退出脚本!==========

lvxj11 commented 1 year ago

在什么情况下出现的这个问题?

kelvin-ye commented 1 year ago

在什么情况下出现的这个问题?

erpnext14目录里面,执行: docker build -t erpnext:14 . 每次都出现,我现在把所有的国内源都注释掉试试看

lvxj11 commented 1 year ago

确实报错了,之前没有这个问题。不清楚是不是bench代码有变化。如果有时间看看源代码。

kelvin-ye commented 1 year ago

确实报错了,之前没有这个问题。不清楚是不是bench代码有变化。如果有时间看看源代码。

我直接在docker hub里面pull你的erpnext:14,然后再执行一遍你这个脚本,frappe init这里是可以通过的,会不会就像群里面说的,是因为国内源没有同步的关系