04-23-2021 05:02 AM
Hi!
I have an installation of Alfresco 6.2 on development environment which was perfomed using SDK 4.x and there is a lot of custom code here. When I upgrading this Alfresco installation according following guide https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/switching-versions.md to version 7.0.0
Step 8/15 : RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force ---> Running in e2c4ca6f376d / bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Exception in thread "main" java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: ?????? ???.xml at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:145) at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:69) at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279) at java.base/java.nio.file.Path.resolve(Path.java:515) at de.schlichtherle.truezip.fs.nio.file.FileEntry.<init>(FileEntry.java:60) at de.schlichtherle.truezip.fs.nio.file.FileController.getOutputSocket(FileController.java:172) at de.schlichtherle.truezip.file.TBIO.getOutputSocket(TBIO.java:311) at de.schlichtherle.truezip.file.TBIO.cp0(TBIO.java:218) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:179) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169) at de.schlichtherle.truezip.file.TBIO.cp_r(TBIO.java:138) at de.schlichtherle.truezip.file.TFile.cp_rp(TFile.java:3188) at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:268) at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:172) at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:155) at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:837) ERROR: Service 'ndfund-acs' failed to build: The command '/bin/sh -c java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install $TOMCAT_DIR/amps $TOMCAT_DIR/webapps/alfresco -directory -nobackup -force' returned a non-zero code: 1
UPD: same message rises when I login to running ACS container :
docker exec -it 538006db08a9 /bin/bash bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
it seems like some important information about this issue is here https://itnext.io/linux-setlocale-lc-all-cannot-change-locale-en-us-utf8-and-cyrillic-symbols-2d846f... but I still can't handle it
04-25-2021 11:54 AM
I beleive that it is because of upgrade CentOS from version 7 to version 8 for ACS container, and I have fixed this issue by adding
RUN yum -y install glibc-locale-source glibc-langpack-en
to the <project>-platform-docker/src/main/docker/Dockerile
04-25-2021 11:54 AM
I beleive that it is because of upgrade CentOS from version 7 to version 8 for ACS container, and I have fixed this issue by adding
RUN yum -y install glibc-locale-source glibc-langpack-en
to the <project>-platform-docker/src/main/docker/Dockerile
04-26-2021 05:48 AM
Hi @iceja
Great that you figured it out & that you updated your thread - really helpful for other users.
Thanks,
Explore our Alfresco products with the links below. Use labels to filter content by product module.