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

Getting an error cannot create stream multipart_upload_metadata #180

Closed
Dkairu opened this issue May 21, 2021 · 3 comments
Closed

Getting an error cannot create stream multipart_upload_metadata #180

Dkairu opened this issue May 21, 2021 · 3 comments

Comments

@Dkairu
Copy link

Dkairu commented May 21, 2021

I am trying to test the s3 output but getting this error cannot create stream multipart_upload_metadata

The command I am running is ./fluent-bit -i tail -p path=/var/log/apport.log -o s3 -p bucket=mybucket -p region=us-east-1 -v

Running this on an ubuntu ec2.

[2021/05/21 21:39:45] [debug] [fstore] [cio scan] opening path /tmp/fluent-bit/s3/mybucket
[2021/05/21 21:39:45] [debug] [fstore] created stream path /tmp/fluent-bit/s3/mybucket/2021-05-21T21:39:45
[2021/05/21 21:39:45] [debug] [fstore] [cio stream] new stream registered: 2021-05-21T21:39:45
[2021/05/21 21:39:45] [error] [fstore] cannot create stream multipart_upload_metadata
[2021/05/21 21:39:45] [error] [output:s3:s3.0] could not initialize multipart_upload stream
[2021/05/21 21:39:45] [debug] [fstore] [cio stream] delete stream path: /tmp/fluent-bit/s3/mybucket/2021-05-21T21:39:45
[2021/05/21 21:39:45] [error] [output:s3:s3.0] Failed to initialize S3 storage: /tmp/fluent-bit/s3
[2021/05/21 21:39:45] [error] [output] Failed to initialize 's3' plugin
[2021/05/21 21:39:45] [error] [lib] backend failed

Of course mybucket=myrealbucketname...

@Dkairu Dkairu changed the title Getting an error cannot create stream multipart_upload_metadata Getting an error cannot create stream multipart_upload_metadata May 21, 2021
@PettitWesley
Copy link
Contributor

[2021/05/21 21:39:45] [debug] [fstore] created stream path /tmp/fluent-bit/s3/mybucket/2021-05-21T21:39:45

This is the default buffer path that Fluent Bit S3 uses (/tmp/fluent-bit). It creates a directory for multipart upload metadata in that path called multipart_upload_metadata. That is what this error message is about.

You probably have some issue with file permissions which is preventing the buffer directory from being written to.

You can customize it with the store_dir parameter: https://docs.fluentbit.io/manual/pipeline/outputs/s3

@Dkairu
Copy link
Author

Dkairu commented May 26, 2021

Ok thank you @PettitWesley I will test that out. I also have a different issue to do with credentials, I didn't create a new issue but instead posted on an old issue. If you can please check this out for me, I would I appreciate it. #103

@matthewfala
Copy link
Contributor

@Dkairu, another easy solution may be to just manually create the /tmp/fluent-bit/s3 folder on your instance. I'm closing this issue for now. Please open it if you are still facing problems regarding initialization.

Please take a look at the comment regarding your credentials issue: #258

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

3 participants