Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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)

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

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

0 votes

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

Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

505 views 6 4
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