Comments (13)
I have the same problem
from repman.
Only a workaround: A manual click on "Update" in the package solves the problem for individual packages.
from repman.
Only a workaround: A manual click on "Update" in the package solves the problem for individual packages.
Thanks, this solved it for us.
from repman.
Same isssue what's going on?
from repman.
Same issue here. We have like a 100 packages though. Any fixes from repman's part?
from repman.
Made a small (ugly) script to automate. If you get the json with all your packages from https://repman.io/docs/api/, you can use this to update everything at once.
`
$decoded = json_decode($json, true);
foreach($decoded['data'] as $package) {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://app.repman.io/api/organization/###org_name###/package/' . $package['id'],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => array(
'X-API-TOKEN: ###YOUR API KEY###'
),
));
$response = curl_exec($curl);
var_dump($response, $package['id']);
curl_close($curl);
}`
from repman.
I have extended the script a little. Only the API token and the organisation need to be entered at the top.
<?php
$apiToken = '### MY API TOKEN ###';
$organisation = 'MyOrganisationName';
$apiURLBase = 'https://app.repman.io/api/organization/' . $organisation . '/package';
$allData = [];
$page = 1;
do {
$curl = curl_init();
curl_setopt_array(
$curl,
[
CURLOPT_URL => $apiURLBase . '?page=' . $page,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_HTTPHEADER => [
'accept: application/json',
'X-API-TOKEN: ' . $apiToken
],
]
);
$response = curl_exec($curl);
if (curl_errno($curl)) {
echo "cURL error: " . curl_error($curl) . "\n";
exit(1);
}
$decodedResponse = json_decode($response, true);
curl_close($curl);
if (!empty($decodedResponse['data'])) {
$allData = array_merge($allData, $decodedResponse['data']);
}
$nextPageUrl = $decodedResponse['links']['next'] ?? null;
$page++;
} while ($nextPageUrl !== null);
foreach ($allData as $package) {
$curl = curl_init();
curl_setopt_array(
$curl,
[
CURLOPT_URL => 'https://app.repman.io/api/organization/' . $organisation . '/package/' . $package['id'],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => [
'X-API-TOKEN: ' . $apiToken
],
]
);
$response = curl_exec($curl);
curl_close($curl);
echo 'Updated package: ' . $package['name'] . PHP_EOL;
}
echo '---------------------------' . PHP_EOL;
echo 'done' . PHP_EOL;
Put this in an update.php file and call it up like this:
php update.php
from repman.
@gerdemann thanks for the script, I tried it but none of my packages are getting updated - seems like updating one by one doesn't work anymore, I tried it form the GUI and still couldn't get any package to update
from repman.
FWIW I use this script and works 100% (always) for me:
https://gist.github.com/ProxiBlue/f00ecb42c1eade71c8c0f991da6d13f0
from repman.
Hello. If you still experience issues, please contact us at [email protected] and send us the URL of the package and its version.
from repman.
Hello @adaluppa , all packages are now working fine
from repman.
This is an ongoing problem and has been for years. Something with the shared version results in sync backlogs and invalid caches. You have to manually re-sync the libraries from time to time.
I provided a script a while back to do this #568 (comment)
Long term solution is likely to host your own copy of repman.
from repman.
Having the problem again.
Are there any information what's causing the issue from time to time?
from repman.
Related Issues (20)
- Gitlab authendicator should support Gitlab Access tokens
- Compatibility with Composer V2 Spec HOT 5
- Login broken HOT 17
- Bitbucket doesn't update package version in repman HOT 4
- Packagist proxy broken for symfony/clock HOT 1
- [Self-hosted] 404 while fetching the package HOT 1
- GitHub private repository sync error HOT 3
- BitBucket sync failing HOT 2
- Better logging in case of errors while syncing due to a specific tag of a package
- Possibility to expose "extra" field from composer.json
- Did the project die? HOT 2
- Can't save anything in profile HOT 1
- Service unavailable HOT 16
- Synchronize all packages command not working HOT 2
- "Version <version> for package <package> not found" error in "security" column in package list
- GitLab Oauth support - v16.11.1-ee HOT 1
- AWS ELB offloading, impossible link with Oauth Provider HOT 1
- git command error when running in docker
- Disabling security scan still sends email
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repman.