Help with transition from GitLab to Git Repository method #1415
Replies: 6 comments 4 replies
-
Hi, Definitely something is wrong with your settings - the repository URL should be like: https://gitlab.com/publii-test/publii-test2024.git Also please remember to give proper permissions for the token nad use it in the password field And most important - please remember to add to the Tools -> File Manager -> root-files .gitlab-ci.yml file which contains the following:
Of course I assume that you are usin |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! Appreciate the details. Yes I am using main as a branch name. |
Beta Was this translation helpful? Give feedback.
-
My repository URL in Publii 0.40.3 which worked was in the following format: example.gitlab.io In 0.45, has the format changed? Do I use something like in your example? https://gitlab.com/username/example.git I am not sure what the .git extension is. It was not part of the server settings in Publii 0.40.3. https://gitlab.com/[GitLabAccountUsername]/[ProjectName].git The original configuration in older version was much simpler. It might be easy for most user but I am confused with the formatting of that URL. |
Beta Was this translation helpful? Give feedback.
-
I tried a bunch of configurations and randomly managed to test the connection successfully by adding the following instead: https://gitlab.com/[ProjectName]/[ProjectName].gitlab.io Not sure what happened or why this works even though it's not in the format ending in .git. Testing the server succeeds, but now when syncing the website, I get the following error message: An error occurred while connecting to the server: Critical error: |
Beta Was this translation helpful? Give feedback.
-
I suspect that you mixes website URL with repository URL - these are two different things. Regarding the fast forward issue - please try to remove the output folder and create an empty one ant then please try again. Regarding gitlab YML file - for use with Gitlab there is a different file configuration. For sync directly via git, the mentioned file should works if you are using "main" as a branch name |
Beta Was this translation helpful? Give feedback.
-
Is there someone at Publii who can review my settings for me and help? I am so lost. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. I am able to sync just fine with GitLab server using Publii 0.40.3.
However, when I try to use Publii 0.45.0 and setup Git Repository because GitLab will be deprecated, I am getting the following error message:
Error! Application was able to connect with your server but was unable to store files.
I have looked at previous forum posts but the answer is that a new version of Publii (version 0.41...) would fix the same error, but I am trying to use 0.45 so it's confusing. I have looked at the Publii online support articles but they are either outdated (explaining how to setup the deprecated method...) or do not explain the fields of the Git Repository setup in details to make sure setting up the new method does not lead to errors. Several of the fields are different. For exemple, it is not clear whether the "Repository URL" field should include https:// or not.
I have tried with both and get error messages regardless.
I am not sure what to do now since my old setup is still able to sync just fine. I have tried creating a new API token for Publii 0.45.0, but I still get the same error. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions