-
Notifications
You must be signed in to change notification settings - Fork 132
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
Memory errors on Showing, Disk Space runs out on Create #122
Comments
I'm on CentOS 5.7, running Python 2.6 and blueprint grabbed from GitHub on March 24th using: The VPS I'm on has 8 GB of ram, the aforementioned 4.5GB of /tmp space, and plenty of room on the rest of the partitions. I'd assume that tarballing up the source files might be taking up that space, but I can't imagine it's 4.5 GB of compiled programs, unless it's trying to package up all of the files uploaded to the websites hosted on this box. |
Update: blueprint create production-test-as-root # [blueprint] using cached blueprintignore(5) rules # [blueprint] searching for configuration files # [blueprint] searching for APT packages # [blueprint] searching for software built from source # [blueprint] searching for Python packages # [blueprint] searching for npm packages # [blueprint] searching for PEAR/PECL packages # [blueprint] searching for Yum packages # [blueprint] searching for Ruby gems # [blueprint] searching for service dependencies error: 45109ada74b47cb49801ddb24df33b8b58239787.tar: does not exist and --remove not passed fatal: Unable to process path 45109ada74b47cb49801ddb24df33b8b58239787.tar Traceback (most recent call last): File "/usr/local/bin/blueprint-create", line 74, in b = blueprint.cli.create(options, args) File "/usr/lib/python2.6/site-packages/blueprint/cli.py", line 39, in create b.commit(options.message or '') File "/usr/lib/python2.6/site-packages/blueprint/__init__.py", line 411, in commit git.git('update-index', '--add', os.path.abspath(filename)) File "/usr/lib/python2.6/site-packages/blueprint/git.py", line 83, in git raise GitError(p.returncode) blueprint.git.GitError: 128 Running blueprint list returns nothing (i.e. no branches have been created) Running the git testing script from #54 returns these errors: fatal: Not a valid object name production-test-as-root git ls-tree: 128 BLOB: fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions 0 git show: 0 Because of the space issue it seems like it may be more related to #79, but I am unsure of that. Running 'find /etc /usr/local -size +1G -exec ls -lh {} ;' reveals that my apache logs are in /usr/local/... (we compiled apache by hand and this is the server root) and one of them (/usr/local/httpd/httpd-2.2.17/logs/access_log.00 is 1.3 GB. Added the path as '/usr/local/httpd/httpd-2./logs/' to ~/.blueprintignore Re-running blueprint create still results in the same error. time blueprint create production-test-as-root # [blueprint] parsing blueprintignore(5) rules # [blueprint] searching for configuration files # [blueprint] searching for APT packages # [blueprint] searching for software built from source # [blueprint] searching for Python packages # [blueprint] searching for npm packages # [blueprint] searching for PEAR/PECL packages # [blueprint] searching for Yum packages # [blueprint] searching for Ruby gems # [blueprint] searching for service dependencies error: 53e2ed69bf50ac48f20c52a2fa579191ce1635d1.tar: does not exist and --remove not passed fatal: Unable to process path 53e2ed69bf50ac48f20c52a2fa579191ce1635d1.tar Traceback (most recent call last): File "/usr/local/bin/blueprint-create", line 74, in b = blueprint.cli.create(options, args) File "/usr/lib/python2.6/site-packages/blueprint/cli.py", line 39, in create b.commit(options.message or '') File "/usr/lib/python2.6/site-packages/blueprint/__init__.py", line 411, in commit git.git('update-index', '--add', os.path.abspath(filename)) File "/usr/lib/python2.6/site-packages/blueprint/git.py", line 83, in git raise GitError(p.returncode) blueprint.git.GitError: 128 real 15m30.596s user 2m36.622s sys 0m45.616s Moved the blueprintignore file from /root/.blueprintignore to /etc/blueprintignore results in the same error, but it doesn't look like it re-read the file, probably because it has the same ctime, though it actually takes a minute longer to run. time blueprint create production-test-as-root # [blueprint] using cached blueprintignore(5) rules # [blueprint] searching for configuration files # [blueprint] searching for APT packages # [blueprint] searching for software built from source # [blueprint] searching for Python packages # [blueprint] searching for npm packages # [blueprint] searching for PEAR/PECL packages # [blueprint] searching for Yum packages # [blueprint] searching for Ruby gems # [blueprint] searching for service dependencies error: 24a6544825471f2c51325a1821b500591bd7f7df.tar: does not exist and --remove not passed fatal: Unable to process path 24a6544825471f2c51325a1821b500591bd7f7df.tar Traceback (most recent call last): File "/usr/local/bin/blueprint-create", line 74, in b = blueprint.cli.create(options, args) File "/usr/lib/python2.6/site-packages/blueprint/cli.py", line 39, in create b.commit(options.message or '') File "/usr/lib/python2.6/site-packages/blueprint/__init__.py", line 411, in commit git.git('update-index', '--add', os.path.abspath(filename)) File "/usr/lib/python2.6/site-packages/blueprint/git.py", line 83, in git raise GitError(p.returncode) blueprint.git.GitError: 128 real 16m23.520s user 2m37.678s sys 0m46.271s Perhaps the path was not specified correctly? Changing the blueprintignore path to /usr/local/httpd/httpd-2.2.17/logs/* results in the same error, which I won't post again. Maybe it has something to do with the fact that I've moved the tmp.tar creation place? Though it seems that it would get moved to the right place before the git add. Do I just need to repartition and add more space to /tmp for this to actually work? Or is there some way to find out what in the world is chewing up so much disk space and causing git to fail? |
Oh, also, my env is: HOSTNAME=mybox SHELL=/bin/bash TERM=xterm-256color HISTSIZE=500 USER=root LS_COLORS= MAIL=/var/spool/mail/root PATH=/usr/local/git/git-1.7.4.2/bin:/objs/bzr/bzr-2.3b1:/usr/local/drush:/usr/local/php/php-5.2.17/bin:/usr/local/httpd/httpd-2.2.17/bin:/usr/local/ncurses/ncurses-5.7/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jre1.6.0_14/bin:/root/bin INPUTRC=/etc/inputrc PWD=/root JAVA_HOME=/usr/java/jre1.6.0_14/bin/java LANG=en_US.UTF-8 PS1=\[\e[1;31m\][\u@\h \w]\$\[\e[0m\] SHLVL=1 HOME=/root LOGNAME=root LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/env OLDPWD=/usr/lib/python2.6/site-packages/blueprint/backend and I get to root via 'sudo su -' |
I'm running out of memory in my /tmp folder as well (10Gb). Looking to set a custom temp directory but I've found nothing. Workaround for me is to ignore things that take a large amount of space (virtual machines residing in /usr/local/share). |
This may need to be two separate issues.
As normal user:
As normal user:
As root user:
But I can see no difference in file system usage from before and after. I didn't check it while it was working, I was focused on memory usage. Where does the temporary file get created? There is 4.5G free in my /tmp partition, should it be more? What is it doing that requires so much space?
The text was updated successfully, but these errors were encountered: