Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchWebsiteConfiguration: The specified bucket does not have a website configuration #4800

Open
Alwinator opened this issue Sep 18, 2022 Discussed in #4778 · 0 comments

Comments

@Alwinator
Copy link

Alwinator commented Sep 18, 2022

After more investigation I think this is a cloudserver issue (#4778)

Originally posted by Alwinator August 30, 2022
When I try to view my images on S3 (with a browser) I get the following response:

404 Not Found
Code: NoSuchWebsiteConfiguration
Message: The specified bucket does not have a website configuration
BucketName: recipe-images
RequestId: d8ce68624e4887aecb4b

Logs:

2022-08-30T16:09:14.863725630Z {"name":"S3","clientIP":"::ffff:10.0.1.5","clientPort":53534,"httpMethod":"GET","httpURL":"/recipe-images/1-S512","time":1661875754862,"req_id":"d8ce68624e4887aecb4b","level":"info","message":"received request","hostname":"baade6cba647","pid":59}
2022-08-30T16:09:14.864624122Z {"name":"S3","bucketName":"recipe-images","objectKey":"1-S512","bytesReceived":0,"bodyLength":0,"method":"routerWebsite","time":1661875754863,"req_id":"d8ce68624e4887aecb4b","level":"debug","message":"routing request","hostname":"baade6cba647","pid":59}
2022-08-30T16:09:14.865093970Z {"name":"S3","bucketName":"recipe-images","objectKey":"1-S512","bytesReceived":0,"bodyLength":0,"method":"websiteGet","time":1661875754863,"req_id":"d8ce68624e4887aecb4b","level":"debug","message":"processing request","hostname":"baade6cba647","pid":59}
2022-08-30T16:09:14.865182228Z {"name":"S3","bucketName":"recipe-images","objectKey":"1-S512","bytesReceived":0,"bodyLength":0,"time":1661875754864,"req_id":"d8ce68624e4887aecb4b","level":"debug","message":"getting bucket from metadata","hostname":"baade6cba647","pid":59} 
2022-08-30T16:09:14.870061498Z {"name":"S3","bucketName":"recipe-images","objectKey":"1-S512","bytesReceived":0,"bodyLength":0,"clientIP":"::ffff:10.0.1.5","clientPort":53534,"httpMethod":"GET","httpURL":"/recipe-images/1-S512","httpCode":404,"time":1661875754869,"req_id":"d8ce68624e4887aecb4b","elapsed_ms":6.535995,"level":"info","message":"responded with error html","hostname":"baade6cba647","pid":59} 
My zenko cloudserver config
{
    "port": 8000,
    "listenOn": [],
    "metricsPort": 8002,
    "metricsListenOn": [],
    "replicationGroupId": "RG001",
    "restEndpoints": {
        "localhost": "eu-central-1",
        "127.0.0.1": "eu-central-1",
        "srv-captain--cookboard-main-s3": "eu-central-1",
        "srv-captain--cookboard-s3": "eu-central-1"
    },
    "websiteEndpoints": ["cookboard-main-s3.alwin-schuster.example.com",
                         "cookboard-s3.alwin-schuster.example.com"],
    "replicationEndpoints": [{
        "site": "zenko",
        "servers": ["127.0.0.1:8000"],
        "default": true
    }, {
        "site": "us-east-2",
        "type": "aws_s3"
    }],
    "backbeat": {
        "host": "localhost",
        "port": 8900
    },
    "workflowEngineOperator": {
        "host": "localhost",
        "port": 3001
    },
    "cdmi": {
        "host": "localhost",
        "port": 81,
        "path": "/dewpoint",
        "readonly": true
    },
    "bucketd": {
        "bootstrap": ["localhost:9000"]
    },
    "vaultd": {
        "host": "localhost",
        "port": 8500
    },
    "clusters": 1,
    "log": {
        "logLevel": "info",
        "dumpLevel": "error"
    },
    "healthChecks": {
        "allowFrom": ["127.0.0.1/8", "::1"]
    },
    "metadataClient": {
        "host": "localhost",
        "port": 9990
    },
    "dataClient": {
        "host": "localhost",
        "port": 9991
    },
    "pfsClient": {
        "host": "localhost",
        "port": 9992
    },
    "metadataDaemon": {
        "bindAddress": "localhost",
        "port": 9990
    },
    "dataDaemon": {
        "bindAddress": "localhost",
        "port": 9991
    },
    "pfsDaemon": {
        "bindAddress": "localhost",
        "port": 9992
    },
    "recordLog": {
        "enabled": true,
        "recordLogName": "s3-recordlog"
    },
    "mongodb": {
        "replicaSetHosts": "localhost:27018,localhost:27019,localhost:27020",
        "writeConcern": "majority",
        "replicaSet": "rs0",
        "readPreference": "primary",
        "database": "metadata"
    },
    "externalBackends": {
        "aws_s3": {
            "httpAgent": {
                "keepAlive": false,
                "keepAliveMsecs": 1000,
                "maxFreeSockets": 256,
                "maxSockets": null
            }
        },
        "gcp": {
            "httpAgent": {
                "keepAlive": true,
                "keepAliveMsecs": 1000,
                "maxFreeSockets": 256,
                "maxSockets": null
            }
        }
    },
    "requests": {
        "viaProxy": false,
        "trustedProxyCIDRs": [],
        "extractClientIPFromHeader": ""
    },
    "bucketNotificationDestinations": [
        {
            "resource": "target1",
            "type": "dummy",
            "host": "localhost:6000"
        }
    ]
}

Cloudserver is hosted with Docker (zenko/cloudserver:8.1-latest-arm64v8).

Does anyone have an idea how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant