-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
./mirror.php --resync -v
...----------------------------------------------------RRRRRRRRRRRR??????
Downloaded 602900 files
After this I see there is only p2 folder created without packages.json.
If I try run --v2 it just fails.
root@packagist:/usr/local/www/mirror # ./mirror.php --v2
Mirror v2 job failed at 2021-05-04 18:38:54
[Exception] Too many retries, could not update /p2/rebing/graphql-laravel~dev.json as the origin server returns an older file (1620109991, expected 1620153524)
Fatal error: Uncaught Exception: Too many retries, could not update /p2/rebing/graphql-laravel~dev.json as the origin server returns an older file (1620109991, expected 1620153524) in /usr/local/www/mirror/mirror.php:278
Stack trace:
#0 /usr/local/www/mirror/mirror.php(329): Mirror->{closure}(Object(Symfony\Component\HttpClient\Response\CurlResponse), Array)
#1 /usr/local/www/mirror/mirror.php(151): Mirror->downloadV2Files(Array)
#2 /usr/local/www/mirror/mirror.php(796): Mirror->syncV2()
#3 {main}
thrown in /usr/local/www/mirror/mirror.php on line 278
Config
return [
// directory where metadata files will get saved
'target_dir' => __DIR__.'/public'/* TODO */,
// user agent describing your mirror node, if possible include domain name of mirror, and a contact email address
'user_agent' => 'xxxxxxxx'/* TODO Mirror for foo.com (mycontact@example.org) */,
// source repository URL
'repo_url' => 'https://repo.packagist.org',
// source repository hostname (optional, will guess from repo_url)
//'repo_hostname' => 'repo.packagist.org',
// source API URL
'api_url' => 'https://packagist.org',
// how many times the script will run the mirroring step before exiting
'iterations' => 120,
// how many seconds to wait between mirror runs
'iteration_interval' => 5,
// set this to false if you do not run the --v1 mirror job, to ensure that the v2 will then take care of syncing packages.json
'has_v1_mirror' => false,
];System
root@packagist:/usr/local/www/mirror # php -v
PHP 7.4.18 (cli) (built: May 2 2021 01:15:47) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
------------------------------------------------------------
root@packagist:/usr/local/www/mirror # cat /etc/os-release
NAME=FreeBSD
VERSION=12.2-RELEASE
VERSION_ID=12.2
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 12.2-RELEASE"
CPE_NAME=cpe:/o:freebsd:freebsd:12.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels