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
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.
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!
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/orhttp://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.
It will work but the URL must be the publicly accessible url, it is hit
from the browser directly to upload files.
On Mon, Dec 23, 2019 at 19:56 Pablo Vizcay notifications@github.com wrote:
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 https://github.com/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.—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/outline/outline/issues/1092?email_source=notifications&email_token=AAC474WBUKQ255RLOEBLZUDQ2GB6TA5CNFSM4JUXRU7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHSNHLQ#issuecomment-568644526,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC474TZV5XT6B55DWEO4JTQ2GB6TANCNFSM4JUXRU7A
.>
Tom Moor
Most helpful comment
I realized what was my mistake:
I set the parameter of this variable incorrectly:
It cannot be specified as
http://127.0.0.1:9000/orhttp://localhost:9000/.You must specify the domain name or external IP server where Minio is deployed.
@tommoor thank you for your work!