Upgrade issue on x86_64 legacy -- binary exec error on Synology NAS

222 views
Skip to first unread message

Thomas V

unread,
Jan 19, 2023, 6:50:46 PM1/19/23
to Got Your Back: Gmail Backup
Hi,

I've run an upgrade and ran into some oddities I can't seem to isolate.

```bash
~/tmp$> uname -m
x86_64
~/tmp$> curl -L https://github.com/GAM-team/got-your-back/releases/download/v1.72/gyb-1.72-linux-x86_64-legacy.tar.xz --output /var/services/homes/admin/tmp/gyb.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 13.2M  100 13.2M    0     0  3152k      0  0:00:04  0:00:04 --:--:-- 3910k
~/tmp$> tar xf /var/services/homes/admin/tmp/gyb.tar.xz -C /var/services/homes/admin/tmp
~/tmp$> cd gyb
~/tmp/gyb> gyb --version
bash: /var/services/homes/admin/bin/gyb/gyb: cannot execute binary file: Exec format error
~/tmp/gyb (126)> ./gyb --version
Failed to execv() /tmp/staticx-FCmaje/gyb: Permission denied
~/tmp/gyb (3)>
```

Environment: Synology NAS DS412+ (Intel Atom D2700 Cedarview) running DSM 7.1.1

From the exit codes (126 and 3) it looks like the downloaded binary is not executable. I don't see why that would be the case though. The automated installer ran into the exact same issue as you can imagine since the above is just the manual execution of the same.

Can anyone give me some direction here?

Thanks.
Message has been deleted

Thomas V

unread,
May 28, 2023, 4:53:58 PM5/28/23
to Got Your Back: Gmail Backup
I just realized Synology DSM 7 mounts /tmp with noexec

```bash
~/tmp$> mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec)
```

I guess that means that as long as GYB unbundles the way it does to run I'm stuck. Short of remounting /tmp differently.
Reply all
Reply to author
Forward
0 new messages