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

Shared object error on setup #732

Closed
BLLiNNK opened this issue Dec 8, 2023 · 4 comments
Closed

Shared object error on setup #732

BLLiNNK opened this issue Dec 8, 2023 · 4 comments
Labels

Comments

@BLLiNNK
Copy link

BLLiNNK commented Dec 8, 2023

Overview

I am attempting to setup but getting the below error when running first test

/volume1/homes/xxx/icloudpd/lib/python3.8/site-packages/icloud/icloud: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Steps to Reproduce

  1. install package, pip and wheel
  2. Run icloud —username xx@xx.com

Expected Behavior

From the guide, I believe I should be prompted for password

Actual Behavior

/volume1/homes/xxx/icloudpd/lib/python3.8/site-packages/icloud/icloud: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Context

Synology DSM 7.2.1-69057 Update 3 and Python 3.8

@BLLiNNK BLLiNNK added the bug label Dec 8, 2023
@genegoykhman
Copy link

I'm trying to set up icloudpd for the first time and ran into this problem as well. Not sure how to proceed.

@michaelmolino
Copy link

michaelmolino commented Dec 12, 2023

This sounds like an environment issue to me. It might be easier to build the docker image and run it from there. That said, this project is currently broken so you're going to get an authentication issue anyway. See #729 .

@yorkday
Copy link

yorkday commented Dec 22, 2023

I had the same issue, and found it was due to a lack of TMP directory in my environment variables (running on Synology). I didn't have this issue previously on Synology, so not sure if it was recently introduced problem with icloudpd, or my Synology. After fixing my temporary folder issue, I hit another issue, but that's unrelated.

Article: https://stackoverflow.com/questions/57796839/docker-compose-error-while-loading-shared-libraries-libz-so-1-failed-to-map-s

Steps I took were (change the path for your environment):

root@DiskStation:/usr/local/bin/scripts/backups_icloud# icloudpd
/usr/lib/python3.8/site-packages/icloudpd/icloudpd: error while loading shared libraries: libz.so.1: failed to map segment from shared object
root@DiskStation:/usr/local/bin/scripts/backups_icloud# mkdir tmp
root@DiskStation:/usr/local/bin/scripts/backups_icloud# export TMP=/usr/local/bin/scripts/backups_icloud/tmp
root@DiskStation:/usr/local/bin/scripts/backups_icloud# icloudpd
[26321] Error loading Python lib '/usr/local/bin/scripts/backups_icloud/tmp/_MEIhzdftS/libpython3.12.so.1.0': dlopen: /lib64/libm.so.6: version `GLIBC_2.35' not found (required by /usr/local/bin/scripts/backups_icloud/tmp/_MEIhzdftS/libpython3.12.so.1.0)

@yorkday
Copy link

yorkday commented Dec 22, 2023

On further reading, it looks like it could be because the /tmp directory does not have execute privileges, so your choices are either to remount your current /tmp directory with these permissions, or create a separate tmp folder and export that to your path.

Investigating my Synology shows the /tmp path is 'noexec', meaning icloudpd couldn't execute something from the /tmp directory.

root@DiskStation:/tmp# mount | grep -i /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants