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

"/dev/fd/62: Operation not supported" errors on FreeBSD #143

Open
tagplus5 opened this issue Sep 14, 2016 · 6 comments
Open

"/dev/fd/62: Operation not supported" errors on FreeBSD #143

tagplus5 opened this issue Sep 14, 2016 · 6 comments

Comments

@tagplus5
Copy link

FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789:

When i make backup or show list or show status, i have errors:

/usr/local/bin/duplicity-backup: line 279: /dev/fd/62: Operation not supported
/usr/local/bin/duplicity-backup: line 281: /dev/fd/62: Operation not supported
/usr/local/bin/duplicity-backup: line 298: 3: Bad file descriptor

(/usr/local/bin/duplicity-backup is the symlink to a duplicity-backup.sh)

@zertrin
Copy link
Owner

zertrin commented Sep 29, 2016

Hum, it looks like redirecting file descriptors to subprocesses isn't supported on FreeBSD... As I never used FreeBSD myself, I'm not sure how to fix this. Maybe you could report here which version of bash your FreeBSD is running.

I'm not really willing to rollback the full rework of logging, however maybe there is a workaround for FreeBSD. In the worse case, it may be possible to disable tee'ing stderr/stdout for FreeBSD only, but that would be the least preferred solution.

@tagplus5
Copy link
Author

GNU bash, version 4.3.42(1)-release (amd64-portbld-freebsd10.1)

@ghost
Copy link

ghost commented Oct 9, 2016

I don't get this error with the stable branch (obviously) nor with the master branch from a few seconds ago. Logfile output gets printed to stdout (don't know if it's supposed to do that but it's OK for me) and everything works fine. It doesn't even matter whether I have fdescfs mounted or not (a FreeBSD thing one has to do when using bash).

FreeBSD 11.0-RELEASE-p1
duplicity-backup.sh v1.2
duplicity 0.7.10
GNU bash, version 4.4.0(0)-release (armv6-portbld-freebsd11.0)

@zertrin
Copy link
Owner

zertrin commented Oct 13, 2016

From some searches online I've found this possible solution: (from rbenv/rbenv#401 (comment) )

sudo mount -f fdescfs fdescfs /dev/fd

Could you try and report if it changes anything?

The issue seems that

bash now requires fdescfs(5) mounted on /dev/fd which FreeBSD does not yet do as default.

Other useful pages:

@tagplus5
Copy link
Author

tagplus5 commented Oct 23, 2016

sudo mount -t fdescfs fdesc /dev/fd
fix this issue on FreeBSD 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789

@reportguy
Copy link

I ran into this issue within a FreeBSD Jail running 10.3 while using ezjail. I set an option in the ezjail specific jail's conf to resolve:

export jail_myjail_fdescfs_enable="YES"

@zertrin zertrin changed the title errors on freebsd "/dev/fd/62: Operation not supported" errors on FreeBSD Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants