Symptoms
You may see "Information about the most recent deployment is unavailable." in the "Pull or Deploy" tab in "cPanel / Files / Git Version Control". This article aims to help you determine the cause of this message.
Description
The Git Version Control interface stores information about the last deployment in the file, "/home/username/.cpanel/datastore/vc_list_store". The cPanel environment writes a log of each deployment located at /home/username/.cpanel/logs/vc_TIMESTAMP_git_deploy.log
Workaround
You can find the log's location for the last deployment with the following uapi call:
VersionControlDeployment::retrieve
Run the following command as the cPanel user:
uapi VersionControlDeployment retrieve
Or as root:
uapi --user=username VersionControlDeployment retrieve
After running this command, use the "less" or the "cat" command to view the log_path in the output, which should show any errors that may have occurred during the deployment, usually as a result of an error caused by something in the .cpanel.yml file.
cat /home/user/.cpanel/logs/vc_1596036143.12345_git_deploy.log
For more information about deployment, refer to the following documentation page:
About Git Version Control and Remote Repositories deployment
Comments
0 comments
Article is closed for comments.