Legacy Knowledge Base
Published Sep. 10, 2025

Known Issue [Resolved]: Using the Liferay PaaS CLI lcp deploy command removes the git origin configuration

Written By

Isaac Wilson

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • After using the lcp deploy command in the CLI to deploy a service, the command seems to erase the existing git remote origin configurations, replacing it with a blank value (observed when executing the git remote -v command). Though the lcp deploy  itself is successful, it then causes the following error when attempting to push another build to the repository:

    fatal: 'origin' does not appear to be a git repository
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
  • Attempting to update from CLI version 3.7.8 to 3.7.9 or 3.8.0 does not appear to resolve the issue.

Environment

  • Liferay PaaS CLI

Resolution

  • This behavior can be resolved by updating the CLI to v3.8.1+, using lcp update, which will prevent lcp deploy from erasing the git origin value

Additional Information

 

Did this article resolve your issue ?

Legacy Knowledge Base