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.
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 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...
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