Salt-bootstrap: How much space is needed in /tmp ?

Created on 3 Sep 2018  路  2Comments  路  Source: saltstack/salt-bootstrap

Description of Issue/Question

I can't install the minion because i'm running out of space in the /tmp directory
How much space do i really need, and can i change the directory used as a tmp ?

I try adding 10Gb of storage on /tmp (Overkill) and that fixed the issue.

Setup

Debian 9 VM,
/tmp size 360M, 335M Avail
Running the script from the home dir of my user.

Steps to Reproduce Issue

Limit you /tmp to 335M or lower
run $ sudo sh bootstrap-salt.sh -D git develop
get :

 *  INFO: Running version: 2018.08.15
 *  INFO: Executed by: sh
 *  INFO: Command line: 'bootstrap-salt.sh -D git develop'

 *  INFO: System Information:
 *  INFO:   CPU:          GenuineIntel
 *  INFO:   CPU Arch:     x86_64
 *  INFO:   OS Name:      Linux
 *  INFO:   OS Version:   4.9.0-8-amd64
 *  INFO:   Distribution: Debian 9.5

 * DEBUG: Binaries will be searched using the following $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 *  INFO: Installing minion
 *  INFO: Found function install_debian_9_git_deps
 * DEBUG: DEPS_INSTALL_FUNC=install_debian_9_git_deps
 * DEBUG: config_debian_9_git_salt not found....
 * DEBUG: config_debian_9_5_git_salt not found....
 * DEBUG: config_debian_9_salt not found....
 * DEBUG: config_debian_9_5_salt not found....
 * DEBUG: config_debian_git_salt not found....
 * DEBUG: config_debian_salt not found....
 *  INFO: Found function config_salt
 * DEBUG: CONFIG_SALT_FUNC=config_salt
 * DEBUG: preseed_debian_9_git_master not found....
 * DEBUG: preseed_debian_9_5_git_master not found....
 * DEBUG: preseed_debian_9_master not found....
 * DEBUG: preseed_debian_9_5_master not found....
 * DEBUG: preseed_debian_git_master not found....
 * DEBUG: preseed_debian_master not found....
 *  INFO: Found function preseed_master
 * DEBUG: PRESEED_MASTER_FUNC=preseed_master
 *  INFO: Found function install_debian_9_git
 * DEBUG: INSTALL_FUNC=install_debian_9_git
 * DEBUG: install_debian_9_git_post not found....
 * DEBUG: install_debian_9_5_git_post not found....
 * DEBUG: install_debian_9_post not found....
 * DEBUG: install_debian_9_5_post not found....
 *  INFO: Found function install_debian_git_post
 * DEBUG: POST_INSTALL_FUNC=install_debian_git_post
 * DEBUG: install_debian_9_git_restart_daemons not found....
 * DEBUG: install_debian_9_5_git_restart_daemons not found....
 * DEBUG: install_debian_9_restart_daemons not found....
 * DEBUG: install_debian_9_5_restart_daemons not found....
 * DEBUG: install_debian_git_restart_daemons not found....
 *  INFO: Found function install_debian_restart_daemons
 * DEBUG: STARTDAEMONS_INSTALL_FUNC=install_debian_restart_daemons
 * DEBUG: daemons_running_debian_9_git not found....
 * DEBUG: daemons_running_debian_9_5_git not found....
 * DEBUG: daemons_running_debian_9 not found....
 * DEBUG: daemons_running_debian_9_5 not found....
 * DEBUG: daemons_running_debian_git not found....
 * DEBUG: daemons_running_debian not found....
 *  INFO: Found function daemons_running
 * DEBUG: DAEMONS_RUNNING_FUNC=daemons_running
 * DEBUG: install_debian_9_git_check_services not found....
 * DEBUG: install_debian_9_5_git_check_services not found....
 * DEBUG: install_debian_9_check_services not found....
 * DEBUG: install_debian_9_5_check_services not found....
 * DEBUG: install_debian_git_check_services not found....
 *  INFO: Found function install_debian_check_services
 * DEBUG: CHECK_SERVICES_FUNC=install_debian_check_services
 *  INFO: Running install_debian_9_git_deps()
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Hit:1 http://www.rudder-project.org/apt-4.3 stretch InRelease
Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
Hit:3 http://security.debian.org stretch/updates InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:5 http://ftp.fr.debian.org/debian stretch Release
Hit:6 https://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease
Reading package lists...
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Reading package lists...
Building dependency tree...
Reading state information...
pciutils is already the newest version (1:3.5.2-1).
procps is already the newest version (2:3.3.12-3+deb9u1).
python-yaml is already the newest version (3.12-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (1.4.8).
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
dirmngr is already the newest version (2.1.18-8~deb9u2).
gnupg2 is already the newest version (2.1.18-8~deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.WyfHTCAt8S/gpg.1.sh --keyserver-options ca-cert-file=/etc/ssl/certs/ca-certificates.crt --fetch-keys https://repo.saltstack.com/apt/debian/9/amd64/latest/SALTSTACK-GPG-KEY.pub
gpg: keyserver option 'ca-cert-file' is obsolete; please use 'hkp-cacert' in dirmngr.conf
gpg: requesting key from 'https://repo.saltstack.com/apt/debian/9/amd64/latest/SALTSTACK-GPG-KEY.pub'
gpg: key 0E08A149DE57BFBE: "SaltStack Packaging Team <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
Hit:3 http://www.rudder-project.org/apt-4.3 stretch InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:5 http://ftp.fr.debian.org/debian stretch Release
Hit:6 https://repo.saltstack.com/apt/debian/9/amd64/latest stretch InRelease
Reading package lists...
 * DEBUG: Checking if apt process is currently running.
 * DEBUG: No apt processes are currently running.
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 * DEBUG: Installed git version: 2.11.0
 *  WARN: The git revision being installed does not match a Salt version tag. Shallow cloning disabled
Cloning into 'salt'...
fatal: write error: No space left on device
fatal: index-pack failed
 * ERROR: Failed to run install_debian_9_git_deps()!!!
 * DEBUG: Removing the logging pipe /tmp/bootstrap-salt.logpipe
 * DEBUG: Killing logging pipe tee's with pid(s): 577

Versions and Systems

Debian 4.9.110-3+deb9u4
bootstrap-salt.sh -- Version 2018.08.15

Question

All 2 comments

Hi @poofyteddy - Sorry for not responding sooner on this. Time got away from me. :)

You'll need at least as much space there as it takes to clone salt from GitHub. GitHub's API lists the size as 419673.

Which you can find with the following command:

curl -s -k https://api.github.com/repos/saltstack/salt | grep size

Thank's ! This wasn't really an issue, so time wasn't important, Now i know !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianholland99 picture brianholland99  路  14Comments

ymasson picture ymasson  路  3Comments

bewing picture bewing  路  4Comments

nickgarber picture nickgarber  路  14Comments

chrisnew picture chrisnew  路  8Comments