• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

HTTP 500 Error On New Uploads

SaviorConnect

Chevereto Member
🎯Description of the issue

Images are uploading fine but 500 error on attempted open of new uploads. I have tested the source as both local and remote. Additionally, this site is running on my own VMWare systems and SSD SANs....it should not be server related.

▶🚶‍Reproduction steps
  1. Click toggle to upload images (not bulk import...regular upload.)
  2. Images upload fine but when attempting to view them on site they respond with HTTP 500 error.
😢Unexpected result

The 500 error. This issue just started occurring and I don't know why.

📃Error log message

[03-Apr-2020 21:24:06 America/Santiago] InvalidArgumentException: Invalid resource type: resource (closed) in /home/chev3/public_html/app/vendor/guzzlehttp/psr7/src/functions.php:116
Stack trace:
#0 /home/chev3/public_html/app/vendor/guzzlehttp/psr7/src/Request.php(54): GuzzleHttp\Psr7\stream_for(Resource id #130)
#1 /home/chev3/public_html/app/vendor/guzzlehttp/guzzle/src/Client.php(160): GuzzleHttp\Psr7\Request->__construct('POST', Object(GuzzleHttp\Psr7\Uri), Array, Resource id #130, '1.1')
#2 /home/chev3/public_html/app/vendor/guzzlehttp/guzzle/src/Client.php(184): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array)
#3 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Http/Client.php(37): GuzzleHttp\Client->request('POST', 'https://pod-000...', Array)
#4 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(770): esac\B2\Http\Client->request('POST', 'https://pod-000...', Array, true, true)
#5 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(637): esac\B2\Client->request('POST', 'https://pod-000...', Array)
#6 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(236): esac\B2\Client->uploadStandardFile(Array)
#7 /home/chev3/public_html/app/lib/classes/class.storage.php(215): esac\B2\Client->upload(Array)
#8 /home/chev3/public_html/app/lib/classes/class.image.php(1003): CHV\Storage::uploadFiles(Array, Array, Array)
#9 /home/chev3/public_html/app/routes/route.json.php(94): CHV\Image::uploadToWebsite(Array, Array, Array)
#10 /home/chev3/public_html/lib/G/classes/class.handler.php(232): G\Handler->{closure}(Object(G\Handler))
#11 /home/chev3/public_html/lib/G/classes/class.handler.php(132): G\Handler->processRequest()
#12 /home/chev3/public_html/app/loader.php(782): G\Handler->__construct(Array)
#13 /home/chev3/public_html/index.php(20): include_once('/home/chev3/pub...')
#14 {main}
[03-Apr-2020 21:24:06 America/Santiago] Can't upload image - Storage error: Invalid resource type: resource (closed)
[03-Apr-2020 21:24:18 America/Santiago] InvalidArgumentException: Invalid resource type: resource (closed) in /home/chev3/public_html/app/vendor/guzzlehttp/psr7/src/functions.php:116
Stack trace:
#0 /home/chev3/public_html/app/vendor/guzzlehttp/psr7/src/Request.php(54): GuzzleHttp\Psr7\stream_for(Resource id #125)
#1 /home/chev3/public_html/app/vendor/guzzlehttp/guzzle/src/Client.php(160): GuzzleHttp\Psr7\Request->__construct('POST', Object(GuzzleHttp\Psr7\Uri), Array, Resource id #125, '1.1')
#2 /home/chev3/public_html/app/vendor/guzzlehttp/guzzle/src/Client.php(184): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array)
#3 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Http/Client.php(37): GuzzleHttp\Client->request('POST', 'https://pod-000...', Array)
#4 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(770): esac\B2\Http\Client->request('POST', 'https://pod-000...', Array, true, true)
#5 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(637): esac\B2\Client->request('POST', 'https://pod-000...', Array)
#6 /home/chev3/public_html/app/vendor/esac/backblaze-b2/src/Client.php(236): esac\B2\Client->uploadStandardFile(Array)
#7 /home/chev3/public_html/app/lib/classes/class.storage.php(215): esac\B2\Client->upload(Array)
#8 /home/chev3/public_html/app/lib/classes/class.image.php(1003): CHV\Storage::uploadFiles(Array, Array, Array)
#9 /home/chev3/public_html/app/routes/route.json.php(94): CHV\Image::uploadToWebsite(Array, Array, Array)
#10 /home/chev3/public_html/lib/G/classes/class.handler.php(232): G\Handler->{closure}(Object(G\Handler))
#11 /home/chev3/public_html/lib/G/classes/class.handler.php(132): G\Handler->processRequest()
#12 /home/chev3/public_html/app/loader.php(782): G\Handler->__construct(Array)
#13 /home/chev3/public_html/index.php(20): include_once('/home/chev3/pub...')
#14 {main}
[03-Apr-2020 21:24:18 America/Santiago] Can't upload image - Storage error: Invalid resource type: resource (closed)
 
From the logs I can see that the issue is vendor related, B2 API.

Do you have command line access to that server? If that's the case, run:
Code:
composer update
From the public root path.
 
Rodolfo,

Thank you for the reply.

There was an issue with the B2 uploads and I found the problem. However, the uploads to B2 were very slow. Additionally, most of the B2 uploads completed fine but some did not. I will just stay with Wasabi and S3 which are fast and reliable.

As for the upload issue, after I read your reply I found the debugging option in the software. I enabled it and discovered the 500 error was a memory error related to a limitation in a local php.ini being set too low. I increased the memory limit in the php.ini and the pages now load.

I appreciate the assistance and your time!

Blessings,
Steven Dunn
 
Back
Top