Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BMS51's avatar
Level 1

Envoyer.io Bitbucket Private repo issues...

Hey all,

I'm stuck with envoyer deploy... in my Laravel Project i have private bitbucket that i'm use

"repositories": [ { "type": "vcs", "url": "[email protected]:xxxx/xxxx-rcs.git" } ],

When i run my deploy from envoyer i get this error: `Using global Composer installation. Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Package operations: 134 installs, 0 updates, 0 removals

  • Syncing xxxx/xxxx-rcs (dev-master xxxx) into cache No bitbucket authentication configured. Falling back to ssh. In Git.php line 471: Failed to execute git clone --mirror -- '[email protected]:xxxx/xxxx.git' '/var/www/test/xxxx/xxxx-rcs.git' Cloning into bare repository '/var/www/test/.composer/cac he/vcs/https---bitbucket.org-xxxx-xxxx-rcs.git.... [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.`

Everything points to "SSH-keys" but they are set ... If i do git clone ....repo.git

It works perfectly and i get output :

remote: Enumerating objects: 63, done. remote: Counting objects: 100% (63/63), done. remote: Compressing objects: 100% (50/50), done. remote: Total 63 (delta 15), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (63/63), 6.29 KiB | 3.14 MiB/s, done. Resolving deltas: 100% (15/15), done.

Any ideas what it can be ? it looks related to envoyer but i can't find any info about private bitbucket repos ... anywhere

Thanks in advance

0 likes
8 replies
click's avatar

Did you add the SSH key of your envoyer server to your private repository?

Bitbucket > {Your Repository } > Repository Settings > Access Keys > [ Add Key ]

1 like
click's avatar

@BMS51 The public key of your server? I use a private repo as well with the combination of envoyer and that works OK but I do remember it also took me some time to figure out the correct steps.

If that does not work, your envoyer account is linked to a bitbucket (see Account > Integrations). Make sure that the user that linked the bitbucket account to your envoyer account also has access to the repository.

BMS51's avatar
Level 1

@click sadly envoyer public keys, server public key is added (and working since I can clone it from SSh on the server.) User connected to envoyer is me and i'm the creator of that private repo 🙃.

It's weird...

BMS51's avatar
Level 1

@click what is strange is that my envoyer key ihas status 'never' under last used ...

click's avatar

@BMS51 Envoyer is not connecting to your private repository. It is the server that is running composer install which needs to have access to your private repository.

Unfortunately I can't help out any further if you have your server public key configured to have access to your private repository which you import via composer.json. Maybe I'm forgetting something I did to make it work on my end but I don't remember

BMS51's avatar
Level 1

@click when i execute composer install from SSH directly form the server there are no issues ... :/

Please or to participate in this conversation.