Wanchai / FTPbucket

FTPbucket is a PHP script that enables you to sync your BitBucket or GitHub repository with any web-server
102 stars 22 forks source link

Repository xmon/TestWebsite not found #5

Closed xmon closed 8 years ago

xmon commented 8 years ago

Hi,

I'm trying to deploy with your code from BitBucket private repository.

In log:

But no files are transfer.

debugging I get:

    List of files: Array
    (
        [error] => Array
            (
                [message] => Repository xmon/TestWebsite not found
            )
    )

This is my config.php

    return array(
    'repos' => array(
        'repo1' => array(
            'repo_name' => 'TestWebsite',
            'repo_host' => 'bitbucket',
            'branches' => array(
                array(
                    'branch_name' => 'desarrollo',
                    'type' => 'none',
                    'ftp_path' => '../../',
                )
            ),
        ),
    ),
    // Your BitBucket Credentials
    'bitbucket' => array(
        'username' => 'xmon',
        'password' => 'my-password'
    ),
    // ADMIN password for FTPBucket's UI
    'admin_pass' => '12345'
        )

My repo, is created under Team, Test Team, with Team ID: testteam.

The repo URL is like https://bitbucket.org/testteam/testwebsite

Any idea to solve it?

thanks in advance

solosik commented 8 years ago

Same problem here. @Wanchai or @xmon do you have any suggestions? Is this script working with the latest BB WebHooks? Thank you.

xmon commented 8 years ago

Hi @solosik

I think is working with latest BB WebHooks. Maybe the problem is the difference between user name to login, and Team repository owner.

the script build the project URL with auth user name.

this is only a idea, I would need to make more tests.

any ideas are welcome.

solosik commented 8 years ago

@xmon @Wanchai hello again guys, I think I found the problem.

It's as always in the Repository name, you should use lowercase only in your config file.

So @xmon just try to replace 'TestWebsite' to 'testwebsite' and it should work. As it works for me.

@Wanchai please add some additional checks or just add some info into your docs, because as I can see it's already the second issue with Repo names, however thanks a lot for your work & help.

Wanchai commented 8 years ago

Please, make more tests and tell me if it's working. Thanks for your feedback.