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
14.04 / salt '*' test.ping Failed to authenticate, is this user permitted to execute commands? #12248
Comments
|
This morning everything is operating correctly, i prefer to let this bug open at the moment, but for now, it seems more of an installation temporary problem as during this upgrade:
I so also suspect a dns propagation / ip routing propragation problem... So this may be just a false positive bug and more a big PEBCAK :) /cc @regilero |
|
Please tell us again if have new ideas what might caused your problems. I also discovered your described behaviour in my setup (Debian 7, Packages from Salt-Repo), but sometimes it works a whole week without any problems |
|
We'll leave this open for now, but if it doesn't pop up, let's close it in a few days. |
|
Also, unless I'm missing something 14.04 is not a valid salt version. Or it's very very old if it's from the 0.14 release. Did you mean 2014.1.3? |
|
@basepi, ubuntu 14.04 ;) |
|
i mentionned that i used last salt/develop tip yesterday... so f43dfd5 |
|
@kiorky Wow, that makes wayyyyy more sense. Thanks. |
|
@kiorky We were going to wait and see if you saw this again. Is this safe to close now? |
|
@cachedout I'm seeing this on Trusty 14.04 with Salt 2014.1.4 as well. Everything works fine on the first box (using VirtualBox), but when I test the box I have packaged from this VM, I see the same error after running Let me know if there is any information that I can provide to help debug this. |
|
@ifnull Thanks for letting us know. We'll keep this open and try to figure out what's going on here. |
|
Possibly related: https://groups.google.com/forum/#!topic/salt-users/G4PSRZZSwBM |
|
I am having the same problem mentioned here. |
|
Looks like it is failing here: There was a recent commit that mentions that there are other reasons for failure here besides authentication: I was able to reduce the problem to the following command. In this example, |
|
@cachedout @basepi From what I can tell, the problem occurs in the following lines of code. https://github.com/saltstack/salt/blob/develop/salt/client/__init__.py#L1366-L1371 Payload is unpredictably being set to an empty string: |
|
Very strange, thanks for the updates! |
|
I no longer believe this is related to ZeroMQ 4. I downgraded to ZeroMQ 3 and had the same result. Uninstall ZMQcd /tmp
apt-get remove libzmq3 libzmq3-dev -y
pip uninstall pyzmq -yInstall ZMQ 3wget http://download.zeromq.org/zeromq-3.2.4.tar.gz
tar xvzf zeromq-3.2.4.tar.gz
cd ./zeromq-3.2.4
./configure
make
make install
ldconfig
pip install pyzmq --install-option="--zmq=/usr/local/"
cd ../
rm -fR ./zeromq-3*Confirmsalt --versions-reportNotes
References
|
|
I am not encountering this error on the following Ubuntu 14.04 configuration inside an LXC: |
|
Just tried with 2014.1.3 and I'm still seeing the issue. It may be worth noting that I am using GitFS. I'm going to run a couple tests with GitFS excluded. |
|
@danielfrg can you tell us what your setup looks like? Are you running this inside of virtualbox, vagrant, etc.? What does your output of --versions-report show? |
Solution / WorkaroundThe issue I was having was resolved by settings the number of Virtualbox CPUs from NotesI'm thinking this is a Virtualbox issue. From what I have been reading there isn't currently a performance gain using more than 1 CPU with Virtualbox. Referenceshttps://www.virtualbox.org/ticket/5957 |
|
I saw the issue on EC2. I was updating a master instance from 12.04 to 14.04 and saw the I tried on 13.10 and everything is working fine. I could try to reproduce the error if needed but it was just a base ubuntu 14.04 image on EC2. |
|
@danielfrg what ec2 instance were you using? |
|
m3.large both master and minions |
|
@cackovic This is the behavior most people saw originally in this issue, and should be fixed in an upcoming release of salt (the fix was in the bootstrap script, and I don't think we got the latest bootstrap version into 2014.1.11, but it will be in the next release after that.) |
|
@basepi thanks for the fast update. IMHO this bug is bad enough for a hotfix :) |
|
@cackovic Just to verify, did you install via bootstrap or manually? |
|
@basepi it was with a bootstrap. I reinstalled manually and it seems to be ok. |
|
Awesome, glad you got around the issue. The latest bootstrap script has the fix, and the next release of salt should have the latest bootstrap script. |
|
Hi @cachedout , the saltstack/salt-bootstrap#445 is marked as merged, but the file https://github.com/cachedout/salt-bootstrap/blob/a29dc8e519ada8acff9d15efd87290958321d60a/bootstrap-salt.sh is different from https://bootstrap.saltstack.com . I'm using "wget -q -O - https://bootstrap.saltstack.com | sh -s -- -M -X" to install salt-master on Debian 7.6 and get the same error "Failed to authenticate, is this user permitted to execute commands?" when run "sudo salt '*' state.highstate" |
|
@s0undt3ch any idea why bootstrap.saltstack.com doesn't have that commit? Did it get changed again? |
|
Oh, wait, maybe it was just never merged.... |
|
@jessehu - so the script at https://bootstrap.saltstack.com runs off of the |
|
+1 for fixing stable sooner rather than later |
|
I wouldn't be surprised if it is updated by now. @s0undt3ch or @rallytime may know. |
|
Similar issues from a host that's a master and a minion. When I try to run I get the Authentication error everyone else mentions. When I try to run I get this: And I'm sure my key is accepted already and that I'm running as sudo. EDIT: |
|
I'm seeing this predictably with 2014.7 on Debian Wheezy when running an orchestration that kicks off a backup script with cmd.run. However, running cmd.run against the same minions succeeds without error.
|
|
@starchy That actually sounds like a different issue. Mind opening a new issue? |
|
I'm seeing this message: [root@ip-172-31-6-75 master]# salt '*' test.ping This is with CentOS 7 for both the Master and salt-cloud provisioned instances in EC2. |
|
@kitplummer |
|
Are there any cases currently where people can reliably reproduce the error |
|
Hi! We hit this message yesterday. The reason seems to be that restarting salt master somehow left one process hanging. salt --versions-report It's not much, but i hope it helps (and keeps the conversation going) :) |
|
Interesting, thanks for the update @saltuser. I'm sure the extra process didn't suffer. ;) |
|
@cachedout I can confirm this behavior happens when you change the number of CPUs on a Virtual Machine. Basically I bumped the Procs to 2 sockets / 4 cores/socket when I bumped it back to the original 1/2 it worked again. LSB Release No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trustyUname Info 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:36:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Salt: 2014.1.1
Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
Jinja2: 2.7.2
M2Crypto: 0.21.1
msgpack-python: 0.1.10
msgpack-pure: Not Installed
pycrypto: 2.6.1
PyYAML: 3.10
PyZMQ: 14.0.1
ZMQ: 4.0.4running on VMware ESXi, 5.0.0, 623860 UPDATE: I dug a little further. Most of my minions we installed from PPA so were on Salt 2014.7.1 and my master was not and thus was on the above version. I upgraded the master to pull from the PPA version and now that its on 2014.7.1 too, I can confirm that this issue clears up. 😄 |
|
Sorry for the slow response. As @rallytime pointed out, https://bootstrap.saltstack.com uses the stable branch of the repository. I try to merge the develop branch as often as possible with the new fixes. If you want to use the development version of the bootstrap script, please use https://bootstrap.saltstack.com/develop |
|
This is a loooong issue. :] At this point, I think we've more or less at the point where the issue as it was originally reported was traced back to lingering salt-master procs during an incomplete restart. Since it looks like that issue has been addressed via bootstrap and (hopefully) packaging changes, I am going to finally go ahead and close this. If people have lingering issues that are reproduceable, please open them in separate issues and we will track them individually going forward instead of having this monolithic issue. Thanks. |
|
I have restarted the salt-master and it worked !! |
Since my upgrade to 14.04 and sync of @makinacorpus fork to last develop, something is weird.
I get intermittent total unfunctionnality of the saltmaster , on a period of 1 at 2 minutes, i cant ping any minion, and the next 2 minutes ping is working, and 2 minutes after this does not work.
I rebuilded all the eggs locally installed to be sure of the linking, but this seems not to be sufficient.
Ill check tomorow to double check if this is one of our maintainance crons, but i would suspect yet another regression.
The text was updated successfully, but these errors were encountered: