file uploading to server, but shortened url returns: no such file or directory #37

Closed
opened 2021-03-05 17:33:45 +01:00 by xotical · 1 comment
xotical commented 2021-03-05 17:33:45 +01:00 (Migrated from github.com)

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

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.

SQLALCHEMY_DATABASE_URI = "sqlite:///db.sqlite"
You need to set a database URI as well, e.g. ```py SQLALCHEMY_DATABASE_URI = "sqlite:///db.sqlite" ```
mia closed this issue 2022-08-01 18:06:51 +02:00
mia added the
question
label 2022-08-01 18:06:56 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mia/0x0#37
No description provided.