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

mc admin restart via remote (Ansible/ssh/...) fails since 2024-07-08T20-59-24Z #5096

Closed
markush81 opened this issue Dec 13, 2024 · 1 comment

Comments

@markush81
Copy link

Expected behavior

we can trigger mc admin restart via ssh as before

Actual behavior

mc: <ERROR> Unable to initialize service restart UI: could not open a new TTY: open /dev/tty: no such device or address.

Steps to reproduce the behavior

ssh minio01 -C "sudo /opt/minio-client-2024-07-03T20-17-25Z/mc admin service restart s3-uat-obs" 
Restart command successfully acknowledged by `s3-uat-obs` in 256 milliseconds. Type Ctrl-C to quit or wait to follow the status of the restart process.
┌────────────────────────────────────────────┬────────┐
│ HOST                                       │ STATUS │
├────────────────────────────────────────────┼────────┤
│ minio01:9000 │ ✔      │
│ minio02:9000 │ ✔      │
│ minio03:9000 │ ✔      │
│ minio04:9000 │ ✔      │
└────────────────────────────────────────────┴────────┘

Established quorum on `s3-uat-obs` successfully in 1 seconds
ssh minio01 -C "sudo /opt/minio-client-2024-07-08T20-59-24Z/mc admin service restart s3-uat-obs"
mc: <ERROR> Unable to initialize service restart UI: could not open a new TTY: open /dev/tty: no such device or address.

mc --version

mc version RELEASE.2024-07-08T20-59-24Z (commit-id=21d3ec0089a1fa297cbdc23db413012535e2ff9e)
Runtime: go1.22.5 linux/amd64
Copyright (c) 2015-2024 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>

System information

@harshavardhana
Copy link
Member

if you want to script and run it via a non-terminal do it via mc admin service restart --json

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

2 participants