Seafile not working on a new server

Hi,

I installed a new yunohost behind a firewall as a VM (4/512GB) on a debian 11.9.

The installation ist working.

I installed seafile. The webinterface is working, but I cannnot access seafile via seafile-client (e.g. MAC). I become a “Internal Server Error” message.

The logs in /opt/yunohost/seafile/logs did not change during a login-trial via client.

After reinstalling seafile on yunohost I found some errors in yunohost-api.log:

2024-02-20 22:15:33,893 WARNING  yunohost.hook (unknown function) - [449.17] Data directory was not empty. Data was moved to /home/yunohost.app/seafile_20240220.221533
2024-02-20 22:15:38,399 WARNING  yunohost.hook (unknown function) - [449.17] chattr: Die Operation wird nicht unterstützt while setting flags on /swap_seafile
2024-02-20 22:15:54,484 WARNING  yunohost.hook (unknown function) - [449.17]   ERROR: Command errored out with exit status 1:
2024-02-20 22:15:54,485 WARNING  yunohost.hook (unknown function) - [449.17]    command: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpbwgjmgd7_in_process.py get_requires_for_build_wheel /tmp/tmpdsq4oxdv
2024-02-20 22:15:54,485 WARNING  yunohost.hook (unknown function) - [449.17]        cwd: /tmp/pip-install-40xl6qo0/mysqlclient_4abf05a4f94f4a35808fd9eb5e782500
2024-02-20 22:15:54,486 WARNING  yunohost.hook (unknown function) - [449.17]   Complete output (27 lines):
2024-02-20 22:15:54,486 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:54,486 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:54,487 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:54,487 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mysqlclient
2024-02-20 22:15:54,487 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
2024-02-20 22:15:54,488 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mariadb
2024-02-20 22:15:54,488 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
2024-02-20 22:15:54,488 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists libmariadb
2024-02-20 22:15:54,489 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists libmariadb' returned non-zero exit status 127.
2024-02-20 22:15:54,489 WARNING  yunohost.hook (unknown function) - [449.17]   Traceback (most recent call last):
2024-02-20 22:15:54,489 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpbwgjmgd7_in_process.py", line 280, in <module>
2024-02-20 22:15:54,490 WARNING  yunohost.hook (unknown function) - [449.17]       main()
2024-02-20 22:15:54,490 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpbwgjmgd7_in_process.py", line 263, in main
2024-02-20 22:15:54,490 WARNING  yunohost.hook (unknown function) - [449.17]       json_out['return_val'] = hook(**hook_input['kwargs'])
2024-02-20 22:15:54,491 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpbwgjmgd7_in_process.py", line 114, in get_requires_for_build_wheel
2024-02-20 22:15:54,491 WARNING  yunohost.hook (unknown function) - [449.17]       return hook(config_settings)
2024-02-20 22:15:54,491 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-y0te7gja/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
2024-02-20 22:15:54,492 WARNING  yunohost.hook (unknown function) - [449.17]       return self._get_build_requires(config_settings, requirements=['wheel'])
2024-02-20 22:15:54,492 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-y0te7gja/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
2024-02-20 22:15:54,492 WARNING  yunohost.hook (unknown function) - [449.17]       self.run_setup()
2024-02-20 22:15:54,493 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-y0te7gja/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
2024-02-20 22:15:54,493 WARNING  yunohost.hook (unknown function) - [449.17]       exec(code, locals())
2024-02-20 22:15:54,493 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 155, in <module>
2024-02-20 22:15:54,493 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 49, in get_config_posix
2024-02-20 22:15:54,494 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 28, in find_package_name
2024-02-20 22:15:54,494 WARNING  yunohost.hook (unknown function) - [449.17]   Exception: Can not find valid pkg-config name.
2024-02-20 22:15:54,494 WARNING  yunohost.hook (unknown function) - [449.17]   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
2024-02-20 22:15:54,495 WARNING  yunohost.hook (unknown function) - [449.17]   ----------------------------------------
2024-02-20 22:15:54,495 WARNING  yunohost.hook (unknown function) - [449.17] WARNING: Discarding https://files.pythonhosted.org/packages/79/33/996dc0ba3f03e2399adc91a7de1f61cb14b57ebdb4cc6eca8a78723043cb/mysqlclient-2.2.4.tar.gz#sha256=33bc9fb3464e7d7c10b1eaf7336c5ff8f2a3d3b88bab432116ad2490beb3bf41 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.8). Command errored out with exit status 1: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpbwgjmgd7_in_process.py get_requires_for_build_wheel /tmp/tmpdsq4oxdv Check the logs for full command output.
2024-02-20 22:15:57,197 WARNING  yunohost.hook (unknown function) - [449.17]   ERROR: Command errored out with exit status 1:
2024-02-20 22:15:57,198 WARNING  yunohost.hook (unknown function) - [449.17]    command: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpft755isg_in_process.py get_requires_for_build_wheel /tmp/tmp0zfkp95n
2024-02-20 22:15:57,198 WARNING  yunohost.hook (unknown function) - [449.17]        cwd: /tmp/pip-install-40xl6qo0/mysqlclient_3ad2a93244404b65ae968b979fffa3a9
2024-02-20 22:15:57,198 WARNING  yunohost.hook (unknown function) - [449.17]   Complete output (27 lines):
2024-02-20 22:15:57,199 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:57,199 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:57,199 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:57,200 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mysqlclient
2024-02-20 22:15:57,200 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
2024-02-20 22:15:57,200 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mariadb
2024-02-20 22:15:57,201 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
2024-02-20 22:15:57,201 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists libmariadb
2024-02-20 22:15:57,201 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists libmariadb' returned non-zero exit status 127.
2024-02-20 22:15:57,202 WARNING  yunohost.hook (unknown function) - [449.17]   Traceback (most recent call last):
2024-02-20 22:15:57,202 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpft755isg_in_process.py", line 280, in <module>
2024-02-20 22:15:57,202 WARNING  yunohost.hook (unknown function) - [449.17]       main()
2024-02-20 22:15:57,203 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpft755isg_in_process.py", line 263, in main
2024-02-20 22:15:57,203 WARNING  yunohost.hook (unknown function) - [449.17]       json_out['return_val'] = hook(**hook_input['kwargs'])
2024-02-20 22:15:57,203 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpft755isg_in_process.py", line 114, in get_requires_for_build_wheel
2024-02-20 22:15:57,204 WARNING  yunohost.hook (unknown function) - [449.17]       return hook(config_settings)
2024-02-20 22:15:57,204 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-xpxoeltr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
2024-02-20 22:15:57,204 WARNING  yunohost.hook (unknown function) - [449.17]       return self._get_build_requires(config_settings, requirements=['wheel'])
2024-02-20 22:15:57,205 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-xpxoeltr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
2024-02-20 22:15:57,205 WARNING  yunohost.hook (unknown function) - [449.17]       self.run_setup()
2024-02-20 22:15:57,205 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-xpxoeltr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
2024-02-20 22:15:57,206 WARNING  yunohost.hook (unknown function) - [449.17]       exec(code, locals())
2024-02-20 22:15:57,206 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 155, in <module>
2024-02-20 22:15:57,206 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 49, in get_config_posix
2024-02-20 22:15:57,207 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 28, in find_package_name
2024-02-20 22:15:57,207 WARNING  yunohost.hook (unknown function) - [449.17]   Exception: Can not find valid pkg-config name.
2024-02-20 22:15:57,207 WARNING  yunohost.hook (unknown function) - [449.17]   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
2024-02-20 22:15:57,208 WARNING  yunohost.hook (unknown function) - [449.17]   ----------------------------------------
2024-02-20 22:15:57,208 WARNING  yunohost.hook (unknown function) - [449.17] WARNING: Discarding https://files.pythonhosted.org/packages/10/2c/589fe3e9e045e0a9d86fc4e060de32d6df0fb9e1d48f2092c1f1abb26ffa/mysqlclient-2.2.3.tar.gz#sha256=ee51656e36fc5a92920b807ee8b9e373e3b0e267c89cdc95d73b1dbe46863631 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.8). Command errored out with exit status 1: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpft755isg_in_process.py get_requires_for_build_wheel /tmp/tmp0zfkp95n Check the logs for full command output.
2024-02-20 22:15:59,907 WARNING  yunohost.hook (unknown function) - [449.17]   ERROR: Command errored out with exit status 1:
2024-02-20 22:15:59,907 WARNING  yunohost.hook (unknown function) - [449.17]    command: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpf7vj1iii_in_process.py get_requires_for_build_wheel /tmp/tmplc3wj779
2024-02-20 22:15:59,907 WARNING  yunohost.hook (unknown function) - [449.17]        cwd: /tmp/pip-install-40xl6qo0/mysqlclient_1d626906a1a64cd59134ee74ef0c623f
2024-02-20 22:15:59,908 WARNING  yunohost.hook (unknown function) - [449.17]   Complete output (27 lines):
2024-02-20 22:15:59,908 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:59,909 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:59,909 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:15:59,909 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mysqlclient
2024-02-20 22:15:59,910 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
2024-02-20 22:15:59,910 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mariadb
2024-02-20 22:15:59,910 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
2024-02-20 22:15:59,911 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists libmariadb
2024-02-20 22:15:59,911 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists libmariadb' returned non-zero exit status 127.
2024-02-20 22:15:59,911 WARNING  yunohost.hook (unknown function) - [449.17]   Traceback (most recent call last):
2024-02-20 22:15:59,912 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpf7vj1iii_in_process.py", line 280, in <module>
2024-02-20 22:15:59,912 WARNING  yunohost.hook (unknown function) - [449.17]       main()
2024-02-20 22:15:59,912 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpf7vj1iii_in_process.py", line 263, in main
2024-02-20 22:15:59,913 WARNING  yunohost.hook (unknown function) - [449.17]       json_out['return_val'] = hook(**hook_input['kwargs'])
2024-02-20 22:15:59,913 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpf7vj1iii_in_process.py", line 114, in get_requires_for_build_wheel
2024-02-20 22:15:59,913 WARNING  yunohost.hook (unknown function) - [449.17]       return hook(config_settings)
2024-02-20 22:15:59,913 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-jwm523l8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
2024-02-20 22:15:59,914 WARNING  yunohost.hook (unknown function) - [449.17]       return self._get_build_requires(config_settings, requirements=['wheel'])
2024-02-20 22:15:59,914 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-jwm523l8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
2024-02-20 22:15:59,914 WARNING  yunohost.hook (unknown function) - [449.17]       self.run_setup()
2024-02-20 22:15:59,915 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-jwm523l8/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
2024-02-20 22:15:59,915 WARNING  yunohost.hook (unknown function) - [449.17]       exec(code, locals())
2024-02-20 22:15:59,915 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 155, in <module>
2024-02-20 22:15:59,916 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 49, in get_config_posix
2024-02-20 22:15:59,916 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 28, in find_package_name
2024-02-20 22:15:59,916 WARNING  yunohost.hook (unknown function) - [449.17]   Exception: Can not find valid pkg-config name.
2024-02-20 22:15:59,916 WARNING  yunohost.hook (unknown function) - [449.17]   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
2024-02-20 22:15:59,917 WARNING  yunohost.hook (unknown function) - [449.17]   ----------------------------------------
2024-02-20 22:15:59,917 WARNING  yunohost.hook (unknown function) - [449.17] WARNING: Discarding https://files.pythonhosted.org/packages/6c/37/aeefb97b20c08774ac57a27b0a0d19e9a2a9ec53c0802ee20920d98560f4/mysqlclient-2.2.2.tar.gz#sha256=6f57715fb08c80ab80d34febe0aa8ef8810e52d527ad7da2da76e8ce25e2f2e9 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.8). Command errored out with exit status 1: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpf7vj1iii_in_process.py get_requires_for_build_wheel /tmp/tmplc3wj779 Check the logs for full command output.
2024-02-20 22:16:02,315 WARNING  yunohost.hook (unknown function) - [449.17]   ERROR: Command errored out with exit status 1:
2024-02-20 22:16:02,316 WARNING  yunohost.hook (unknown function) - [449.17]    command: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpq9dy0fng_in_process.py get_requires_for_build_wheel /tmp/tmp3t68_qqo
2024-02-20 22:16:02,316 WARNING  yunohost.hook (unknown function) - [449.17]        cwd: /tmp/pip-install-40xl6qo0/mysqlclient_4a26c05adf694057a095590c6646e65e
2024-02-20 22:16:02,317 WARNING  yunohost.hook (unknown function) - [449.17]   Complete output (27 lines):
2024-02-20 22:16:02,317 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:16:02,317 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:16:02,318 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:16:02,318 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mysqlclient
2024-02-20 22:16:02,318 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
2024-02-20 22:16:02,319 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mariadb
2024-02-20 22:16:02,319 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
2024-02-20 22:16:02,320 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists libmariadb
2024-02-20 22:16:02,320 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists libmariadb' returned non-zero exit status 127.
2024-02-20 22:16:02,320 WARNING  yunohost.hook (unknown function) - [449.17]   Traceback (most recent call last):
2024-02-20 22:16:02,320 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpq9dy0fng_in_process.py", line 280, in <module>
2024-02-20 22:16:02,321 WARNING  yunohost.hook (unknown function) - [449.17]       main()
2024-02-20 22:16:02,321 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpq9dy0fng_in_process.py", line 263, in main
2024-02-20 22:16:02,321 WARNING  yunohost.hook (unknown function) - [449.17]       json_out['return_val'] = hook(**hook_input['kwargs'])
2024-02-20 22:16:02,322 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmpq9dy0fng_in_process.py", line 114, in get_requires_for_build_wheel
2024-02-20 22:16:02,322 WARNING  yunohost.hook (unknown function) - [449.17]       return hook(config_settings)
2024-02-20 22:16:02,322 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-yaxqzs5u/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
2024-02-20 22:16:02,323 WARNING  yunohost.hook (unknown function) - [449.17]       return self._get_build_requires(config_settings, requirements=['wheel'])
2024-02-20 22:16:02,323 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-yaxqzs5u/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
2024-02-20 22:16:02,323 WARNING  yunohost.hook (unknown function) - [449.17]       self.run_setup()
2024-02-20 22:16:02,324 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-yaxqzs5u/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
2024-02-20 22:16:02,324 WARNING  yunohost.hook (unknown function) - [449.17]       exec(code, locals())
2024-02-20 22:16:02,324 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 155, in <module>
2024-02-20 22:16:02,325 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 49, in get_config_posix
2024-02-20 22:16:02,325 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 28, in find_package_name
2024-02-20 22:16:02,325 WARNING  yunohost.hook (unknown function) - [449.17]   Exception: Can not find valid pkg-config name.
2024-02-20 22:16:02,326 WARNING  yunohost.hook (unknown function) - [449.17]   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
2024-02-20 22:16:02,326 WARNING  yunohost.hook (unknown function) - [449.17]   ----------------------------------------
2024-02-20 22:16:02,326 WARNING  yunohost.hook (unknown function) - [449.17] WARNING: Discarding https://files.pythonhosted.org/packages/37/fb/d9a8f763c84f1e789c027af0ffc7dbf94c9a38db961484f253f0552cbb47/mysqlclient-2.2.1.tar.gz#sha256=2c7ad15b87293b12fd44b47c46879ec95ec647f4567e866ccd70b8337584e9b2 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.8). Command errored out with exit status 1: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmpq9dy0fng_in_process.py get_requires_for_build_wheel /tmp/tmp3t68_qqo Check the logs for full command output.
2024-02-20 22:16:04,696 WARNING  yunohost.hook (unknown function) - [449.17]   ERROR: Command errored out with exit status 1:
2024-02-20 22:16:04,696 WARNING  yunohost.hook (unknown function) - [449.17]    command: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmprnwqdepa_in_process.py get_requires_for_build_wheel /tmp/tmp919iu1hr
2024-02-20 22:16:04,696 WARNING  yunohost.hook (unknown function) - [449.17]        cwd: /tmp/pip-install-40xl6qo0/mysqlclient_1d098661c0df40f19d65f255841fbe61
2024-02-20 22:16:04,697 WARNING  yunohost.hook (unknown function) - [449.17]   Complete output (24 lines):
2024-02-20 22:16:04,697 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:16:04,698 WARNING  yunohost.hook (unknown function) - [449.17]   /bin/sh: 1: pkg-config: not found
2024-02-20 22:16:04,698 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mysqlclient
2024-02-20 22:16:04,698 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
2024-02-20 22:16:04,699 WARNING  yunohost.hook (unknown function) - [449.17]   Trying pkg-config --exists mariadb
2024-02-20 22:16:04,699 WARNING  yunohost.hook (unknown function) - [449.17]   Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
2024-02-20 22:16:04,699 WARNING  yunohost.hook (unknown function) - [449.17]   Traceback (most recent call last):
2024-02-20 22:16:04,700 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmprnwqdepa_in_process.py", line 280, in <module>
2024-02-20 22:16:04,700 WARNING  yunohost.hook (unknown function) - [449.17]       main()
2024-02-20 22:16:04,700 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmprnwqdepa_in_process.py", line 263, in main
2024-02-20 22:16:04,701 WARNING  yunohost.hook (unknown function) - [449.17]       json_out['return_val'] = hook(**hook_input['kwargs'])
2024-02-20 22:16:04,701 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/tmprnwqdepa_in_process.py", line 114, in get_requires_for_build_wheel
2024-02-20 22:16:04,701 WARNING  yunohost.hook (unknown function) - [449.17]       return hook(config_settings)
2024-02-20 22:16:04,702 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-dio782wd/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
2024-02-20 22:16:04,702 WARNING  yunohost.hook (unknown function) - [449.17]       return self._get_build_requires(config_settings, requirements=['wheel'])
2024-02-20 22:16:04,702 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-dio782wd/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
2024-02-20 22:16:04,703 WARNING  yunohost.hook (unknown function) - [449.17]       self.run_setup()
2024-02-20 22:16:04,703 WARNING  yunohost.hook (unknown function) - [449.17]     File "/tmp/pip-build-env-dio782wd/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
2024-02-20 22:16:04,703 WARNING  yunohost.hook (unknown function) - [449.17]       exec(code, locals())
2024-02-20 22:16:04,704 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 154, in <module>
2024-02-20 22:16:04,704 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 48, in get_config_posix
2024-02-20 22:16:04,704 WARNING  yunohost.hook (unknown function) - [449.17]     File "<string>", line 27, in find_package_name
2024-02-20 22:16:04,705 WARNING  yunohost.hook (unknown function) - [449.17]   Exception: Can not find valid pkg-config name.
2024-02-20 22:16:04,705 WARNING  yunohost.hook (unknown function) - [449.17]   Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
2024-02-20 22:16:04,706 WARNING  yunohost.hook (unknown function) - [449.17]   ----------------------------------------
2024-02-20 22:16:04,706 WARNING  yunohost.hook (unknown function) - [449.17] WARNING: Discarding https://files.pythonhosted.org/packages/de/9c/b176826e8994551ce826404dab97e305a4bb76c8b0a4e016fabda2901c71/mysqlclient-2.2.0.tar.gz#sha256=04368445f9c487d8abb7a878e3d23e923e6072c04a6c320f9e0dc8a82efba14e (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.8). Command errored out with exit status 1: /opt/yunohost/seafile/venv/bin/python3 /tmp/tmprnwqdepa_in_process.py get_requires_for_build_wheel /tmp/tmp919iu1hr Check the logs for full command output.
2024-02-20 22:16:46,520 DEBUG    yunohost.hook (unknown function) - [449.17] ++ grep 'WARNING.*seafile.*'

Server:

  • Angetrieben von YunoHost 11.2.10 (stable).

I´ve fixed this via:
root@yh2:/var/log/yunohost# apt-get install python3-dev default-libmysqlclient-dev build-essential
and
root@yh2:/var/log/yunohost# apt install pkg-config

After a nother reinstall the installation works and I can connect via mac-client.

Can you fix the installation-script for testing the prerequisites, please?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.