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

installation fails: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL' #368

Closed
isAAAc opened this issue Mar 3, 2023 · 2 comments

Comments

@isAAAc
Copy link

isAAAc commented Mar 3, 2023

Describe the bug

install fails

Context

  • Hardware: VPS
  • YunoHost version:
root@krashboyz:~# yunohost --version
yunohost: 
  repo: stable
  version: 11.1.12.2
yunohost-admin: 
  repo: stable
  version: 11.1.6
moulinette: 
  repo: stable
  version: 11.1.4
ssowat: 
  repo: stable
  version: 11.1.4
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: synapse 1.77.0~ynh1

Steps to reproduce

  • If you performed a command from the CLI, the command itself is enough. For example:
    # yunohost app install synapse

Expected behavior

expecting synapse installation OK

Logs

https://paste.yunohost.org/raw/xukicatewu

2023-03-03 15:27:41,118: DEBUG - + pip3 install --upgrade setuptools==60.8.2 wheel pip
2023-03-03 15:27:44,250: DEBUG - Collecting setuptools==60.8.2
2023-03-03 15:27:44,368: DEBUG -   Downloading setuptools-60.8.2-py3-none-any.whl (1.1 MB)
2023-03-03 15:27:44,836: DEBUG - Collecting wheel
2023-03-03 15:27:44,861: DEBUG -   Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
2023-03-03 15:27:44,864: DEBUG - Requirement already satisfied: pip in /opt/yunohost/matrix-synapse/lib/python3.9/site-packages (20.3.4)
[...]
2023-03-03 15:27:48,952: DEBUG - Successfully installed pip-23.0.1 setuptools-60.8.2 wheel-0.38.4
[...]
2023-03-03 15:28:27,054: DEBUG - Collecting setuptools>=62.4
2023-03-03 15:28:27,071: DEBUG -   Downloading setuptools-67.4.0-py3-none-any.whl (1.1 MB)
2023-03-03 15:28:27,156: DEBUG -      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 13.4 MB/s eta 0:00:00
2023-03-03 15:28:28,995: DEBUG - Installing collected packages: webencodings, sortedcontainers, phonenumbers, netaddr, msgpack, incremental, ijson, constantly, charset-normalizer, urllib3, unpaddedbase64, typing_extensions, six, simplejson, setuptools, semantic-version, PyYAML, pyrsistent, pyasn1-modules, prometheus-client, Pillow, packaging, ldap3, idna, frozendict, certifi, bcrypt, attrs, zope.interface, setuptools-rust, requests, PyNaCl, pydantic, matrix-common, jsonschema, hyperlink, cryptography, canonicaljson, bleach, Automat, Twisted, signedjson, service-identity, pymacaroons, matrix-synapse-ldap3, treq, matrix-synapse
2023-03-03 15:28:37,966: DEBUG -   Attempting uninstall: setuptools
2023-03-03 15:28:37,968: DEBUG -     Found existing installation: setuptools 60.8.2
2023-03-03 15:28:38,176: DEBUG -     Uninstalling setuptools-60.8.2:
2023-03-03 15:28:38,228: DEBUG -       Successfully uninstalled setuptools-60.8.2
2023-03-03 15:28:43,774: DEBUG -   Attempting uninstall: cryptography
2023-03-03 15:28:43,776: DEBUG -     Found existing installation: cryptography 39.0.2
2023-03-03 15:28:43,850: DEBUG -     Uninstalling cryptography-39.0.2:
2023-03-03 15:28:43,855: DEBUG -       Successfully uninstalled cryptography-39.0.2
2023-03-03 15:28:47,260: WARNING - ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL'
2023-03-03 15:28:47,261: WARNING - Check the permissions.
2023-03-03 15:28:47,261: DEBUG - 
2023-03-03 15:28:48,152: DEBUG - + ynh_exit_properly
2023-03-03 15:28:48,656: DEBUG - + ynh_clean_setup
2023-03-03 15:28:48,657: DEBUG - + ynh_clean_check_starting

thx for your help ;)

If applicable and useful, add screenshots to help explain your problem.

@Josue-T
Copy link

Josue-T commented Mar 6, 2023

Hello,

Can you try if from this branch it fix this issue: https://github.com/YunoHost-Apps/synapse_ynh/tree/cleanup_install

@isAAAc
Copy link
Author

isAAAc commented Mar 6, 2023

hello @Josue-T ,
i saw you merged your change in testing branch,
just tried to install the testing:
# yunohost app install https://github.com/YunoHost-Apps/synapse_ynh/tree/testing --debug
👌 SUCCESS Installation completed

thx for your time and your work ;) 🙏

@Josue-T Josue-T closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants