Satis can read composer.json, but cannot checkout the other files

814 views Asked by At

After trying Satis on my personnal SVN server (Linux, Svn, Apache 2, SSL, LDAP, DAV), that works fine; I am trying to make it work on my company's SVN server (Windows, Visual SVN, SSL).

In both cases Satis runs under Linux; Mine is an Ubuntu, and my company's is a CentOs.

On my company's Satis instance, it can browse the repository, it can get the composer.json of the project, but it won't get the project itself, at the same level than the composer.json.

Here is an anonymized version of the satis.json :

{
    "name": "MyCompany",
    "homepage": "http://my-server.net/satis",
    "repositories": [
        {
            "type": "svn",
            "url": "https://my-other-server.net/svn/my-project"
        }
    ],
    "config": {
        "http-basic": {
            "my-other-server.net": {
                "username": "my-readonly-username",
                "password": "my-readonly-password"
            }
        }
    },
    "archive": {
        "directory": "dist",
        "format": "tar",
        "prefix-url": "http://my-server.net/satis/"
    },
    "require-all": true
}

Here is an anonymized version on the project's composer.json :

{
    "name": "mycompany/project",
    "type": "symfony-bundle",
    "description": "Project 1.0",
    "keywords": [ "project" ],
    "homepage": "http://my-company.fr/project",
    "licence": "proprietary",
    "version": "1.0",
    "authors": [
        {
            "name": "My team",
            "email": "[email protected]"
        }
    ],
    "require": {
        "php": ">=5.4"
    },
    "autoload": {
            "psr-4": { "Mycompany\\ProjectBundle\\": "" }
    }
}

Here is how i execute Satis :

php bin/satis build mycompany.json web -vvv

And finaly, here is the anonymized verbose result of Satis :

Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Executing command (CWD): hg branch
Executing command (CWD): svn info --xml
Failed to initialize global composer: Composer could not find the config file: /root/.composer/composer.json
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
Scanning packages
Executing command (CWD): svn ls --verbose --non-interactive  --username 'my-readonly-username' --password 'my-readonly-password'  'https://my-other-server.net/svn/my-project/trunk'
Executing command (CWD): svn ls --verbose --non-interactive  --username 'my-readonly-username' --password 'my-readonly-password'  'https://my-other-server.net/svn/my-project/branches'
Executing command (CWD): svn ls --verbose --non-interactive  --username 'my-readonly-username' --password 'my-readonly-password'  'https://my-other-server.net/svn/my-project/tags'
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Reading composer.json of mycompany/project (trunk)
Reading /root/.composer/cache/repo/https---my-other-server.net-svn-my-project/-trunk--4-.json from cache
Importing branch trunk (dev-trunk)
Selected mycompany/project (dev-trunk)
Creating local downloads in 'web/dist'
Dumping 'mycompany/project-9999999-dev'.
  - Installing mycompany/project (dev-trunk)
    Checking out /trunk/@4
Failed: [RuntimeException] Package could not be downloaded, svn: OPTIONS de 'https://my-other-server.net/svn/project/trunk': Échec à l'autorisation (https://my-other-server.net)

[RuntimeException]
Package could not be downloaded, svn: OPTIONS de 'https://my-other-server.net/svn/project/trunk': Échec à l'autorisation (https://my-other-server.net)

Exception trace:
 () at /srv/satis/vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php:91
 Composer\Downloader\SvnDownloader->execute() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/SvnDownloader.php:33
 Composer\Downloader\SvnDownloader->doDownload() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/VcsDownloader.php:66
 Composer\Downloader\VcsDownloader->download() at /srv/satis/vendor/composer/composer/src/Composer/Downloader/DownloadManager.php:201
 Composer\Downloader\DownloadManager->download() at /srv/satis/vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php:144
 Composer\Package\Archiver\ArchiveManager->archive() at /srv/satis/src/Composer/Satis/Command/BuildCommand.php:410
 Composer\Satis\Command\BuildCommand->dumpDownloads() at /srv/satis/src/Composer/Satis/Command/BuildCommand.php:159
 Composer\Satis\Command\BuildCommand->execute() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:253
 Symfony\Component\Console\Command\Command->run() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:874
 Symfony\Component\Console\Application->doRunCommand() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:195
 Symfony\Component\Console\Application->doRun() at /srv/satis/src/Composer/Satis/Console/Application.php:52
 Composer\Satis\Console\Application->doRun() at /srv/satis/vendor/symfony/console/Symfony/Component/Console/Application.php:126
 Symfony\Component\Console\Application->run() at /srv/satis/bin/satis:9

build [--no-html-output] [--skip-errors] [file] [output-dir] [packages1] ... [packagesN]

Other elements :

  • While debugging, i am root on the Satis server, as when i execute it
  • I have tried to rm -rf /root/.composer
  • I have tried to give full rights to my-readonly-username on Visual SVN
  • I have tried to drink more cofee

None of this changed anything (except maybe the coffee).

0

There are 0 answers