[GH-ISSUE #11] Installing OliveTin fails and locks up TUI when custom MOTD runs neofetch #3

Closed
opened 2026-02-26 18:43:07 +03:00 by kerem · 4 comments
Owner

Originally created by @unclesp1d3r on GitHub (Jun 21, 2025).
Original GitHub issue: https://github.com/devnullvoid/pvetui/issues/11

Originally assigned to: @devnullvoid on GitHub.

Describe the bug
When attempting to install OliveTin through the community scripts in the Proxmox TUI tool, the script fails and causes the TUI to become unresponsive if the Proxmox host has a custom /etc/motd. The failure seems to originate from the OliveTin script prompting for input that isn’t handled properly, resulting in repeated "Please answer yes or no." messages that flood the terminal. The TUI then hangs and requires multiple manual interrupts to regain control.

To Reproduce
Steps to reproduce the behavior:

  1. Select a Proxmox server and press m to open the menu.

  2. Choose Tools from the menu.

  3. Select OliveTin from the Script Selection menu.

  4. Press the Install button.

  5. Terminal output floods with Please answer yes or no.—likely several thousand lines.

  6. The client becomes unresponsive. Press Ctrl+C to interrupt.

  7. The following error message appears, but the TUI remains unresponsive until a second interrupt:

    Please answer yes or no.
    Please answer yes or no.
    ...
    ^C
    Script installation failed: script installation failed: exit status 255
    
    Press Enter to return to the TUI...
    
    ^C%
    

Expected behavior
While successful installation of OliveTin would be ideal, a failure should not leave the TUI in a locked or unusable state. It should handle unexpected input/output gracefully, return to the main menu, and ideally provide an informative error message. If cleanup of the failed install is feasible, that would also improve the user experience.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: macOS 15.5
  • Shell: zsh
  • Go version: go1.24.4 darwin/arm64

Server (please complete the following information):

  • OS: Proxmox VE 8.4.1 x86_64
  • Shell: bash 5.2.15

Additional context
The Proxmox host is configured to run neofetch automatically via /etc/motd on login shells. This likely injects unexpected terminal output during script execution, which seems to confuse or break the OliveTin install process, resulting in repeated prompts for user input. While this is a non-default configuration, it’s not uncommon for administrators to include visual or diagnostic output in their MOTDs. More defensive handling of unexpected output (or a non-interactive execution environment) could improve the resilience of the TUI tool in these cases.

Thanks again for the effort on this tool—this kind of functionality is a welcome addition to Proxmox, and I’m happy to help improve it.

Originally created by @unclesp1d3r on GitHub (Jun 21, 2025). Original GitHub issue: https://github.com/devnullvoid/pvetui/issues/11 Originally assigned to: @devnullvoid on GitHub. **Describe the bug** When attempting to install OliveTin through the community scripts in the Proxmox TUI tool, the script fails and causes the TUI to become unresponsive if the Proxmox host has a custom `/etc/motd`. The failure seems to originate from the OliveTin script prompting for input that isn’t handled properly, resulting in repeated "Please answer yes or no." messages that flood the terminal. The TUI then hangs and requires multiple manual interrupts to regain control. **To Reproduce** Steps to reproduce the behavior: 1. Select a Proxmox server and press `m` to open the menu. 2. Choose `Tools` from the menu. 3. Select `OliveTin` from the Script Selection menu. 4. Press the `Install` button. 5. Terminal output floods with `Please answer yes or no.`—likely several thousand lines. 6. The client becomes unresponsive. Press `Ctrl+C` to interrupt. 7. The following error message appears, but the TUI remains unresponsive until a second interrupt: ```text Please answer yes or no. Please answer yes or no. ... ^C Script installation failed: script installation failed: exit status 255 Press Enter to return to the TUI... ^C% ``` **Expected behavior** While successful installation of OliveTin would be ideal, a failure should not leave the TUI in a locked or unusable state. It should handle unexpected input/output gracefully, return to the main menu, and ideally provide an informative error message. If cleanup of the failed install is feasible, that would also improve the user experience. **Screenshots** N/A **Desktop (please complete the following information):** - OS: macOS 15.5 - Shell: zsh - Go version: go1.24.4 darwin/arm64 **Server (please complete the following information):** - OS: Proxmox VE 8.4.1 x86_64 - Shell: bash 5.2.15 **Additional context** The Proxmox host is configured to run `neofetch` automatically via `/etc/motd` on login shells. This likely injects unexpected terminal output during script execution, which seems to confuse or break the OliveTin install process, resulting in repeated prompts for user input. While this is a non-default configuration, it’s not uncommon for administrators to include visual or diagnostic output in their MOTDs. More defensive handling of unexpected output (or a non-interactive execution environment) could improve the resilience of the TUI tool in these cases. Thanks again for the effort on this tool—this kind of functionality is a welcome addition to Proxmox, and I’m happy to help improve it.
kerem 2026-02-26 18:43:07 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@unclesp1d3r commented on GitHub (Jun 22, 2025):

With further experimentation, it seems that either the community script is not exiting correctly, or more likely, the TUI's SSH session is not recognizing the script's exit and simply hangs. Even when the community script exits properly, the TUI does not close the SSH session and return to the menu, regardless of how many times I press Enter.

For example, installing Apache Tika, returns this prompt after the install, but pressing enter just adds a new line to the terminal and does not return to the TUI.

Apache Tika installed successfully!
You may need to refresh your node/guest list to see any new resources.

Press Enter to return to the TUI...


<!-- gh-comment-id:2993875009 --> @unclesp1d3r commented on GitHub (Jun 22, 2025): With further experimentation, it seems that either the community script is not exiting correctly, or more likely, the TUI's SSH session is not recognizing the script's exit and simply hangs. Even when the community script exits properly, the TUI does not close the SSH session and return to the menu, regardless of how many times I press Enter. For example, installing Apache Tika, returns this prompt after the install, but pressing enter just adds a new line to the terminal and does not return to the TUI. ```text Apache Tika installed successfully! You may need to refresh your node/guest list to see any new resources. Press Enter to return to the TUI... ```
Author
Owner

@devnullvoid commented on GitHub (Jun 22, 2025):

thanks for the detailed bug report, this is very helpful! I'm able to reproduce both issues and I'm working on a fix.

<!-- gh-comment-id:2994454498 --> @devnullvoid commented on GitHub (Jun 22, 2025): thanks for the detailed bug report, this is very helpful! I'm able to reproduce both issues and I'm working on a fix.
Author
Owner

@devnullvoid commented on GitHub (Jun 23, 2025):

@unclesp1d3r this should be fixed in 1e49c16c5d which is included in the latest release (v0.6.0)

give it a try and let me know if there are any further issues.

<!-- gh-comment-id:2997065280 --> @devnullvoid commented on GitHub (Jun 23, 2025): @unclesp1d3r this should be fixed in 1e49c16c5d036f545a7dc01114780acbde0f3bc4 which is included in the latest release (v0.6.0) give it a try and let me know if there are any further issues.
Author
Owner

@unclesp1d3r commented on GitHub (Aug 3, 2025):

Sorry for the late reply! This fixed the issue and worked like a charm. Thanks!

<!-- gh-comment-id:3148568518 --> @unclesp1d3r commented on GitHub (Aug 3, 2025): Sorry for the late reply! This fixed the issue and worked like a charm. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pvetui#3
No description provided.