Static Site Hosting 404 Error

I’ve connected a GitHub repo to my kinsta static site. It has an index.html file, and other than that just some images, CSS, JS, and PHP. My deploy logs show that it was deployed, but when clicking Visit Site I just see a 404 Not Found error page.

Hello there! :wave: Thanks for reaching out.
Welcome to the Kinsta Community Forum.

Could you kindly clarify the name of the company you are referring to?
Please provide your response via direct message.

Best regards,
Jovana, Kinsta Team

Thanks for the info.

Did you try to follow the steps from here?
If not, please do and let me know if that helped.

Thank you!
I am here if you have any questions.

Best regards,
Jovana, Kinsta Team

Hi,
I’ve already checked out this page, and done everything on it (I didn’t do Build Step or Publish Directory because I’m just using HTML/CSS/JS/PHP).

Actually, I have set both the Root and Publish directories to main, which is the root branch of my GitHub repo

Thanks for writing back @Mustafa_Ashraf

We don’t have access to your repository so we cannot check it. You can make it public for the duration of troubleshooting (if applicable) and we’ll check it.

Did you make sure that the main file is called index.html?

Kind regards,

I’ve made the repository public temporarily. And yes, there is a file called index.html, but I don’t know what you mean by “main file”.

Thanks for the help!

Hello @Mustafa_Ashraf :wave:

I think the issue here is that you ‘publish’ directory is set to main. It should be Warden Website. If it doesn’t work, please rename the directory to not have blank space in it’s name (like WardenWebsite) and update the ‘publish’ directory accordingly.

Kind regards,
Nikola

1 Like

Hey @nikoladjuric,
Thanks for the reply. I’ve done this and, in order to get rid of the space in the directory name, I deleted all files from the repository and reuploaded the folder without a space in it. I also updated the root and publish directories in the Kinsta settings.

Now, whenever trying to deploy anything, whether automatically via the repo, or manually from Kinsta, an “X” shows up next to the deploy log, saying “error during deployment”.

I’m stumped.

Hi @Mustafa_Ashraf

Could you please check for any log entries in MyKinsta >> Static Sites >> Your Site >> Deployments >> Click on the latest Deployment? These logs in the deployment console might provide clues as to why the deployment is failing.

Best,

Hello there :wave:

The error indicates that there’s no such file or directory. I believe there was a misunderstanding.

The root should remain empty, and the Publish should be WardenWebsite. Please edit that and redeploy, after a bit (when the cache clears) the error should be resolved.

Kind regards

Hi,
Thanks a lot! That seems to have worked! Thank you all for your help, and sorry if my issue was a bit basic as this is the first time using GitHub in this way!

Hello @Mustafa_Ashraf :wave:

Not a problem at all, I’m happy the issue is now resolved :slight_smile:

Kind regards!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.