legacy-knowledge-base
Publicado Sep. 25, 2010

Unable to copy from file:/opt/liferay/osgi/modules error when starting docker

written-by

Tamas Kovacs

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

learn-legacy-article-disclaimer-text

Issue

When starting Liferay docker environment, the user gets the following error: 

ERROR [main][ModuleReadHookImpl:88] Unable to copy from file:/opt/liferay/osgi/modules

Environment

  • Docker
  • Liferay Quarterly Release 2023.Q3

Resolution

  • Because in 2023.Q3 the directory osgi/modulesalso contains Liferay modules. This may clash with some of Docker's own volume for your developments. 
     
    LPS-200065 will move Liferay modules to the directory osgi/portalinstead osgi/modules. This fix is expected to be included in the 2023.Q4 quarterly.
     
    An alternative resolution to the 2023.Q3 versions is to define your own directory using portal-ext.properties of the form:
    module.framework.auto.deploy.dirs=\
    ${module.framework.client.extensions.dir},\
    ${module.framework.configs.dir},\
    ${module.framework.marketplace.dir},\
    ${module.framework.modules.dir},\
    ${module.framework.portal.dir},\
    ${module.framework.war.dir},\
    ${module.framework.base.dir}/custom

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base