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

I can not attach the image to the documents #1092

Closed
ADWadmin opened this issue Dec 3, 2019 · 5 comments
Closed

I can not attach the image to the documents #1092

ADWadmin opened this issue Dec 3, 2019 · 5 comments
Labels
question self-hosted Issues related to self-hosting the code

Comments

@ADWadmin
Copy link

ADWadmin commented Dec 3, 2019

Hello!
I deployed Outline on my own physical server, for my company.
I know about #1052 and therefore deployed Minio on the same server.
In the file ".env" I indicated the correct data according to the file: "/home/username/.minio/config.json".

AWS_ACCESS_KEY_ID=**************************
AWS_SECRET_ACCESS_KEY=*******************************
AWS_REGION=us-east-1
AWS_S3_UPLOAD_BUCKET_URL=http://127.0.0.1:9000/
AWS_S3_UPLOAD_BUCKET_NAME=outline
AWS_S3_UPLOAD_MAX_SIZE=26214400

However, when I try to attach the image to the document, I still see the error:
Sorry, an error accured uploading the image

The following entry appears in the "PM2" logs:
0|outline  | (node:1933) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

What could be my mistake?

Used configuration:
Ubuntu 18.04.3 LTS
Node.js v13.2.0
pm2 v4.1.2
NPM v6.13.1
PostgresSQL v10.10
Redis server v4.0.9
Minio 2019-10-12T01:39:57Z
Apache/2.4.29 (reverse proxy SSL)
Slack

@tommoor tommoor added question self-hosted Issues related to self-hosting the code labels Dec 4, 2019
@tommoor
Copy link
Member

tommoor commented Dec 4, 2019

The log entry appears to be a red herring, when the upload is attempted from the browser you should see an error response in the network inspector that would give you more information about the specific error.

I'm closing this out as it is not a bug in the software, but rather a configuration issue. You may continue to reply in this thread though.

@tommoor tommoor closed this as completed Dec 4, 2019
@ADWadmin
Copy link
Author

ADWadmin commented Dec 4, 2019

I realized what was my mistake:
I set the parameter of this variable incorrectly:

AWS_S3_UPLOAD_BUCKET_URL=http://127.0.0.1:9000/

It cannot be specified as http://127.0.0.1:9000/ or http://localhost:9000/.
You must specify the domain name or external IP server where Minio is deployed.

@tommoor thank you for your work!

@vizcay
Copy link

vizcay commented Dec 24, 2019

I realized what was my mistake:
I set the parameter of this variable incorrectly:

AWS_S3_UPLOAD_BUCKET_URL=http://127.0.0.1:9000/

It cannot be specified as http://127.0.0.1:9000/ or http://localhost:9000/.
You must specify the domain name or external IP server where Minio is deployed.

@tommoor thank you for your work!

What happens if Minio is on the same server with outline.. this should work, right? I am considering doing this to have my company wiki on just a cheap VPS node.

@tommoor
Copy link
Member

tommoor commented Dec 24, 2019 via email

@heyvaldemar
Copy link

hey guys, I wrote a detailed guide after I was able to configure Outline with MinIO and Keycloak.

Hopefully, it will help others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question self-hosted Issues related to self-hosting the code
Projects
None yet
Development

No branches or pull requests

4 participants