[Questions/Issue] Upload, users & issue solving
Closed this issue ยท 16 comments
Hello,
I'm not sure if I'm missing something but I have two questions.
- 1 Is it possible to add users, so my friend can upload their clip to my fireshare?
- 2
Is it possible to upload the video through the web gui? If it's possible I can't seem to find the button.Found it, but had to refresh browser after saving "Show Admin Upload Card". - 3 Is there any debug mode so I can see the http request the service receives?
Thanks in advance.
/Robin
- At the moment there isn't a user system in place outside of a single administrator. You could enable public uploads and your friend could upload videos through that. I don't currently have any plans on adding that in as it would require building out a permission system and a lot of UI work. Multiple users was never something that was planned. Sorry.
- There isn't a debug mode unfortunately for viewing the internal http traffic. However, if you have Fireshare proxied behind a service like nginx you could simply view those nginx logs.
Actually I'm wrong about point #2 sort of. By default we already log all the internal traffic. You just need to view the docker logs to see them.
Thanks for the reply.
I am currently using traefik as an reverse proxy and I can not upload any files. The failing part is on my end because it works without traefik.
I watch the docker logs and it doesn't say much. So I need to keep digging. :)
The proxy (Traefik) work with Edge but not Firefox. The fireshare container is "just" showing http status 400. But I would like to dump the request to see why! ๐
Need to dig a bit more.
I would look at the Traefik logs as well, it's likely an issue with your proxy rather than an issue with Fireshare. Unfortunately I don't know anything about Traefik and only really have experience with Nginx.
Hmm, this is very odd. Is it possible for you to output how the request looks like in Fireshare and/or why the client receive HTTP 400? Because it looks like it start uploading the file and the it gets canceled. Sometimes it takes 1sec other 7sec and the amount of data being transferred is different also.
I can see that the request Traefik forwarding from Edge and Firefox looks more or less the same, but somehow I receive HTTP 400 with Firefox and the transfer cancels.
Could you print the "real" error here if debug = on ?
Works:
- Edge > Fireshare
- Firefox > Fireshare
- Edge > Traefik > Fireshare
Not working:
- Firefox > Traefik > Fireshare
"POST /api/upload HTTP/1.1" 400 0 "https://my.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0" "172.18.0.3"
Update:
Sometimes a small (23MB) file fails during upload then i try again and it works (Firefox). :/
Can't seem to find the issue. Have done a lot of troubleshooting. Can't reproduce it on my laptop either. Friend1 can upload to my fireshare with Firefox and traefik.But my friend2 can't upload to fireshare when traefik is doing the reverse proxy (same as me).
I give up! ๐
Edit:
The logs you told me goes to stdout which "docker logs" show.
It's mp4 files, but the problem occurs before it reach 100%. When we skip traefik the files get uploaded and we can watch them in fireshare.
The problem only occurs for me with firefox and traefik. It's hard to tell when watching the logs but it might be that Firefox is canceling the upload and then Fireshare is returning HTTP 400 because of incomplete upload.
Yeah the only thing I can say is it's either an issue in the Traefik configuration or an issue with something your friend is doing.
I primarily use Firefox as my browser and I don't have any issues with uploading to Fireshare through a reverse proxy. The only difference is that I'm using nginx. As long as you've set the appropriate configs in Traefix for allowing uploads (increasing the timeout on uploads and increasing the max file size for uploads) it should just work.
Traefik should be correct and it works with other services like gitlab, nextcloud and filebrowser.
The strange part is that it works on my laptop and apps and settings is pretty identical to my desktop. ๐คจ
Sorry for all the stupid questions. I understand that this is like finding a needle in a haystack. I'm really confused why it works on some devices and some it doesn't.
Well if it's working perfectly fine going directly to the web ui and not through your proxy then the issue doesn't lie with Fireshare, there has to be some outside source causing it whether that be your Traefik config or something else.
I'm going to close this issue for now. If you eventually figure out what the problem please let me know.
I just want to let you know that my problem is now solved. I don't know what was causing the issue to happen, but I formatted my computer today and reinstalled the same build of Firefox (and addons) as before, and it know works with Traefik. Before I reinstalled my computer I reinstalled Firefox and it didn't work, so I really don't know what was causing the issue.
I'll let you know if the issue appears again and I notice what may be causing it.
Thanks for all the help!