file uploading to server, but shortened url returns: no such file or directory #37
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mia/0x0#37
Loading…
Reference in a new issue
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?
so i've been trying to set my own 0x0 server up, and this has been the roadblock I hit.
I git cloned the repos, ran ./fhost db upgrade, and set the proper file upload folder. running it on uwsgi with the command
uwsgi --socket 0.0.0.0:4562 --protocol=http --plugin python3 --wsgi-file 0x0/fhost.py --callable app
. It deploys the server successfully, and am able to send files to the server. however, when I try to curl the shortened url back, curl returns 404. The uwsgi logs just return:[pid: 12945|app: 0|req: 3/3] 127.0.0.1 () {24 vars in 256 bytes} [Fri Mar 5 11:09:21 2021] GET /E.txt => generated 0 bytes in 5 msecs (HTTP/1.1 200) 3 headers in 172 bytes (0 switches on core 0)
and running fhost directly on debug returns this:
127.0.0.1 - - [05/Mar/2021 11:15:13] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [05/Mar/2021 11:15:48] "POST / HTTP/1.1" 200 -
127.0.0.1 - - [05/Mar/2021 11:15:55] "GET /E.txt HTTP/1.1" 404 -
The only options I have changed in the config section of fhost is the max files size, and changing the file upload section to stay inside of where I git cloned 0x0.
running the script on all default settings also gives no dice
any and all help is appreciated
You need to set a database URI as well, e.g.