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

Jessie bootstrap 2015.2 errors #562

Closed
pitatus opened this issue Mar 28, 2015 · 8 comments
Closed

Jessie bootstrap 2015.2 errors #562

pitatus opened this issue Mar 28, 2015 · 8 comments

Comments

@pitatus
Copy link

pitatus commented Mar 28, 2015

running sh install_salt.sh -P git 2015.2 produced the following:

python-apt is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-requests : Depends: python-urllib3 (>= 1.7.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 * ERROR: Failed to run install_debian_8_git_deps()!!!

manually installing python-urllib3 apt-get install python-urllib3 and rerunning bootstrap produced the following:

...
Switched to a new branch '2015.2'
Branch 2015.2 set up to track remote branch 2015.2 from origin.
 *  INFO: Cloning Salt's git repository succeeded
 *  INFO: Running config_salt()
 *  INFO: Running install_debian_8_git()
Searching for pyzmq
Reading https://pypi.python.org/simple/pyzmq/
Reading http://github.com/zeromq/pyzmq
Reading http://github.com/zeromq/pyzmq/downloads
Reading http://github.com/zeromq/pyzmq/releases
Best match: pyzmq 14.5.0
Downloading https://pypi.python.org/packages/source/p/pyzmq/pyzmq-14.5.0.zip#md5=f8d37fc3bfd17a855b9e439fd03121f0
Processing pyzmq-14.5.0.zip
Writing /tmp/easy_install-eoc7Oi/pyzmq-14.5.0/setup.cfg
Running pyzmq-14.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eoc7Oi/pyzmq-14.5.0/egg-dist-tmp-YiABfy
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'docs/gh-pages'
warning: no previously-included files found matching 'bundled/zeromq/src/Makefile*'
warning: no previously-included files found matching 'bundled/zeromq/src/platform.hpp'
warning: no previously-included files found matching 'zmq/libzmq*'
warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
warning: no previously-included files matching '.deps/*' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '.mailmap' found anywhere in distribution
warning: no previously-included files matching 'Makefile.am' found anywhere in distribution
warning: no previously-included files matching 'Makefile.in' found anywhere in distribution
pkg-config not found
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:
build/temp.linux-x86_64-2.7/scratch/tmp/easy_install-eoc7Oi/pyzmq-14.5.0/temp/timer_createPBTdu0.o: In function `main':
timer_createPBTdu0.c:(.text+0x15): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
    ZMQ version detected: 3.2.3
Warning: Detected ZMQ version: 3.2.3, but pyzmq targets ZMQ 4.0.5.
Warning: libzmq features and fixes introduced after 3.2.3 will be unavailable.
zmq/devices/monitoredqueue.c:8:22: fatal error: pyconfig.h: No such file or directory
 #include "pyconfig.h"
                      ^
compilation terminated.
************************************************
************************************************
************************************************
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
 * ERROR: Failed to run install_debian_8_git()!!!

manually installing libpython-dev apt-get install libpython-dev and rerunning bootstrap will finally finish but cannot start Salt:

...
running install_egg_info
Writing /usr/lib/python2.7/dist-packages/salt-2015.2.0rc1_251_g8800629.egg-info
 *  INFO: Running install_debian_git_post()
 *  INFO: Running install_debian_check_services()
 *  INFO: Running install_debian_restart_daemons()
Starting salt-minion (via systemctl): salt-minion.serviceFailed to start salt-minion.service: Unit salt-minion.service failed to load: No such file or directory.
 failed!
 *  INFO: Running daemons_running()
 * ERROR: salt-minion was not found running
 * ERROR: Failed to run daemons_running()!!!
 * ERROR: salt-minion was not found running. Pass '-D' to bootstrap-salt.sh when bootstrapping for additional debugging information...

running /etc/init.d/salt-minion start also produces:

[....] Starting salt-minion (via systemctl): salt-minion.serviceFailed to start salt-minion.service: Unit salt-minion.service failed to load: No such file or directory.
 failed!

Salt is installed and can now be run without startup/init scripts, salt-minion -d

@pitatus
Copy link
Author

pitatus commented Mar 28, 2015

Note: After a system reboot the salt-minion startup/init did work and started salt-minion...

@Moulde
Copy link

Moulde commented Jul 24, 2015

I have almost the same issue.
Except instead of install_debian.. etc. It says install_ubuntu_stable_deps.

The following packages have unmet dependencies:
 python-requests : Depends: python-urllib3 (>= 1.7.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
 * ERROR: Failed to run install_ubuntu_stable_deps()!!!

But when i try to install python-urllib3 by itself afterwards, it tells me the following

E: Package 'python-urllib3' has no installation candidate

My os is OSX - Yosemite. And i have the most recent version of virtualbox and vagrant installed.

@s0undt3ch
Copy link
Contributor

What version of the bootstrap script?

@Moulde
Copy link

Moulde commented Jul 24, 2015

Actually i don't really know. I use the default vagrant salt provisioner.
I am trying out your suggestion about adding bootstrap_options: "-P" to my vagrant file right at this moment.

@s0undt3ch
Copy link
Contributor

That has no interaction regarding the above urllib3 problem, which got fixed yesterday, so maybe the script is not yet up to date?

Can you make vagrant use the development version of the script?

@Moulde
Copy link

Moulde commented Jul 24, 2015

I think i got it working by copying the develop bootstrap script from https://bootstrap.saltstack.com/develop to my project, and altering the vagrantfile by defining what bootstrap script it should use like so

salt.bootstrap_script = "bootstrap-salt.sh"

Thank you for your help s0undt3ch 👍

Now i just got to fix the next error... :)
hashicorp/vagrant#5973

@s0undt3ch
Copy link
Contributor

Super!

@vutny
Copy link
Contributor

vutny commented Jan 26, 2016

@pitatus @s0undt3ch I think this could be closed as outdated.

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

5 participants