Open Askancy opened 3 years ago
Doing further research:
VM1292:1 GET https://project.it/ckfinder/connector?command=GetFiles&lang=it&type=Gallery¤tFolder=%2F1%2F&hash=2a12bd16454bdc38 500
log error:
cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"url":"https://project.it/ckfinder/connector","precedente":"https://project.it/admin/articoli/add","input":{"command":"GetFolders","lang":"it","type":"Gallery","currentFolder":"/","hash":"2a12bd16454bdc38"}}
Error executing "PutObject" on "https://projectnet.s3.ams3.amazonaws.com/gallery/"; AWS HTTP error: cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {"userId":2,"exception":"[object] (Aws\\S3\\Exception\\S3Exception(code: 0): Error executing \"PutObject\" on \"https://projectnet.s3.ams3.amazonaws.com/gallery/\"; AWS HTTP error: cURL error 6: Could not resolve host: projectnet.s3.ams3.amazonaws.com (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /var/www/vhosts/project.it/httpdocs/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php:195)
how come it sets as amazonaws endpoint and not digitaloceanspaces, as set by filesystem config and ckfinder config?
I found this as well: https://github.com/ckfinder/ckfinder/issues/340
but I don't quite understand what to do, i put IF control as said by the user in
\vendor\ckfinder\ckfinder-laravel-package_connector\Backend\BackendFactory.php
to line 206, without solving the problem...
Hello, do you still have the problem?
Hi bmlotek,
Given the poor support I have dropped ckfinder, preferring alexusmai/laravel-file-manager, if you can guarantee me that the package will not be dropped again I will come back...
Anyway I solved it with:
$config['backends']['default'] = array(
'name' => 'awss3',
'adapter' => 's3',
'bucket' => '***',
'region' => 'fra1',
'endpoint' => 'https://fra1.digitaloceanspaces.com',
'key' => '***',
'secret' => '****',
'visibility' => 'public',
'root' => '***'
);
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'visibility' => 'public-read',
]
I hope this will help someone.
im trying to configure my ckfinder with my DigitalOcean Spaces/ S3 space, but i get the error:
"Unknown error."
when I try to open the ckfinder.
this is the configuration:
the pictures are respectively in: https://ams3.digitaloceanspaces.com/projectx/kk/gallery/id(value selected)
how come I can't view any images? any ideas? bucket access data is correct and tested.