Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Gitlab syncing problem

  • #9111
    Avatar photo[anonymous]

    Hi,

    I have been using publii last time about 6-9 months ago. Now I have the version 0.41.1 (build 15919) and cannot synchronise my website with gitlab even though I have not changed any settings. I followed the gitlab configuration procedure, but I get an error message during synchronisation:

    An error occured while connecting to the server: Response code 400 (Bad Request)

    Server->Test connection->I get this error message:

    Error! Application was able to connect with your server but was unable to store files. Please check file permission on your server: Selected repository does not exist.

    Is it a bug? Has something changed on the gitlab side and is the documentation out of date?

    Thank you

    Tools->Log viewer->log files.

    Deployment-errors.log is empty

    Deployment-process.log:

    [Mon, 16 Jan 2023 07:15:33 GMT] (!) CLIENT CREATED
    Founded 177 operations to do
    [Mon, 16 Jan 2023 07:15:40 GMT] (!) FILES TO REMOVE DETECTED
    [Mon, 16 Jan 2023 07:15:40 GMT] (!) REMOTE FILE DOWNLOADED
    [Mon, 16 Jan 2023 07:15:40 GMT] (!) COMMIT ERROR: {"name":"HTTPError","timings":{"start":1673853340306,"socket":1673853340307,"lookup":1673853340308,"connect":1673853340326,"secureConnect":1673853340347,"upload":1673853340348,"response":1673853340691,"end":1673853340692,"phases":{"wait":1,"dns":1,"tcp":18,"tls":21,"request":1,"firstByte":343,"download":1,"total":386}},"description":"A file with this name doesn't exist"}
    #9165
    Avatar photo[anonymous]

    Hi,

    It looks like you have removed some file from gitlab and Publii tries to remove it but cannot as it not exists. Maybe restoring this file (even empty one on gitlab repository) will help. In fact you shouldn’t touch te repository used in sync with Publii, because it can lead to such issues.

    #9249
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    Hi,

    It looks like you have removed some file from gitlab and Publii tries to remove it but cannot as it not exists. Maybe restoring this file (even empty one on gitlab repository) will help. In fact you shouldn’t touch te repository used in sync with Publii, because it can lead to such issues.

    Thank you for your reply. I deleted publii folder and main file from the repository and the syncronization process started to work again. However, I still get this error form Server->Test connection

    Error! Application was able to connect with your server but was unable to store files. Please check file permission on your server: Selected repository does not exist.

    #9251
    Avatar photo[anonymous]

    Ok, I will review the Gitlab integration and check if I can reproduce this issue – if yes, I will try to fix it.