Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Push fails with bitbucket server (on QNAP NAS)


I installed the bitbucket server on my QNAP NAS. Everything seemed OK with the configuration, project creation, repository creation...

However, when attempting to do a push following the standard procedure, I get the following:

Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 277 bytes | 69.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: env: can't execute 'perl': No such file or directory
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to...

Both SSH and HTTP (HTTPS) fail the same way.

Checked all the permissions. There are no active pre-received hooks. I exhausted all the options and checked all the community answers to similar problems including the closest I found with no success:

I cannot do anything until this problem is solved or I will have to give up on adopting bitbucket server all together. Any help is appreciated.




2 answers

Simply (re)install the Perl QPKG on your QNAP NAS. This will update your path and reload the environment correctly and get you passed the perl issue automatically.

This will install (as Harry mentions) to /opt/bin/perl.

I couldn't find an easy way to configure the Bitbucket PATH env var, so instead I created a symlink to a path that was exposed to the BB instance.

You can list the env vars on BB by using the following link:


I noted the PATH statement and just ran a symlink on the NAS.

ln -s /opt/bin/perl /usr/bin/perl

Hi nizar

I was able to get rid of this error by making perl installed under /opt/bin/perl available on the PATH.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

79 views 2 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you