• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

  • 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

External storage error. FTP & SFTP

evil

Chevereto Member
Unable to add SFTP account.
You cannot upload images when external storage is enabled as FTP, but when it is disabled, uploading works.
Uploading works fine when I manually create the missing FTP folder.

▶ Reproduction steps
  1. Try to add SFTP storage.
  2. Upload image when external storage is enabled as FTP.
😢 Unexpected result

1. Unable to add SFTP account. ** errorId #689fe2478836a1d8 **
2. Can't upload image. ** errorId #1e523e1342560076 **

📃 Error log message

1 SFTP ** errorId #689fe2478836a1d8 **
Got error 'PHP message: \nAw, snap! Internal Server Error [debug @ error_log] - https://v3-docs.chevereto.com/setup/troubleshoot/debug.html
** errorId #689fe2478836a1d8 **
CHV\\SftpException [300]: Can't change dir '/www/test/' in CHV\\Sftp::chdir\nAt /app/lib/classes/class.sftp.php:76\n\n
Stack trace:\n
#0 /app/lib/classes/class.sftp.php(59): CHV\\Sftp->chdir()\n
#1 /app/lib/classes/class.storage.php(592): CHV\\Sftp->__construct()\n
#2 /app/lib/classes/class.storage.php(169): CHV\\Storage::requireAPI()\n
#3 /app/lib/classes/class.storage.php(415): CHV\\Storage::uploadFiles()\n
#4 /app/lib/classes/class.storage.php(508): CHV\\Storage::test()\n
#5 /app/routes/route.json.php(681): CHV\\Storage::update()\n
#6 /lib/G/classes/class.handler.php(230): G\\Handler->{closure}()\n
#7 /lib/G/classes/class.handler.php(130): G\\Handler->processRequest()\n
#8 /app/web.php(411): G\\Handler->__construct()\n
#9 /app/loader.php(230): require_once('/app/web.php')\n
#10 /index.php(20): include_once('/app/loader.php')\n',
referer: https://nfhost.me/dashboard/settings/external-storage

2. FTP ** errorId #1e523e1342560076 **
Got error 'PHP message:
Aw, snap! Internal Server Error [debug @ error_log] - https://v3-docs.chevereto.com/setup/troubleshoot/debug.html
** errorId #1e523e1342560076 **
ErrorException [0]: ftp_chdir(): Can't change directory to /www/images/2021/06/02/: No such file or directory
At /app/lib/classes/class.ftp.php:130
Stack trace:
#0 unknown file(unknown line): G\\errorsAsExceptions()
#1 /app/lib/classes/class.ftp.php(130): ftp_chdir()
#2 /app/lib/classes/class.storage.php(258): CHV\\Ftp->mkdirRecursive()
#3 /app/lib/classes/class.image.php(869): CHV\\Storage::uploadFiles()
#4 /app/routes/route.json.php(88): CHV\\Image::uploadToWebsite()
#5 /lib/G/classes/class.handler.php(230): G\\Handler->{closure}()
#6 /lib/G/classes/class.handler.php(130): G\\Handler->processRequest()
#7 /app/web.php(411): G\\Handler->__construct()
#8 /app/loader.php(230): require_once('/app/web.php')
#9 /index.php(20): include_once('/app/loader.php')\n',
referer: https://nfhost.me/
 
I am able to add sftp account. But I do face issue with uploading images and got the error you said, but not sure it is related to what. But now no more errors as I am no using sftp.
 
I am also having issue adding FTP from BunnyCDN but I able to connect with FileZilla. I think this problem between the client and the server which means we won't be able to connect, based on the '>> Error [0]: Call to undefined method CHV\Ftp:😛utObject()

Code:
[02-Jun-2021 18:50:25 Asia/Dhaka]
Aw, snap! Internal Server Error [debug @ error_log] - https://v3-docs.chevereto.com/setup/troubleshoot/debug.html

** errorId #239450ac29a81a0c **
>> Error [0]: Call to undefined method CHV\Ftp::putObject()
At /app/lib/classes/class.storage.php:204

Stack trace:
#0 /app/lib/classes/class.storage.php(415): CHV\Storage::uploadFiles(Array, Array)
#1 /app/lib/classes/class.storage.php(508): CHV\Storage::test(Array)
#2 /app/routes/route.json.php(681): CHV\Storage::update('1', Array)
#3 /lib/G/classes/class.handler.php(230): G\Handler->{closure}(G\Handler)
#4 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()
#5 /app/web.php(411): G\Handler->__construct(Array)
#6 /app/loader.php(230): require_once('/app/web.php')
#7 /index.php(20): include_once('/app/loader.php')

ScreenShot00284.png
 
1622638769852.png

putObject is only used by s3, s3compatible and oss.

Provide me a external storage to try if you want me to review why your stuff is failing.
 
Please provide me the external storage server credentials to try.
 
I can not Start conversations with You. Can I add external storage server credentials to old conversations?
You can send those to redacted or talk me directly at redacted.

I've also re-enabled receiving private messages for my forum account, you can also start a new private conversation with me here.
 
Back
Top