403 #20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello!
Just installed the Unraid container. Opening the homepage from my Unraid UI I get a 403... any ideas?
Thanks!
Could you attach a screenshot (or paste it here) of the docker container logs? Click the container icon then -> logs
Sure, here you go!
It seems to be a permission issue. Could you set the permissions of the upload directory to 777?
watch this for an example
That didn't help. It's currently at 777 with nobody as owner, still getting 403s... 😐
Are you able to upload files using ShareX? I believe the error is because nginx isn't allowed to show the contents of the directory. If you add a index.html file to the root upload location it should load fine.
I just pushed an update that will add a default index.html. If you update it should show you this page :)
Yesss now I see the uploaded page!
As for uploading screenshots now, I wasn't able to though I was getting the URL back as described in the guide. Let me try again...
Nope, still not uploading. The ShareX icon has changed to a blue rectangle with '99' in it, nothing in the directory.
Here's what I'm getting when testing the uploader from the app:
Response text:
{ "status": 200, "data": { "link": "https:\/\/example.com\/image.png" } }
URL syntax:
http://10.0.0.100/{json:url}
Result:
http://10.0.0.100/
(that's my NAS).
[EDIT] after several minutes I got an error popup. Can't find where ShareX shows its log, but the message referenced an error 500...
[EDIT 2] Found it:
There should be some kind of error in the container log, if you could provide that i'll be able to know why :)
also, make sure you updated the
YOUR_DOMAIN
part in ShareXI'm attaching the container log; also, my ShareX custom destination setting. Hope it helps!
Is the container logs after you have uploaded a file/image? also, please set a upload key as that could be causing issues
Yes, that's after I tried to upload one (I think).
Buuuut yeah, I haven't set a key though I did set one when installing the docker - couldn't find a place to put it, until you mentioned it and I looked at the picture for the hundredth time 😁 I'll try and report back.
There should have been a Nginx log, so I don't think so, can you try again and see if there is any extra logs?
No, that was all, really.
Let me try again. Restarted container, trying to upload a shot as I'm typing this, indeed no image in the destination directory.
Log:
Checking if upload script exists in /var/www/html
Upload script was found, ignoring copy.
Checking if default index.html exists in /var/www/html
Upload script was found, ignoring copy.
Setting permissions for upload script
Setting max upload size to 500M
Starting PHP & Nginx
Checking if upload script exists in /var/www/html
Upload script was found, ignoring copy.
Checking if default index.html exists in /var/www/html
Upload script was found, ignoring copy.
Setting permissions for upload script
Setting max upload size to 500M
Starting PHP & Nginx
(obviously appended to older log). That's all.
Regarding the secret, I've set it in the container config, however I cannot find the specific secret in the php file. Where should it be? (for the time being I set it as "set me" in ShareX to see if it gives me something back).
You don't need to edit the php file, just the ones in the Unraid. Are you sure you are using the correct port? There should be some kind of logs in the container, I'm not sure why you aren't getting any
Accessing the website I get logs:
I mean... I do see the landing page, so I guess the port is correct?
Anyhow, tomorrow I'll try from scratch and let you know! (It's night here, I'm in Europe).
Sooo ok, I removed both the container and ShareX because I wasn't feeling lucky, installed everything anew, now it works fine :)
No idea what went wrong, and I apologise for taking your time. Thanks for your efforts (and the container, naturally!). :)
no worries! I'm glad you got it all working:)