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

rita won't run unless there's a terminal #20

Open
william-stearns opened this issue Aug 13, 2024 · 2 comments
Open

rita won't run unless there's a terminal #20

william-stearns opened this issue Aug 13, 2024 · 2 comments

Comments

@william-stearns
Copy link
Contributor

william-stearns commented Aug 13, 2024

Rita (happens to be 5.0.7) runs fine when it's on an actual logged-in terminal. When run in the background, perhaps as a cron job, one gets the following errors:

ESC[90m2024-08-13T15:45:17ZESC[0m ESC[31mERRESC[0m ESC[1munable to display progress for connection correlationESC[0m ESC[36merror=ESC[0mESC[31mESC[1m"could not open a new TTY: open /dev/tty: no such device or address"ESC[0mESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[33mWRNESC[0m ESC[1mcancelling SSL connection linkingESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[31mERRESC[0m ESC[1munable to link open ssl connectionsESC[0m ESC[36merror=ESC[0mESC[31mESC[1m"context canceled"ESC[0mESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[33mWRNESC[0m ESC[1mcancelling SSL connection linkingESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[31mERRESC[0m ESC[1munable to link ssl connectionsESC[0m ESC[36merror=ESC[0mESC[31mESC[1m"context canceled"ESC[0mESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[33mWRNESC[0m ESC[1mcancelling HTTP connection linkingESC[0m
ESC[90m2024-08-13T15:45:17ZESC[0m ESC[31mERRESC[0m ESC[1munable to link http connectionsESC[0m ESC[36merror=ESC[0mESC[31mESC[1m"context canceled"ESC[0mESC[0m


        [!] could not perform connection linking: unable to display progress for connection correlation: could not open a new TTY: open /dev/tty: no such device or address

 Container rita-rita-1  Stopping
 Container rita-rita-1  Stopped

(reported by SL and CB). We confirmed that the same command ran fine and finished importing when run on an ssh connection.

It's not clear to me whether the "cancelling SSL connection linking", "unable to link open ssl connections" is related to this or not.

@william-stearns
Copy link
Contributor Author

Possibly relevant issue: charmbracelet/bubbletea#761

@william-stearns
Copy link
Contributor Author

There appears to be a workaround by using the "screen" utility's ability to provide a (detachable) terminal. Instead of running "rita import ...." one can run "screen -S importer -d -m rita import ....". (Tested by CB)

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

No branches or pull requests

1 participant