cancel
Showing results for 
Search instead for 
Did you mean: 

What is the correct syntax for dir.root on windows to point to a network smb share?

rlesnikov
Champ on-the-rise
Champ on-the-rise

Hi guys,

Please help.

Default is:

#dir.root=C:/ALFRES~1/alf_data

- works fine.

Changing to:
#dir.root=C:/IT

- works fine.

Changing to (network drive):
#dir.root=O:/IT

or
#dir.root=smb://server.domain.local/SHARE/IT

- none works (of course without "#").

This is a mapped drive SMB share on what I would like to place entire repository, probably some other actions from file share server side (fbsd-based) are required.

I'm getting this errors on the top of the page:

An error has occured in the Share component: /share/service/components/dashlets/my-sites.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 08210001 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 08210000 08210001 Failed during processing of IMAP server status configuration from Alfresco: 08210000 Unable to retrieve IMAP server status from Alfresco: 404
Server: Alfresco Spring WebScripts - v6.5.0 schema 1,000
Time: Sep 21, 2016 11:22:10 AM
Your request could not be processed at this time. Please contact your system administrator for further information.
Any ideas?
Thanks in advance.
1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

If you look in the alfresco.log you should see this error:

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08210000 Failed to create store root: O:\Users\RLesnikov\contentstore.deleted

In alfresco.optimus.log

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08210000 Failed to create store root: \\optimus.viscira.local\OPTIMUS\Users\RLesnikov\contentstore.deleted

Have you made sure that all the permissions are set correctly?

View answer in original post

10 REPLIES 10

afaust
Legendary Innovator
Legendary Innovator

In Windows (other than in Linux) you do not need to prepend smb:// for network file shares. //server.domain.local/SHARE/IT should be all you need. If you check in Windows file explorer, \\server.domain.local\SHARE\IT should be all you need to open the drive in the explorer, and since Java does not care about / vs \ in paths, and / are more convenient in *.properties files the format above is sufficient.

rlesnikov
Champ on-the-rise
Champ on-the-rise

This caused error at login as if Alfresco failed to start.

Your authentication details have not been recognized or Alfresco may not be available at this time.

What should I check to fix this?

Thank you.

afaust
Legendary Innovator
Legendary Innovator

The log files to start, especially alfresco.log

rlesnikov
Champ on-the-rise
Champ on-the-rise

It shows a lot of warnings and errors. I’ve attached the log, could someone help?

Thank you.

afaust
Legendary Innovator
Legendary Innovator

If you look in the alfresco.log you should see this error:

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08210000 Failed to create store root: O:\Users\RLesnikov\contentstore.deleted

In alfresco.optimus.log

Caused by: org.alfresco.service.cmr.repository.ContentIOException: 08210000 Failed to create store root: \\optimus.viscira.local\OPTIMUS\Users\RLesnikov\contentstore.deleted

Have you made sure that all the permissions are set correctly?

rlesnikov
Champ on-the-rise
Champ on-the-rise

Hi Axel,

Finally I got Alfresco working on a network share but assigning permissions is still a challenge for me. We have LDAP (AD) configured on a nix share where I placed the repository (except keystore and database). This only works when I give full access to everyone. No one other combination (domain admin, local admins) works for me. I tried start service under domain admin, gave full control permissions, startup log looks OK, but when I try to access share - I begin getting a lot of errors and share is not accessible.

Error like this:

ERROR [freemarker.runtime] [FeedNotifier1] Error executing FreeMarker template

FreeMarker template error:

Any ideas? May be I should try to run service under local admin account and try full access to this account or may be you have documentation which describes exact access rights needed to run Alfresco on a Windows server with repository placed on a network share?

Thanks in advance,

Roman.

afaust
Legendary Innovator
Legendary Innovator

Unfortunately you have not included the full error details of the FreeMarker error so I don't know what really went wrong there.

Generally, the account that is running the Alfresco services needs to have full read/write access to all the files and directories Alfresco is touching. This primarily means the Tomcat instance directory/directories, alf_data (incl. externalized content stores), keystore and any SOLR data directories. In a default Alfresco setup using the installer this would basically be the entire installation directory.

The question remains if you really have access errors since no details for the errors have been provided...

rlesnikov
Champ on-the-rise
Champ on-the-rise

Hi Axel,

I’ve attached the log file. I’ve temporary fixed this by adding chmod 777 //…../* on nix side to a repository content and started both services under domain admin account. From a nix-box (LDAP AD is assigned) I allowed domain admins full access. Now regular user cannot access the repository but looks like alfresco starts and works fine. My concern is only what happens with rights on my nix (freebsd-based) –box when new files/folders will be created (if 777 would be applied or not, if not – it will cause problems again). Looks like this is not alfresco stuff already, but however look through the logs I provided, probably you’ll have better idea how to fix this.

Thank you,

Roman

afaust
Legendary Innovator
Legendary Innovator

Ok - the immediate issue is indeed an access denied issue:

Caused by: java.io.FileNotFoundException: \\optimus.company.local\Alfresco\contentstore\2016\10\5\12\39\3f57136d-4be1-46bf-9bd7-54e50ff2ac84.bin (Access is denied)

The system needs full read/write access on the \\optimus.company.local\Alfresco path and any children.