cannot connect laravel forge to bitbucket

Abdullah Bakhach
Contributor
July 30, 2018

I've been using laravel forge for a long time with my bit bucket account. However suddenly I'm getting this error:

 

Laravel Forge _ prod1-n 2018-07-30 20-24-53.png

I've contacted their customer support and said that this is simply the response they're getting from bitbucket. What can I do to investigate this?

4 answers

0 votes
Alex Mansour June 25, 2019

Anyone managed to get it to work? 

Esc Web Admin June 25, 2019

Use the custom option instead - worked for me.

Alex Mansour June 25, 2019

Thanks for your reply Matt. 

Did you add the provided key in BitBucket? As Account' Key or Access Key?

Esc Web Admin June 25, 2019

Screen Shot 2019-06-25 at 14.49.38 copy.png

This is under the site settings in LF. First blurred part is your user and second is your project

Alex Mansour June 25, 2019

Thanks. I tried the same but it didn't work, I think my case a bit different as I'm trying to install the repository on a new site. Pulling on existing sites working normally using BitBucket option. 

Esc Web Admin June 25, 2019

This was a brand new site - from memory, I had to re-generate my access keys to get everything to work (I left my old ones in to keep old sites still connecting as they have previously done).

What errors are you getting? If any?

Alex Mansour June 25, 2019

This full output provided by Forge: 

Cloning into 'site.com'...
Warning: Permanently added the RSA host key for IP address '18.205.93.1' to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

 

From the UI I only see: Cloning into 'site.com'...

 

I'm not sure about the keys part I have tried some combinations sometime as Account' Key in BitBucket and other time as Access Key. (I used the server key suggested by Forge)

Esc Web Admin June 25, 2019

Have you tried updating your server provider config?

For example, I was using Linode and had to create a 2nd version of it to allow new access keys etc... 

 

## EDIT ##

And you are definitely a user on your bitbucket project repo? - pointing out the obvious I know!

Alex Mansour June 25, 2019

Yes, the user has proper access and I tried to refresh the token few times also, unliked the user and attached another user with role Admin. The same thing. 

I did a workaround now, and it worked. I have imported the repository to GitHub and installed the site via GitHub then I updated the GIT remote using custom to the BitBucket repository again. 

 

Thanks for your suggestions Matt.

Esc Web Admin June 25, 2019

No worries - glad you got sorted.

Like Alex Mansour likes this
0 votes
nicolas_r January 21, 2019

Same problem here. Used it for a year without hassle. And now that I urgently need to redeploy it doesn't longer work. Nevertheless the SSH key in general settings, is correct... :s

Esc Web Admin May 1, 2019

I used the whole git ssh string from bitbucket in the custom option and it installed in forge with composer dependancies.

Alex Mansour June 25, 2019

@Esc Web Admin Could you provide a sample of the GIT SSH string that you used?

0 votes
vkcash
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2018

I have the same problem. Did anybody solve it? Please, help.

0 votes
Abdullah Bakhach
Contributor
July 31, 2018

when I try to add the ssh key from forge to bitbucket, it claims that someone else is already using it:

 

Laravel Forge _ prod1-n 2018-07-31 16-53-11.png

Andy White
Contributor
August 4, 2018

Did you solve this issue? I'm suddenly having problems with Forge and Bitbucket communicating too

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events