Skip to content
This repository has been archived by the owner on May 14, 2018. It is now read-only.

dokku run in cron: "cannot enable tty mode on non tty input" #277

Open
caioariede opened this issue Jul 8, 2015 · 4 comments
Open

dokku run in cron: "cannot enable tty mode on non tty input" #277

caioariede opened this issue Jul 8, 2015 · 4 comments

Comments

@caioariede
Copy link

I'm trying to run a dokku run command in a cron job, but getting the following error:

time="2015-07-08T19:03:02-04:00" level="fatal" msg="cannot enable tty mode on non tty input"

I found this commit on dokku that may help: dokku/dokku@3e100e3

@caioariede
Copy link
Author

It seems that a good way to test it is by using:

:| dokku run <app> date

@brycethornton
Copy link

I'm running into this as well. The commit mentioned above does seem to solve this for dokku.

@Inza
Copy link

Inza commented Jul 15, 2016

Any news here? I am running into this issue too when executing rake commands in Rails environment remotely (via the ssh dokku@HOST run APP rake db:create for example).

It says cannot enable tty mode on non tty input

Because the ssh for user dokku is tunelled directly to the dokku command (as is the default AND desired behavior) the ssh session will not receive interactive tty (which is OK). The dokku command should be able to live with that...

Do you plan to do similar fix which original dokku did?

Thanks!

@romaninsh
Copy link

There are no active developers around so you should make PR yourself

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

4 participants