Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Push fails with bitbucket server (on QNAP NAS)

nizar February 8, 2020

Greetings!

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:

https://community.atlassian.com/t5/Bitbucket-questions/Push-fails-with-errors/qaq-p/807896

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

0 votes
Al James March 11, 2021

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:

http://BBHOST:BBPORT/plugins/servlet/troubleshooting/view/

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

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

0 votes
Dirty Harry May 10, 2020

Hi nizar

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

Regards
Harry

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events