Failure deployed on Github Pages #23609
-
Good day! I ran into such a problem, no matter what I try to make changes to my repository on Github Pages, I constantly get “Failure” in Environments, please tell me how can I make changes to my repository on Github Pages without such an error? Help me please! |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments
-
is this the one you are referring? it’s working correctly, where is the error? |
Beta Was this translation helpful? Give feedback.
-
I mean, if I try to add something to the repository on Gihub Pages, some changes to my website, Github Pages doesn’t update them, but writes a build error. I tried to add or change something on Github Pages but gave an error every time. All errors are indicated in the photo in the Deployment history. Help please |
Beta Was this translation helpful? Give feedback.
-
is that GitHub Action? also, I cannot see the specific error of each also another thing, there was a post here about the problem of submodules also on GitHub Pages, so he simply removed it, and his GitHub Pages was resolved, I’m not saying you have the same error, but it might be the case |
Beta Was this translation helpful? Give feedback.
-
These errors show up on GitHub Pages. As soon as I make any change to the repository, I get this error for each change (for example, I made changes to index.html and style.css, tried to add files to a new folder (only .html, .css, .js)) |
Beta Was this translation helpful? Give feedback.
-
I just tested now deploying a site then changing a content, the deployment does not give me error. so I checked again the errors, when I click the link, it says it’s unauthorized access that’s why it’s an error
|
Beta Was this translation helpful? Give feedback.
-
I haven’t looked at the errors in this section yet, they showed up as alerts in the Environments section, as shown in the photo I showed earlier. And if, I have such an error, as shown in your photo (I have not seen such an error), then in connection with what can there be unauthorized access? |
Beta Was this translation helpful? Give feedback.
-
When debugging, start with the first error. Later errors might be caused by the first failing step. In your case, that’s during checkout in the Pages build job: Trigger rebuild · ItProgrammist/ItProgrammist.github.io@fd40c1e · GitHub It looks like your repository contains a broken submodule configuration, so checkout fails, and because of that the Pages build never happens. How to fix the submodule depends on what the submodule should be. The name of the submodule looks like the repository references itself, which doesn’t really make sense. In that case just deleting the submodule should be enough. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Please tell me, how can I delete this submodule? |
Beta Was this translation helpful? Give feedback.
-
Just delete it (in your local copy of the repository):
Then commit and push as usual. The diff should show you that a submodule (or “subproject”) is getting removed. |
Beta Was this translation helpful? Give feedback.
-
Huh, that’s odd. I wonder if your local repository isn’t at the same state as the one on GitHub? You can check |
Beta Was this translation helpful? Give feedback.
-
I don’t understand what happened at all, but it worked. I just added a file, made a commit, made a push, and it worked. The only thing that confused me when I made the commit was: delete mode 160000 ItProgrammist.github.io in the first photo |
Beta Was this translation helpful? Give feedback.
-
Here another problem arose, I don’t know in connection with what, but I’m interested. All files that are in the folders in the subPages folder have exactly the same errors. |
Beta Was this translation helpful? Give feedback.
-
ItProgrammist:
That means the deletion of the submodule was committed there. The mode describe access permissions, but I’m not sure how those work on Windows. 😉 |
Beta Was this translation helpful? Give feedback.
-
That’s an error in your code, and the error message says exactly what the problem is. Load your scripts over HTTPS, not HTTP. |
Beta Was this translation helpful? Give feedback.
-
But before that they worked correctly, I did not change anything. Now I will look at my code again |
Beta Was this translation helpful? Give feedback.
-
Depends on when you last checked the site. Refusing to load scripts over HTTP on HTTPS sites is a security feature browsers gradually introduced over the last few years. |
Beta Was this translation helpful? Give feedback.
-
I had two same errors, I fixed everything from http to https. One’s gone, the other stayed |
Beta Was this translation helpful? Give feedback.
-
That’s essentially the same thing, just for a font instead of a script. |
Beta Was this translation helpful? Give feedback.
When debugging, start with the first error. Later errors might be caused by the first failing step. In your case, that’s during checkout in the Pages build job: Trigger rebuild · ItProgrammist/ItProgrammist.github.io@fd40c1e · GitHub
It looks like your repository contains a broken submodule configuration, so checkout fails, and because of that the Pages build never happens. How to fix the submodule depends on what the submodule should be. The name of the submodule looks like the repository references itself, which doesn’t really make sense. In that case just deleting the submodule should be enough. 🙂