1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #4646 resolved

pre-receive hook declined

Virgilio Favero Neto
created an issue

Hi There,

I'm trying to push some stuff to one of my repos and I'm getting the message below. I've seen that some other users have created similar issues.

vneto:mobile-metro-tablefinder vneto$ git push origin v1.1 Total 0 (delta 0), reused 0 (delta 0) remote: Traceback (most recent call last): remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/scripts/git/hooks/pre-receive", line 9, in <module> remote: from bitbucket.apps.repo2.hooks import prehooks remote: File "/data/vol1/www/venvs/deployed/bitbucket/apps/repo2/hooks.py", line 5, in <module> remote: from django.contrib.auth.models import User remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/contrib/auth/models.py", line 7, in <module> remote: from django.db import models remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/db/init.py", line 14, in <module> remote: if not settings.DATABASES: remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/utils/functional.py", line 276, in getattr remote: self._setup() remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/conf/init.py", line 42, in _setup remote: self._wrapped = Settings(settings_module) remote: File "/opt/python/domains/bitbucket.org/current/bitbucket/local/env/lib/python2.7/site-packages/django/conf/init.py", line 139, in init remote: logging_config_func(self.LOGGING) remote: File "/opt/python/2.7.3/lib/python2.7/logging/config.py", line 777, in dictConfig remote: dictConfigClass(config).configure() remote: File "/opt/python/2.7.3/lib/python2.7/logging/config.py", line 575, in configure remote: '%r: %s' % (name, e)) remote: ValueError: Unable to configure handler 'backup': [Errno 13] Permission denied: '/data/vol1/www/venvs/deployed/bitbucket/local/logs/backup.log' To git@bitbucket.org:fairfax/mobile-metro-tablefinder.git ! [remote rejected] v1.1 -> v1.1 (pre-receive hook declined) error: failed to push some refs to 'git@bitbucket.org:fairfax/mobile-metro-tablefinder.git'