dgoodwin/tito — Issue #39: tito doesn't want to create /tmp/tito
Author: mccun934
Created: 2012-02-16 17:51:27+00:00
State: open

I ran 'tito release git' and ran into an error unrelated to files in /tmp/tito (expired ticket I think)

re-ran it and it complained about writing to /tmp/tito (permission denied) so I 'rm -rf /tmp/tito/'

next time I ran 'tito release git' I get:

$ tito release git
Will release to the following targets: git
Checking for tag [katello-cli-0.1.54-2] in git repo [git+ssh://git@example.com/scm/git/system-engine]
Releasing to target: git
Traceback (most recent call last):
File "/usr/bin/tito", line 23, in
CLI().main(sys.argv[1:])
File "/usr/lib/python2.6/site-packages/tito/cli.py", line 94, in main
return module.main(argv)
File "/usr/lib/python2.6/site-packages/tito/cli.py", line 602, in main
no_cleanup=self.options.no_cleanup)
File "/usr/lib/python2.6/site-packages/tito/release.py", line 349, in __init__
global_config, user_config, target, releaser_config, no_cleanup)
File "/usr/lib/python2.6/site-packages/tito/release.py", line 59, in __init__
build_dir, global_config, user_config, self.builder_args)
File "/usr/lib/python2.6/site-packages/tito/common.py", line 131, in create_builder
args=args)
File "/usr/lib/python2.6/site-packages/tito/builder.py", line 130, in __init__
prefix="rpmbuild-%s" % self.project_name_and_sha1)
File "/usr/lib64/python2.6/tempfile.py", line 318, in mkdtemp
_os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/tmp/tito/rpmbuild-katello-cli-247912aa5f581b02e9c45402e0e1dbcb6ba79c53EJn4eq'

Only workaround was to do a 'mkdir /tmp/tito'