Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Running under nohup causes 'Bad file descriptor' #299

Open
pmatos opened this issue Mar 11, 2020 · 0 comments
Open

Running under nohup causes 'Bad file descriptor' #299

pmatos opened this issue Mar 11, 2020 · 0 comments

Comments

@pmatos
Copy link

pmatos commented Mar 11, 2020

There's a bad file descriptor error when running gandi dns update through nohup:

gandi dns update foo.com home A xx.xx.xx.xx.xx
Traceback (most recent call last):
  File "/home/pi/gandi-dnsupdate/venv/bin/gandi", line 10, in <module>
    sys.exit(main())
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/gandi/cli/__main__.py", line 8, in main
    cli(obj={})
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/gandi/cli/core/cli.py", line 163, in invoke
    click.Group.invoke(self, ctx)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/gandi-dnsupdate/venv/local/lib/python2.7/site-packages/gandi/cli/commands/dns.py", line 123, in update
    content = click.get_text_stream('stdin').read()
IOError: [Errno 9] Bad file descriptor
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant