CMDBuild Forum

DMS - alfresco issue

Dear Support Team,

We would like to use the following feature DMS.
After we deployed the 3.1.1 on our Linux machine the following path doesn’t exist:
${ALFRESCO_HOME}/tomcat/shared/classes/alfresco/extension
I have created this folder.

We set the default values as suggested in the manual page 20.:
https://www.cmdbuild.org/file/manuali/technical-manual-in-english

When we try to attache a picture we get the following error:
image

Could you please guide us how we can set the DMS in order to attach file as expected?

Let us know what you need for further troubleshooting.
Thank you for your support.
Regards,
Attila

Have you installed the Alfresco DMS in the correct version (see CMDBuild 3.1 Technical Manual paragraph 3.1)?

Hi,
How do you install DMS Alfresco? Installer GUI or manual?
Do you install in same tomcat along with CMDBuild? or do you install separate tomcat?

See which port do you assign for Alfresco, port number may be different.

Sorry, this is the “new” error which I get:
image

Hello All,
Sorry for late reply.
Yes, I have installed Alfresco DMS based on this docs:
https_://docs.alfresco.com/community/tasks/deploy-docker-compose.html
so installed from Docker image.

Regarding the question from yychai97
"Hi,
How do you install DMS Alfresco? Installer GUI or manual?
Do you install in same tomcat along with CMDBuild? or do you install separate tomcat?

See which port do you assign for Alfresco, port number may be different."

I installed from Docker. I have installed CMDBuild with tomcat, so there is no separate tomcat on the host.

I have changed the port mapping for alfresco and for postgres as well under the docker-compose.yml, as we have already use the 5432 for postgres which belongs to cmdbuild.

[ XY on YX :] docker-compose up -d
Removing dockercompose_share_1
Removing dockercompose_postgres_1
dockercompose_activemq_1 is up-to-date
dockercompose_solr6_1 is up-to-date
Recreating 59e93b6f1986_dockercompose_share_1 …
Recreating cf373c0a7730_dockercompose_postgres_1 …
Recreating cf373c0a7730_dockercompose_postgres_1 … done

Same error appears after the alfresco installed.

Please let me know if you need additional info in order to figure out why we get this error mentioned above.

Thank you.

Hi,

I haven’t try using docker to install but there is an alternative way.

Could you try to install Alfresco Community version 5.2 using GUI? In advanced options, untick java and allow other components (PostGre, Tomcat, etc.) to install.
This means you have second Tomcat and second PostGre.
But you need to change the port number to these, for Tomcat Start (8081), Tomcat Shutdown (8006), AJP (8010), Postgre (5433). admin password define it yourself.

Entering localhost:8081 in browser should work after installation.

Login to Alfresco Share, define User Homes, add folder, cmdbuild
and in Admin tools, category manager, add cmdbuild to category root.

In cmdbuild, change the link settings from localhost:1xxxx to localhost:8081, change username and password and set template. Should work right away.

Hope this helps.

Thanks

Hi,

I tried all your steps, as well as the technical manual steps, could you assist with this error:

{“success”:false,“messages”:[{“level”:“ERROR”,“show_user”:false,“message”:“org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type ‘P:cmdbuild:classifiable’ is unknown!”}]}

thanks and regards,

Hi,

ERROR : "org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Type ‘P:cmdbuild:classifiable’ is unknown!"

SOLVED: The above problem got solved when I changed version from 1.1 to 1.0 in the path of hSttp://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom shown in DMS configuration of cmdbuild

Try changing the CMIS version and see if it works or not.

2 Likes

Hi,
Can you share the config of DMS in CMDBuild administration module?

Thank you, that was driving me nuts and your solution fixed it for me!

1 Like

DMS configuration in CMDBuild administration module:

Category Lookup: AlfrescoCategory
Service: CMIS
Descritpion Mode: Visible Mandatory
Host: hattp://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom
Web servicepath: /User Homes/cmdbuild
Username: admin, Password: admin ( same as Alfresco Share login credentials )
Preset: Alfresco

Change the port number corresponding to Alfresco Installation.
It may come out port exists or in use if check logs.
Since CMDBuild uses 8080 together with Tomcat (or if you specified other port), I will use 8081 for DMS Alfresco, so:
Host: htt*p://localhost:8081/alfresco/api/-default-/public/cmis/versions/1.0/atom

You can try to check error logs which can be found in Tomcat folder.
For example,
/opt/tomcat/logs/cmdbuild.log OR catalina.log OR etc.

while Alfresco
/opt/alfresco-community/alfresco.log
/opt/alfresco-community/tomcat/logs/

Thank you very much, changing the version work immediately.
I also made sure that the ftp port in cmdbuild corresponds to alfresco by using the command in the technical manual ‘./cmdbuild.sh restws setconfig org.cmdbuild.dms.ftp 1121’.

Been able to upload 2 documents so far, just need to try an image and see if that works.

Hi,

I didn’t install a separate tomcat for running CMDBuild. Instead I copied the cmdbuild war file into alfresco tomcat webapps directory.So It was possible for me to use the same port 8080 for both alfresco and cmdbuild.

C:\alfresco-community\tomcat\webapps\alfresco => http:\localhost:8080\alfresco
C:\alfresco-community\tomcat\webapps\cmdbuild => http:\localhost:8080\cmdbuild

Then I changed only the version from 1.1 to 1.0 in the path of CMIS for DMS issue.

3 years later and i’ve had the same error. Thank god i’ve found your post or who knows how long it would have taken me to solve it.

Thanks a lot!