Got it

sudo:sorry,you are not allowed to preserve the environment

Created: Feb 26, 2022 07:07:14Latest reply: Feb 26, 2022 07:18:13 341 3 1 0 0
  HiCoins as reward: 0 (problem unresolved)

Hello, everyone!

I have one FusionStage.

During the management, the portal reports an error sudo: no tty present and no askpaas program specified.

Do you know how to solve the error?

  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Feb 26, 2022 07:18:13

Posted by piaopiaoran at 2022-02-26 07:17 Yes, I checked the log and found this error.

Dear,

If yes, perform the following steps:

1. On the managed node, run the following command:

echo "%paas ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

2. Check /etc/sudoers. If the #include /etc/sudoers.d/sudoers.paas line exists, delete it.

Hope this helps!


View more
  • x
  • convention:

All Answers
olive.zhao
olive.zhao Admin Created Feb 26, 2022 07:15:52

Hello, friend!

1. Log in to the managed node, view the /tmp/kubenode_install.log file, and check whether the logs contain the sudo no tty present and no askpaas program specified.

2. Check whether paas ALL=(ALL) NOPASSWD: ALL exists in the /etc/sudoers file.

Wait for your feedback!


View more
  • x
  • convention:

piaopiaoran
piaopiaoran Created Feb 26, 2022 07:17:31

Posted by olive.zhao at 2022-02-26 07:15 Hello, friend!1. Log in to the managed node, view the /tmp/kubenode_install.log file, and check whet ...
Yes, I checked the log and found this error.
View more
  • x
  • convention:

olive.zhao
olive.zhao Admin Created Feb 26, 2022 07:18:13

Posted by piaopiaoran at 2022-02-26 07:17 Yes, I checked the log and found this error.

Dear,

If yes, perform the following steps:

1. On the managed node, run the following command:

echo "%paas ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

2. Check /etc/sudoers. If the #include /etc/sudoers.d/sudoers.paas line exists, delete it.

Hope this helps!


View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.