Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-7859

Space in STASH_HOME path causes push to fail after upgrade to Bitbucket Server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • 4.0.0, 4.0.1
    • None
    • None

    Description

      After the upgrade from Stash to Bitbucket Server attempts to push code will fail if the path to STASH_HOME contains spaces.

      An error similar to the following shows up in the client:

      Counting objects: 50, done.
      Delta compression using up to 4 threads.
      Compressing objects: 100% (50/50), done.
      Writing objects: 100% (50/50), 10.00 KiB | 0 bytes/s, done.
      Total 50 (delta 40), reused 0 (delta 0)
      remote: hooks/pre-receive: line 9: D:\Atlassian: Is a directory
      remote: hooks/pre-receive: line 9: exec: D:\Atlassian: cannot execute: Is a directory
      To http://grefosco@localhost:7990/scm/proj/repo.git
      ! [remote rejected] master -> master (pre-receive hook declined)
      error: failed to push some refs to 'http://grefosco@localhost:7990/scm/proj/repo.git'
      

      I also observer several errors in atlassian-bitbucket.log, which seems to be related:

      2015-09-28 13:00:00,000 WARN  [http-nio-7990-exec-3] grefosco @6PBNWBx808x1628x0 127.0.0.1 "POST /scm/proj/repo.git/git-receive-pack HTTP/1.1" c.a.s.i.s.g.p.http.HttpReceivePack proj/repo[21]: Git hooks have not been called. Please verify that the hooks are configured correctly - see https://confluence.atlassian.com/display/BITBUCKETSERVERKB/Git+hook+scripts+are+not+executing for details
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              grefosco Gustavo Refosco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: