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

Bug: I can't get very specific files to upload #628

Open
profilesName opened this issue Oct 23, 2024 · 3 comments
Open

Bug: I can't get very specific files to upload #628

profilesName opened this issue Oct 23, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@profilesName
Copy link

profilesName commented Oct 23, 2024

What happened?

I setup this server 2 days ago so bare with me. Zipline is running on a proxmox xubuntu vm currently with docker. I've finally managed to set it up with an nginx reverse proxy, and am able to get on the site itself to upload very specific things. By that I mean that I can upload jpg, xlsx and mp4 files, but not zip, pptx or exes. I find this quite odd as I've setup zipline to not block any extensions what so ever in the docker-compose.yml file. Also, it's not that it denies it outright, its more like it says that its uploading whilst its not actually doing anything. Logs show that the files that never upload aren't creating any errors and normally receiving requests.

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

No response

Zipline Logs

2024-10-23 06:01:18 zipline-1   | 2024-10-23 10:01:18,523 AM info  [server::response] GET /api/version -> 200
2024-10-23 06:01:18 zipline-1   | 2024-10-23 10:01:18,988 AM info  [upload] User admin (1) uploaded bpvoFh.png (9)
2024-10-23 06:01:18 zipline-1   | 2024-10-23 10:01:18,989 AM info  [server::response] POST /api/upload -> 200
2024-10-23 06:01:28 zipline-1   | 2024-10-23 10:01:28,994 AM info  [server::response] GET /api/version -> 200

Browser Logs

No response

Additional Info

No response

@profilesName profilesName added the bug Something isn't working label Oct 23, 2024
@diced
Copy link
Owner

diced commented Oct 23, 2024

What do you mean by uploading but not doing anything? Do you get a response from the server when you send the POST request? Zipline should be able to handle any sort of file so I'm not sure what the problem is yet, but you can try to enable debug logs by adding the DEBUG=true environment variable in the docker-compose.yml and checking the logs then, it'll just have a bunch more logs and probably useless information but it might help pinpoint the issue.

@profilesName
Copy link
Author

Hey diced. I turned on the debugging and found that the server just straight up doesnt receive a POST request for the files i mentioned that I cannot upload. Logs below.

Uploading an image:
2024-10-23 22:19:25 zipline-1 | 2024-10-24 02:19:25,230 AM info [server::response] GET /api/version -> 200
2024-10-23 22:19:25 zipline-1 | 2024-10-24 02:19:25,231 AM debug [server::response] {"method":"GET","url":"/api/version","headers":{"host":"zipline.pnzr.xyz","x-real-ip":"192.168.0.1","x-forwarded-for":"192.168.0.1","x-forwarded-proto":"https","connection":"close","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br, zstd","referer":"https://zipline.pnzr.xyz/dashboard/upload/file","dnt":"1","sec-gpc":"1","cookie":"user=MGFjNWU3ZGQtMjU0MS00YzUzLWI4NTAtOWRlNTY5MzA2NjdjOlZFN1VuTWduTWkzOVYzM1htZnM2c0FQOUpZQ0tHeDhDQWlMby9Ob1RrakU%3D","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","priority":"u=4","x-middleware-invoke":"","x-invoke-path":"/api/version","x-invoke-query":"%7B%7D","x-invoke-output":"/api/version","x-forwarded-host":"zipline.pnzr.xyz","x-forwarded-port":"3000"}}
2024-10-23 22:19:30 zipline-1 | 2024-10-24 02:19:30,164 AM debug [upload] recieved upload (len=1) [{"fieldname":"file","originalname":"Screenshot%202024-10-22%20134847.png","mimetype":"image/png","size":62520,"encoding":"7bit"}]
2024-10-23 22:19:30 zipline-1 | 2024-10-24 02:19:30,176 AM info [upload] User admin (1) uploaded lIRzIn.png (11)
2024-10-23 22:19:30 zipline-1 | 2024-10-24 02:19:30,177 AM info [server::response] POST /api/upload -> 200
2024-10-23 22:19:30 zipline-1 | 2024-10-24 02:19:30,177 AM debug [server::response] {"method":"POST","url":"/api/upload","headers":{"host":"zipline.pnzr.xyz","x-real-ip":"192.168.0.1","x-forwarded-for":"192.168.0.1","x-forwarded-proto":"https","connection":"close","content-length":"62767","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br, zstd","authorization":"4TmRgNS7L2XNgQCUDvm4Flu0.MTcyOTY2Nzk4NzkzOQ","content-type":"multipart/form-data; boundary=---------------------------368950772017074169001309691326","origin":"https://zipline.pnzr.xyz","dnt":"1","sec-gpc":"1","referer":"https://zipline.pnzr.xyz/dashboard/upload/file","cookie":"user=MGFjNWU3ZGQtMjU0MS00YzUzLWI4NTAtOWRlNTY5MzA2NjdjOlZFN1VuTWduTWkzOVYzM1htZnM2c0FQOUpZQ0tHeDhDQWlMby9Ob1RrakU%3D","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","priority":"u=0","x-middleware-invoke":"","x-invoke-path":"/api/upload","x-invoke-query":"%7B%7D","x-invoke-output":"/api/upload","x-forwarded-host":"zipline.pnzr.xyz","x-forwarded-port":"3000"}}

Uploading a .zip file:
2024-10-23 22:20:15 zipline-1 | 2024-10-24 02:20:15,334 AM info [server::response] GET /api/version -> 200
2024-10-23 22:20:15 zipline-1 | 2024-10-24 02:20:15,334 AM debug [server::response] {"method":"GET","url":"/api/version","headers":{"host":"zipline.pnzr.xyz","x-real-ip":"192.168.0.1","x-forwarded-for":"192.168.0.1","x-forwarded-proto":"https","connection":"close","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br, zstd","referer":"https://zipline.pnzr.xyz/dashboard/upload/file","dnt":"1","sec-gpc":"1","cookie":"user=MGFjNWU3ZGQtMjU0MS00YzUzLWI4NTAtOWRlNTY5MzA2NjdjOlZFN1VuTWduTWkzOVYzM1htZnM2c0FQOUpZQ0tHeDhDQWlMby9Ob1RrakU%3D","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","priority":"u=4","x-middleware-invoke":"","x-invoke-path":"/api/version","x-invoke-query":"%7B%7D","x-invoke-output":"/api/version","x-forwarded-host":"zipline.pnzr.xyz","x-forwarded-port":"3000"}}
2024-10-23 22:20:19 zipline-1 | 2024-10-24 02:20:19,954 AM info [server::response] GET /api/version -> 200
2024-10-23 22:20:19 zipline-1 | 2024-10-24 02:20:19,955 AM debug [server::response] {"method":"GET","url":"/api/version","headers":{"host":"zipline.pnzr.xyz","x-real-ip":"192.168.0.1","x-forwarded-for":"192.168.0.1","x-forwarded-proto":"https","connection":"close","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","accept":"/","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate, br, zstd","referer":"https://zipline.pnzr.xyz/dashboard/upload/file","dnt":"1","sec-gpc":"1","cookie":"user=MGFjNWU3ZGQtMjU0MS00YzUzLWI4NTAtOWRlNTY5MzA2NjdjOlZFN1VuTWduTWkzOVYzM1htZnM2c0FQOUpZQ0tHeDhDQWlMby9Ob1RrakU%3D","sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","priority":"u=4","x-middleware-invoke":"","x-invoke-path":"/api/version","x-invoke-query":"%7B%7D","x-invoke-output":"/api/version","x-forwarded-host":"zipline.pnzr.xyz","x-forwarded-port":"3000"}}

@diced
Copy link
Owner

diced commented Nov 26, 2024

Sorry about the late response, but if you are still having this problem I'd check the browser logs next, and another thing that may be the issue is your reverse proxy somehow blocking certain files? I'm not sure though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants