Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Maximum execution time of 30 seconds exceeded in NativeCalculator.php on line 409 #11

Open
juggernautsei opened this issue Mar 19, 2023 · 2 comments

Comments

@juggernautsei
Copy link

I have PHP 8.1 on Ubuntu 22.04 with Apache 2.4x. When I run the script, I do not get a JWT back. I get a blank screen and the error message above in the error log. Any idea what is causing that? I checked that the class is receiving the key from the key file on the server. Thank you.

@juggernautsei
Copy link
Author

Here is the entire error message. I tried composer dumpautoload -o. That did not resolve the issue.
What should I be looking for?

Call Stack

1 | 0.0001 | 361448 | {main}( ) | .../jaas-jwt.php:0
2 | 0.0026 | 376336 | Jose\Component\Signature\JWSBuilder->build( ) | .../jaas-jwt.php:101
3 | 0.0026 | 378272 | Jose\Component\Signature\Algorithm\RSAPKCS1->sign( $key = class Jose\Component\Core\JWK { private $values = ['kty' => 'RSA', 'n' => 'thsP5YAJ2_P3JvahK4yqBae1GsfjlDCO8LsQZwOEQZfBOj0bJVzByi0WkeV7SLA0rTlABvYzhVsBdrSBSWQ-bNytRaKBjAs4lFHIpU54wxc4dq0rhA1bPXQxLaO36gkZQVXm67Tse4ly7If0nVj3wTkTFoXovpN8Hg8-eOFcMbkOSUeSfZpnJBk3tflN7kXCNJt1xmA-BcZt-CCr6jlvovL7WsYa2Edk2mmTh-sBs6WP8I9zOWcR1zPWNCv3yXYCseESByLwWo5hwUyDxnR61WKMBRe6SpwCsXtM4aU0QYRLHyiV2Lne_JEl323iaPcwBmchK2wEHqofWQsVypFbQ', 'e' => 'AQAB', 'd' => 'CuDk-zXB4QTa79Xt3NcjVQEmvXnRa4nXECRsn2rDXNO-9EawN3QqE3TME10dF0OHcg2oeIH-o-nC1Z-E1aiKXiB0rWM-z-nfsGSOUum0JxtdASHpJpNRrwMg6PQNyYpPmuqRx-Tf96VHW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prpJ0mG8DxrZjOBlbirJ6MCha8BYhQdwdOLJomB7M'] }, $input = 'eyJhbGciOiJSUzI1NiIsImtpZCI6InZwYWFzLW1hZ2ljLWNvb2tpZS0wMmJjMDAxOWQ1YTM0MzgxODYyMzlkYzE3MTFlMGVlMS8yNTY5YzQiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJjaGF0IiwiYXVkIjoiaml0c2kiLCJleHAiOjE2NzkyNjU0ODEsIm5iZiI6MTY3OTI1ODI3MSwicm9vbSI6IioiLCJzdWIiOiJ2cGFhcy1tYWdpYy1jb29raWUtMDJiYzAwMTlkNWEzNDM4MTg2MjM5ZGMxNzExZTBlZTEiLCJjb250ZXh0Ijp7InVzZXIiOnsibW9kZXJhdG9yIjoidHJ1ZSIsImVtYWlsIjoibXllbWFpbEBlbWFpbC5jb20iLCJuYW1lIjoibXkgdXNlciBuYW1lIiwiYXZhdGFyIjoiIiwiaWQiOiJiMmM5NGE1MC1lNTNiLTRhZmMtOGJlZi0zMTMyZjNlYzI3ZGMifSwiZmVhdHVyZXMiO' ) | .../JWSBuilder.php:168
4 | 0.0027 | 378272 | Jose\Component\Core\Util\RSAKey::createFromJWK( $jwk = class Jose\Component\Core\JWK { private $values = ['kty' => 'RSA', 'n' => 'thsP5YAJ2_P3JvahK4yqBae1GsfjlDCO8LsQZwOEQZfBOj0bJVzByi0WkeV7SLA0rTlABvYzhVsBdrSBSWQ-bNytRaKBjAs4lFHIpU54wxc4dq0rhA1bPXQxLaO36gkZQVXm67Tse4ly7If0nVj3wTkTFoXovpN8Hg8-eOFcMbkOSUeSfZpnJBk3tflN7kXCNJt1xmA-BcZt-CCr6jlvovL7WsYa2Edk2mmTh-sBs6WP8I9zOWcR1zPWNCv3yXYCseESByLwWo5hwUyDxnR61WKMBRe6SpwCsXtM4aU0QYRLHyiV2Lne_JEl323iaPcwBmchK2wEHqofWQsVypFbQ', 'e' => 'AQAB', 'd' => 'CuDk-zXB4QTa79Xt3NcjVQEmvXnRa4nX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3rk7lDA3F60h7r71Nkyg-j8QAF3GqdIRM52x4JChCXDFxgbnS_btDyzxHDZvlfCbZjQFKta-ozGQPdqJohdZWtR4Asb_K2nqWq_WNCJNM81Nd9prpJ0mG8DxrZjOBlbirJ6MCha8BYhQdwdOLJomB7M'] } ) | .../RSAPKCS1.php:48
5 | 0.0027 | 378496 | Jose\Component\Core\Util\RSAKey->__construct( $data = class Jose\Component\Core\JWK { private $values = ['kty' => 'RSA', 'n' => 'thsP5YAJ2_P3JvahK4yqBae1GsfjlDCO8LsQZwOEQZfBOj0bJVzByi0WkeV7SLA0rTlABvYzhVsBdrSBSWQ-bNytRaKBjAs4lFHIpU54wxc4dq0rhA1bPXQxLaO36gkZQVXm67Tse4ly7If0nVj3wTkTFoXovpN8Hg8-eOFcMbkOSUeSfZpnJBk3tflN7kXCNJt1xmA-BcZt-CCr6jlvovL7WsYa2Edk2mmTh-sBs6WP8I9zOWcR1zPWNCv3yXYCseESByLwWo5hwUyDxnR61WKMBRe6SpwCsXtM4aU0QYRLHyiV2Lne_JEl323iaPcwBmchK2wEHqofWQsVypFbQ', 'e' => 'AQAB', 'd' => 'CuDk-zXB4QTa79Xt3NcjVQEmvXnRa4nXECRsn2rDXNO-9EawN3QqE3TME10dF0OHcg2oeIH-o-nC1Z-E1aiKXiB0rWM-z-nfsGSOUum0JxtdASHpJpNRrwMg6PQNyYpPmuqRx-Tf96VHWz_n6fplmoJZVJAdTj0rPfR1M9-CmjD9gMAJoUTyRhsyUHRWRwzY-x8lGS_lhsfMi05VoMVyOkrLgAGbm1mYEfXAZtbrGS0PwMQX9PHKO7aRqBDJ1aELx3EhixuatLFMDxlzxIfYSnYvPG_s2Fc4E-uXi39QMBiIBpIAmRzZI-prEZdOtgmbCJCN0oFjW6j4bUK1WFA7QQ', 'p' => '8IeQQiA-cckfESgkyvaN3HUl0r7sPvtXk3TQrcWpDgUWXmye_HLAxzvrsJ3DYgrv7zG9eDJ2_sJ9qAp2yhtRtTa7l_xs6EFT-GqDMQ2M6-Xh00NzPKNoaM8gxe4R_ToZsbIRb3hQ9HkHMXAWelzSV8cgX1DVSAfKZ9GcWjq0ZBE', 'q' => 'wdGFiLSy9oPEeZjW414QFxKFjcx0v0t0spbVcXMdyohqQn1j1ph9loSfWaF_A9CSSEBQLyOzhjUcAcvetc6gMKiy_oYRvDK7Hhoe0ROfi9Q_fPLUtS90teEaK5TIPvXBqmhvTqeGdPSxNMN2prDzML1dhXQ9gezPokhQcfy1d50', 'dp' => 'ezL0kOozEdUSNJd7QPpIb0MRvIBOQXQ7xytuN5Omo6e3bWX1iRi95U6ryisEiJNRkhLIGWi_yn2UHx48-ghEMa13KMIChnPvrq3fxKBMLgfxQ2SpAcYxFH4DK15lmG7J-lpa092smYvkQ05GNSaWFp_H1QpyNBLJeaPDkfO_sgE', 'dq' => 'Yc3H858zu9_sUmwE7AE4X1wyVsa4lxuNjN0-Yhx0CRLjhB_gNJcIsN7FxqYPAS7L0nfZvp_mZLACLQninZ3iCgvnHzcqVezHrb4ClQCw_w-g5f1nxvJmk60-1oUis1qyWrqOiINS_0vG7FhCVIVwgsTcH47zxs9oS3zwU0TxkaU', 'qi' => 'ZsLnkhKK3ezIUZMc0KX3rk7lDA3F60h7r71Nkyg-j8QAF3GqdIRM52x4JChCXDFxgbnS_btDyzxHDZvlfCbZjQFKta-ozGQPdqJohdZWtR4Asb_K2nqWq_WNCJNM81Nd9prpJ0mG8DxrZjOBlbirJ6MCha8BYhQdwdOLJomB7M'] } ) | .../RSAKey.php:97
6 | 0.0027 | 378496 | Jose\Component\Core\Util\RSAKey->populateBigIntegers( ) | .../RSAKey.php:88
7 | 1.4346 | 379448 | Jose\Component\Core\Util\BigInteger->toBytes( ) | .../RSAKey.php:229
8 | 1.4347 | 379912 | Brick\Math\BigInteger->toBase( $base = 16 ) | .../BigInteger.php:76
9 | 1.4347 | 379912 | Brick\Math\Internal\Calculator->toBase( $number = '22988716320553046465791211213135445663524780878371662652646176340064891934508577947374390394637064291246752146283770253843248375298926631154080242392408160506932560180809253971118926860140438575441168344680628715082645569543641120450391150140192615753106527283925684568265114498535126743097606604846056420693044261726141804279560103908008780075704875048719031463982194201718669091515301869320964388277850985255884667654646884151531494927945062375513960804233516335348379315328248351154418321138553564079784715104', $base = 16 ) | .../BigInteger.php:1019
10 | 1.4347 | 379912 | Brick\Math\Internal\Calculator->toArbitraryBase( $number = '22988716320553046465791211213135445663524780878371662652646176340064891934508577947374390394637064291246752146283770253843248375298926631154080242392408160506932560180809253971118926860140438575441168344680628715082645569543641120450391150140192615753106527283925684568265114498535126743097606604846056420693044261726141804279560103908008780075704875048719031463982194201718669091515301869320964388277850985255884667654646884151531494927945062375513960804233516335348379315328248351154418321138553564079784715104', $alphabet = '0123456789abcdefghijklmnopqrstuvwxyz', $base = 16 ) | .../Calculator.php:399
11 | 30.1383 | 380744 | Brick\Math\Internal\Calculator\NativeCalculator->divQR( $a = '530635815595020631499082492798914056931896597737773128109477325319390608857605847182335669928990557363207323489092563317740132960252013111388613373963974831388456271209107104819119659513442360428585368437847980658886132398588294106236727151714953511970370682470606603388358128291723359184707000023896498351781921541603692852955595658942913283959349329394074197157588884699461080892285301480736583918659358119323710544717138526270097246590957123512133376218384439132235366948968041358657285', $b = '16' ) | .../Calculator.php:474
12 | 30.1383 | 380744 | Brick\Math\Internal\Calculator\NativeCalculator->doDiv( $a = '530635815595020631499082492798914056931896597737773128109477325319390608857605847182335669928990557363207323489092563317740132960252013111388613373963974831388456271209107104819119659513442360428585368437847980658886132398588294106236727151714953511970370682470606603388358128291723359184707000023896498351781921541603692852955595658942913283959349329394074197157588884699461080892285301480736583918659358119323710544717138526270097246590957123512133376218384439132235366948968041358657285', $b = '16' ) | .../NativeCalculator.php:200
13 | 30.3178 | 381928 | Brick\Math\Internal\Calculator\NativeCalculator->add( $a = '33164738474688789468692655799932128558243537358610820506842332832461913053600365448895979370561909835200457718068285207358758310015750819461788335872748426961778516950569194051194978719590147526786585527365498791180383274911768381639795446982184594498148167654412912711772383018232709949044187501493531146986370096350230803309724728683932080247459333087129630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', $b = '1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' ) | .../NativeCalculator.php:562
14 | 30.3178 | 381928 | Brick\Math\Internal\Calculator\NativeCalculator->doAdd( $a = '33164738474688789468692655799932128558243537358610820506842332832461913053600365448895979370561909835200457718068285207358758310015750819461788335872748426961778516950569194051194978719590147526786585527365498791180383274911768381639795446982184594498148167654412912711772383018232709949044187501493531146986370096350230803309724728683932080247459333087129630000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', $b = '1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' )

@juggernautsei
Copy link
Author

I have this feature installed on a different server and it works. When I move the code to the new server. It no longer works. .
Are there any dependencies I could be missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant