Giter Site home page Giter Site logo

S3 Connection problem about online-ftp-s3 HOT 6 OPEN

offline-gmbh avatar offline-gmbh commented on August 24, 2024
S3 Connection problem

from online-ftp-s3.

Comments (6)

tobias-kuendig avatar tobias-kuendig commented on August 24, 2024

Are you using the installation on onlineftp.ch or are you self hosting? Are you sure, that you entered the correct credentials?

from online-ftp-s3.

YoruhitP avatar YoruhitP commented on August 24, 2024

I am using it at self hosting.
The Web server tried both nginx and Apache but it was the same result.
PHP is 7.2, node.js is 8.x, composer, gulp uses installable latest.

from online-ftp-s3.

tobias-kuendig avatar tobias-kuendig commented on August 24, 2024

Replace the following part

https://github.com/OFFLINE-GmbH/Online-FTP-S3/blob/master/app/Http/Controllers/SessionController.php#L60

with

    protected function error($e)
    {
        info('Login error', [$e]);
        return redirect()->back()->withErrors(['connection' => 'Cannot connect to server!'])->withInput();
    }

Then check your storage/app/laravel.log file after logging in. Post the logged exception here.

This part of the error handling can definitely be improved.

from online-ftp-s3.

YoruhitP avatar YoruhitP commented on August 24, 2024

I am thankful for the proposal.
However, it is currently in operation with another application that provides the same function, so it can not be tried immediately.
I will make the test environment again and inform you of the result.

from online-ftp-s3.

crysfel avatar crysfel commented on August 24, 2024

I'm getting this error:

[2021-04-30 21:15:37] production.INFO: Login error ["[object] (Aws\\S3\\Exception\\S3Exception(code: 0): Error executing \"ListObjects\" on \"https://s3.eu-central-1.amazonaws.com/my_bucket?prefix=&delimiter=%2F&encoding-type=url\"; AWS HTTP error: count(): Parameter must be an array or an object that implements Countable at /var/www/mycloud/app/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php:192, ErrorException(code: 0): count(): Parameter must be an array or an object that implements Countable at /var/www/mycloud/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67)"]

Any idea what might be wrong?

Thanks

from online-ftp-s3.

tobias-kuendig avatar tobias-kuendig commented on August 24, 2024

Your PHP version is too new. Either downgrade PHP or update the project's dependencies

from online-ftp-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.