Skip to content

Forum in maintenance, we will back soon 🙂

Hosting fast API on...
 
Notifications
Clear all

Hosting fast API on VPS server

39 Posts
4 Users
6 Reactions
585 Views
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

I need help to host Fast API on UltaHost. I use cyber pannel. 

1

I went to an application installed and git.

2

then attache existing repo

3

then added the above detaii ls

4

next went to GitHub and added the deployment key

But I got the below error.

5
 
Posted : 05/08/2024 12:27 pm
Hasan Aboul Hasan
(@admin)
Posts: 1257
Member Admin
 

ultrahost allows python application hosting?

 
Posted : 05/08/2024 4:14 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@dassa do you have access to root on your VPS? Can you get logged into a shell via ssh? 

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 05/08/2024 7:58 pm
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@admin they said I can host.

 
Posted : 05/09/2024 2:31 pm
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@ssadvisor hopefully yes

 
Posted : 05/09/2024 2:32 pm
SSAdvisor
(@ssadvisor)
Posts: 1139
Noble Member
 

@dassa are you comfortable with installing server side software? What OS is the server running?

Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

 
Posted : 05/09/2024 2:40 pm
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@ssadvisor not really. but like to learn. also, ultrahot support team ask me to send domain link and script URL. may be they will do.

 
Posted : 05/10/2024 3:59 am
Hasan Aboul Hasan
(@admin)
Posts: 1257
Member Admin
 

Did you try my open-source project on hosting Python fast API on Ubuntu servers with one click? hassancs91/Python-FastAPI-Auto-Deploy (github.com)

If you have root access to the VPS, I can help you do that. Please double-check and let me know.

 
Posted : 05/10/2024 10:12 am
Dim2001 reacted
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@admin Thank you for your help Mr. hassan. Yes, I have root access to the VPS. Also ultahost said The given application/script link is not working ( https://github.com/dimu2000/Python-Fast-API-main.git). If you can help me that's great. 

 
Posted : 05/11/2024 1:36 am
Hasan Aboul Hasan
(@admin)
Posts: 1257
Member Admin
 

This is the project link: hassancs91/Python-FastAPI-Auto-Deploy (github.com)

here is a tutorial on it: https://youtu.be/RtsNZTLlxOU?si=bf1jJQx2fB2qFB7R

please check and let me know

 

 
Posted : 05/11/2024 8:41 am
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@admin I did everything, But this error passed.

Screenshot 1

this is my configurations.
Note:vps_ip, vps_user, vps_password and github_token values changed. The values in the picture are not the correct value.

Screenshot 5
 
Posted : 05/12/2024 3:23 pm
Hasan Aboul Hasan
(@admin)
Posts: 1257
Member Admin
 

@dassa please dont share your key publicly.

there is a problem installing a package.

is it my template? or your own API?

 
Posted : 05/12/2024 8:50 pm
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

@admin no. That is your api. But i did push it to github by my self

 
Posted : 05/12/2024 11:42 pm
Hasan Aboul Hasan
(@admin)
Posts: 1257
Member Admin
 

That's weird; I think it is a mismatch between the Python version and the package.

Did you add your own endpoints, or are you just testing and learning with my API Template?

The instructor package which raised the error is not always needed. it depends on your project

Does the hosting provider always take snapshots of the server in case any error happens so we can go back and retry?

did you try with another sample API other than my template?

 

 

 
Posted : 05/13/2024 2:28 pm
Dim2001
(@dassa)
Posts: 99
Member
Topic starter
 

anyway, I give up and host API using digital ocean. Now the API is working but this error message coming.

Screenshot 1
 
Posted : 05/26/2024 4:48 am
Page 1 / 3
Share:
build ai agents ad