Re: [Tiki-devel] Composer is broken and show a lot of new things
Bernard Sfez via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Jonny,
I hope I solved this for my local… The composer is still running after 30mn and is at 50/253 [=====>----------------------] 19%
This is SUPER slow.
Something is wrong and I have the feeling someone’s own system configuration is on the way. (Just a feeling)
My solution:
Checked that Diagnose is good
Bernards-MacBook-Pro:mediagalleries.webite_tiki23 bernardsfez$ ls -l ~/.composer/
total 8872
-rw-r--r-- 1 bernardsfez staff 2258604 Sep 25 15:23 2021-08-19_17-11-08-2.1.6-old.phar
-rw-r--r-- 1 bernardsfez staff 2262733 Oct 5 13:31 2021-09-15_13-55-14-2.1.8-old.phar
-rw-r--r-- 1 bernardsfez staff 97 Oct 5 13:39 auth.json
drwxr-xr-x 2 bernardsfez staff 64 Oct 5 13:49 cache
-rw-r--r-- 1 bernardsfez staff 799 Oct 5 13:37 keys.dev.pub
-rw-r--r-- 1 bernardsfez staff 799 Oct 5 13:37 keys.tags.pub
-rw-r--r-- 1 bernardsfez staff 7 Oct 5 13:40 update-channel
Bernards-MacBook-Pro:mediagalleries.webite_tiki23 bernardsfez$ php composer.phar diagnose
Could not open input file: composer.phar
Bernards-MacBook-Pro:mediagalleries.webite_tiki23 bernardsfez$ php temp/composer.phar diagnose
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.1.9
PHP version: 7.4.21
PHP binary path: /Applications/MAMP/bin/php/php7.4.21/bin/php
OpenSSL version: OpenSSL 1.0.2u 20 Dec 2019
cURL version: 7.68.0 libz 1.2.11 ssl OpenSSL/1.0.2u
zip: extension present, unzip present, 7-Zip not available
In case of I point directly to my php version folder.
bernardsfez$ sh setup.sh -p /Applications/MAMP/bin/php/php7.4.21/bin/php
This worked. (Once more something is looking for another version of PHP than the one it should…)
More debugging information (things done before it worked) :
The only .composer directory I see is there "/Users/bernardsfez/.composer”
-rw-r--r-- 1 bernardsfez staff 2258604 Sep 25 15:23 2021-08-19_17-11-08-2.1.6-old.phar
-rw-r--r-- 1 bernardsfez staff 799 Oct 5 08:59 keys.dev.pub
-rw-r--r-- 1 bernardsfez staff 799 Oct 5 08:59 keys.tags.pub
-rw-r--r-- 1 bernardsfez staff 7 Oct 5 10:27 update-channel
I created manually a “cache” directory in case of but it stays empty.
—
I tried to solve the GitHub issue.
At : https://github.com/settings/tokens
I created a token.
Then I created a file "/Users/bernardsfez/.composer/auth.json” with the following:
{
"github-oauth": {
"github.com": "token"
}
}
Taken from : https://getcomposer.org/doc/articles/authentication-for-private-packages.md
No more error about GitHub and authentification but still stuck at the same place.
- Syncing bacon/bacon-qr-code (2.0.4) into cache
Failed to download bower-asset/fontawesome from dist: curl error 60 while downloading https://composer.tiki.org/dist/bower-asset/fontawesome/bower-asset-fontawesome-7d3d774145ac38663f6d1effc6def0334b68ab7e-zip-e26d21.zip: SSL certificate problem: certificate has expired
Now trying to download from source
- Syncing bower-asset/fontawesome (5.15.4) into cache
I tried different things found on our composer page: https://dev.tiki.org/Composer
But some commands seems outdated.
Bernards-MacBook-Pro:mediagalleries.webite_tiki23 bernardsfez$ php temp/composer.phar update --prefer-dist --working-dir="vendor_bundled"
Could not scan for classes inside "vendor/smarty/smarty/libs/sysplugins/smarty_security.php" which does not appear to be a file nor a folder
> Tiki\Composer\RestoreVendors::restore
> Tiki\Composer\ThemeInstaller::setup
> Tiki\Composer\CleanVendorAfterVendorBundledMigration::cleanLinks
Loading composer repositories with package information
[Composer\Downloader\TransportException]
curl error 60 while downloading https://composer.tiki.org/packages.json: SSL certificate problem: certificate has expired
Bernard
> On 5 Oct 2021, at 12:46, Jonny Bradley via TikiWiki-devel <[email protected]> wrote:
>
> Hi Bernard
>
> That's what we've been seeing in the CI pipelines on gitlab recently https://gitlab.com/tikiwiki/tiki/-/pipelines but i just ran mine locally and it was fine (plenty of "does not comply with psr-0 autoloading standard" warnings when run via setup.sh though)
>
> I tried that first one with wget -v and got no SSL warnings, and i tried it on a random ssl checker site and it's all green, good for another 38 days and happy all the way along the chain.
>
> I just cleared my composer cache and deleted vendor_bundled/vendor/* and reran composer install and it all worked fine (apart from an odd token one, details below).
>
> So could the certificate be incorrectly cached somehow (on gitlab and Bernard's server)?
>
> Might it have been connected with general network issues (at facebook) yesterday somehow?
>
> Most odd, any ideas others?
>
> jonny
>
>
> p.s. error:
>
>> Could not fetch https://api.github.com/repos/zbateson/mb-wrapper/zipball/721b3dfbf7ab75fee5ac60a542d7923ffe59ef6d, please review your configured GitHub OAuth token or enter a new one to access private repos
>> Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Cloudy-Fly.local+2021-10-05+1032
>> to retrieve a token. It will be stored in "/Users/jonny/.composer/auth.json" for future use by Composer.
>> Token (hidden):
>
>
> I pressed return...
>
>> No token given, aborting.
>> You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
>> Failed to download zbateson/mb-wrapper from dist: Could not authenticate against github.com
>> Now trying to download from source
>> - Syncing zbateson/mb-wrapper (1.0.1) into cache
>> 291/295 [===========================>] 98%
>> Could not fetch https://api.github.com/repos/zbateson/stream-decorators/zipball/3403c4323bd1cd15fe54348b031b26b064c706af, please review your configured GitHub OAuth token or enter a new one to access private repos
>> Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Cloudy-Fly.local+2021-10-05+1036
>> to retrieve a token. It will be stored in "/Users/jonny/.composer/auth.json" for future use by Composer.
>> Token (hidden):
>
> Same three times then it continued - any ideas what is this? The 3 zbateson packages seem to have been installed, but this could trip up automated setups... i can't find any uses in tiki, so presumably these are dependencies of other packages we use?
>
>
>> On 5 Oct 2021, at 08:31, Bernard Sfez via TikiWiki-devel <[email protected]> wrote:
>>
>> Hello,
>>
>> In case it light a red led on someone's console,
>>
>> Running sh setup.sh on a fresh install of Tiki23 I got several new things and especially request to enter GitHub credentials.
>>
>>> Failed to download amphp/parser from dist: curl error 60 while downloading https://composer.tiki.org/dist/amphp/parser/amphp-parser-f83e68f03d5b8e8e0365b8792985a7f341c57ae1-zip-ba595f.zip: SSL certificate problem: certificate has expired
>>> Now trying to download from source
>>> - Syncing amphp/parser (v1.0.0) into cache
>>> The authenticity of host 'github.com (140.82.121.3)' can't be established.
>>> RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
>>> Are you sure you want to continue connecting (yes/no)? yes
>>
>>
>> A lot of failed:
>>
>>> 1/253 [>---------------------------] 0% Failed to download composer/installers from dist: curl error 28 while downloading https://composer.tiki.org/dist/composer/installers/composer-installers-d20a64ed3c94748397ff5973488761b22f6d3f19-zip-b17ea2.zip: Operation timed out after 2000800 milliseconds with 0 out of 0 bytes received
>>> Now trying to download from source
>>> - Syncing composer/installers (v1.12.0) into cache
>>> Failed to download oomphinc/composer-installers-extender from dist: curl error 28 while downloading https://composer.tiki.org/dist/oomphinc/composer-installers-extender/oomphinc-composer-installers-extender-8d3fe38a1723e0e91076920c8bb946b1696e28ca-zip-aaaf7e.zip: Operation timed out after 2000800 milliseconds with 0 out of 0 bytes received
>>> Now trying to download from source
>>> - Syncing oomphinc/composer-installers-extender (2.0.0) into cache
>>> Failed to download adodb/adodb-php from dist: curl error 28 while downloading https://composer.tiki.org/dist/adodb/adodb-php/adodb-adodb-php-aa161c28dfffcab13a3cb9bd407917573987f0f6-zip-a31202.zip: Operation timed out after 2000800 milliseconds with 0 out of 0 bytes received
>>
>>
>> Some ssh key GitHub requests
>>
>>> - Syncing dasprid/enum (1.0.3) into cache
>>> Failed to download bacon/bacon-qr-code from dist: curl error 60 while downloading https://composer.tiki.org/dist/bacon/bacon-qr-code/bacon-bacon-qr-code-f73543ac4e1def05f1a70bcd1525c8a157a1ad09-zip-c50eda.zip: SSL certificate problem: certificate has expired
>>> Now trying to download from source
>>> - Syncing bacon/bacon-qr-code (2.0.4) into cache
>>> Failed to download bower-asset/fontawesome from dist: curl error 60 while downloading https://composer.tiki.org/dist/bower-asset/fontawesome/bower-asset-fontawesome-7d3d774145ac38663f6d1effc6def0334b68ab7e-zip-e26d21.zip: SSL certificate problem: certificate has expired
>>> Now trying to download from source
>>> - Syncing bower-asset/fontawesome (5.15.4) into cache
>>> Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
>>> Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Bernards-MacBook-Pro.local+2021-10-05+0634
>>> to retrieve a token. It will be stored in "/Users/bernardsfez/.composer/auth.json" for future use by Composer.
>>
>> After one hour waiting seems the process is stuck
>>
>>> Now trying to download from source
>>> - Syncing bower-asset/fontawesome (5.15.4) into cache
>>> Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
>>> Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Bernards-MacBook-Pro.local+2021-10-05+0634
>>> to retrieve a token. It will be stored in "/Users/bernardsfez/.composer/auth.json" for future use by Composer.
>>>
>>
>> I tried twice, same problem.
>>
>> The directory "/Users/bernardsfez/.composer/“ is owned by the same user that runs setup.sh but the file is not created.
>>
>> Bernard
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel