Exception: creation of bucket failed

I am trying to add s3 external storage to my droplet after running out of space. I created the external space in digitalocean and then tried to connect to it in nextcloud and got the following error. Are there any suggestions as to what I might have done wrong, and how I can correct it, so I can use the external storage in nextcloud?

Thanks.

Looking at the screen print, the creation of the bucket failed to connect. Using curl I hope to find out why,maybe it is a timeout.

CURLE_COULDNT_CONNECT (7)

Failed to connect() to host or proxy.

Server configuration detail

Operating system: Linux 4.15.0-140-generic #144-Ubuntu SMP Fri Mar 19 14:12:35 UTC 2021 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.7.33

PHP version: 7.4.14

Modules loaded: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gmp, SPL, iconv, intl, json, ldap, mbstring, pcntl, PDO, session, posix, Reflection, standard, SimpleXML, mysqlnd, exif, tokenizer, xml, xmlreader, xmlwriter, zip, pdo_mysql, cgi-fcgi, redis, Zend OPcache

Nextcloud version: 20.0.7 - 20.0.7.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.6.0
 - activity: 2.13.4
 - audioplayer: 3.1.0
 - audioplayer_editor: 0.3.0
 - calendar: 2.2.0
 - cloud_federation_api: 1.3.0
 - cms_pico: 1.0.14
 - comments: 1.10.0
 - contacts: 3.5.1
 - contactsinteraction: 1.1.0
 - dashboard: 7.0.0
 - dav: 1.16.2
 - deck: 1.2.5
 - external: 3.7.2
 - federatedfilesharing: 1.10.2
 - federation: 1.10.1
 - files: 1.15.0
 - files_external: 1.11.1
 - files_markdown: 2.3.3
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.2
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - files_videoplayer: 1.9.0
 - firstrunwizard: 2.9.0
 - groupfolders: 8.2.0
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - nextcloud_announcements: 1.9.0
 - notes: 4.0.4
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - password_policy: 1.10.1
 - photos: 1.2.3
 - polls: 1.8.1
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - recommendations: 0.8.0
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - support: 1.3.0
 - survey_client: 1.8.0
 - systemtags: 1.10.0
 - tasks: 0.13.6
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_backupcodes: 1.9.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - wopi: 3.5.6
 - workflowengine: 2.2.0
Disabled:
 - admin_audit
 - encryption
 - extract
 - ownpad
 - quicknotes
 - sharingpath
 - smb_test
 - spreed
 - user_ldap
 - user_pwauth

Configuration (config/config.php)
{
    "apps_paths": [
        {
            "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
            "url": "\/extra-apps",
            "writable": true
        }
    ],
    "supportedDatabases": [
        "mysql"
    ],
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0
    },
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost",
        "next.buf.org"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "20.0.7.1",
    "overwrite.cli.url": "http:\/\/localhost",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "loglevel": 0,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "25",
    "app_install_overwrite": [
        "defaultlinkopen"
    ],
    "theme": ""
}

External storages: yes

External storage configuration
+----------+-------------+-----------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+-------+
| Mount ID | Mount Point | Storage   | Authentication Type | Configuration                                                                                                                                                                       | Options                               | Applicable Users | Applicable Groups | Type  |
+----------+-------------+-----------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+-------+
| 7        | /AmazonS3   | Amazon S3 | Access key          | bucket: "buf", hostname: "nyc1.digitaloceanspaces.com", port: "3122", region: "nyc1-01", use_ssl: true, use_path_style: false, legacy_auth: false, name and password deleted | enable_sharing: true, readonly: false | All              |                   | Admin |
+----------+-------------+-----------+---------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------+------------------+-------------------+-------+