cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS problem - Access Denied

dmihelj
Champ in-the-making
Champ in-the-making
Hello!

I have a problem with users getting Access Denied error when trying to edit/save files on CIFS within their home folder (like /User Homes/someuser/).

This problem occurs in our Alfresco 3.3g Community edition and also in our freshly installed Alfresco 3.3 Enterprise Trial (runs on RedHat 5.1 64bit, Oracle 10g).

When I go and create a new user, I define everything there is to define - including quota, username, password, … and also the name of the user home space.
Then I login with the user, go to my home space and copy a file from hard disk to that space using CIFS. When I then double click that file (Word file for example) and try to edit and then save it inside Word app it stops responding for aprox. 2 min. Then it ends, like everything saved OK, but in fact, the file gets corrupted or not saved at all and in log file I get the error.

Do you have an idea how to resolve this issue?

Thank you.

Update: I forgot to mention that if I do the edit/save scenario with admin user everything works OK. The same happens if I add my created user to the admin group.

Log file:
15:43:42,828 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
15:43:42,830 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
15:43:42,831 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/alfresco3.3ent/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
15:43:42,831 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/alfresco3.3ent/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
15:43:42,831 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/alfresco3.3ent/tomcat/shared/classes/alfresco-global.properties]
15:43:42,921 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:04,609 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
15:44:04,611 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
15:44:14,545 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.alfresco.repo.domain.hibernate.dialect.AlfrescoOracle9Dialect.
15:44:14,561 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Bypassing schema update checks.
15:44:15,471 DEBUG [org.alfresco.repo.googledocs] preRegister called. Server=com.sun.jmx.mbeanserver.JmxMBeanServer@1b1aa65, name=log4j:logger=org.alfresco.repo.googledocs
15:44:15,512 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
15:44:15,606 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:15,615 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
15:44:17,697 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
15:44:17,728 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:17,957 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": java.io.IOException: error=2, No such file or directory
15:44:18,195 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 06130000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, /opt/alfresco3.3ent/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_27994.gif[0], /opt/alfresco3.3ent/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_27995.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": java.io.IOException: error=2, No such file or directory
15:44:18,205 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
15:44:18,205 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
15:44:18,223 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:20,259 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
15:44:20,267 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
15:44:20,267 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default]
15:44:20,281 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:20,357 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default] complete
15:44:22,578 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
15:44:22,578 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
15:44:22,643 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:44:23,292 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
15:44:23,356 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:44:23,370 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
15:44:23,400 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:23,708 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
15:44:23,732 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:23,847 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
15:44:28,859 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
15:44:28,859 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
15:44:28,900 ERROR [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Address already in use
15:44:28,910 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
15:44:28,926 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
15:44:28,931 ERROR [org.alfresco.fileserver] java.net.BindException: Address already in use
15:44:28,931 ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.socketBind(Native Method)
15:44:28,931 ERROR [org.alfresco.fileserver]    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
15:44:28,931 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.bind(ServerSocket.java:319)
15:44:28,931 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:185)
15:44:28,931 ERROR [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:141)
15:44:28,931 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:555)
15:44:28,932 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
15:44:29,180 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:29,292 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
15:44:29,292 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
15:44:29,304 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:29,513 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
15:44:29,513 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
15:44:29,643 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:29,719 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]
15:44:29,719 WARN  [org.springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
15:44:29,854 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
15:44:29,854 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
15:44:29,981 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:30,936 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
15:44:30,938 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
15:44:30,985 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
15:44:30,985 INFO  [org.alfresco.repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
15:44:30,986 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
15:44:30,995 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
15:44:31,285 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
15:44:31,380 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_10-b33; maximum heap size 998.438MB
15:44:31,467 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco license: Enterprise - v3.3 granted to Trial User limited to 30 days expiring Wed Aug 11 00:00:00 CEST 2010 (29 days remaining)
15:44:31,468 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise): Current version 3.3.1 (96) schema 4013 - Originally installed version 3.3.1 (96) schema 4013
15:44:52,610 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 350 Web Scripts (+0 failed), 586 URLs
15:44:52,610 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
15:44:52,610 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
15:44:52,612 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 14536.87ms)
15:44:52,612 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:44:52,614 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:45:01,541 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
15:45:01,684 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 228 Web Scripts (+0 failed), 236 URLs
15:45:01,685 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
15:45:01,685 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
15:45:01,854 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 2661.0469ms)
15:45:01,901 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:01,972 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:45:02,043 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:02,047 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:45:02,163 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
15:45:02,167 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
15:57:36,968 ERROR [org.alfresco.fileserver] org.alfresco.repo.security.permissions.AccessDeniedException: 06130002 Access Denied.  You do not have the appropriate permissions to perform this operation.
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:47)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:135)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
15:57:36,968 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
15:57:36,969 ERROR [org.alfresco.fileserver]    at $Proxy46.getRawReader(Unknown Source)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.repo.ContentNetworkFile.closeFile(ContentNetworkFile.java:436)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.repo.ContentDiskDriver$4.call(ContentDiskDriver.java:2472)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.repo.ContentDiskDriver$4.call(ContentDiskDriver.java:2417)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.alfresco.AlfrescoDiskDriver$1.execute(AlfrescoDiskDriver.java:188)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:232)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.alfresco.AlfrescoDiskDriver.doInWriteTransaction(AlfrescoDiskDriver.java:181)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.filesys.repo.ContentDiskDriver.closeFile(ContentDiskDriver.java:2416)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.procCloseFile(NTProtocolHandler.java:1399)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:257)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1366)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.SMBSrvSession.processPacket(SMBSrvSession.java:1458)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.smb.server.nio.NIOCIFSThreadRequest.runRequest(NIOCIFSThreadRequest.java:105)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.jlan.server.thread.ThreadRequestPool$ThreadWorker.run(ThreadRequestPool.java:153)
15:57:36,969 ERROR [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)
15:57:36,969 ERROR [org.alfresco.fileserver] Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
15:57:36,969 ERROR [org.alfresco.fileserver]    at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
15:57:36,969 ERROR [org.alfresco.fileserver]    at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
15:57:36,969 ERROR [org.alfresco.fileserver]    at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
15:57:36,969 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:125)
15:57:36,970 ERROR [org.alfresco.fileserver]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
15:57:36,970 ERROR [org.alfresco.fileserver]    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:43)
15:57:36,970 ERROR [org.alfresco.fileserver]    … 22 more
7 REPLIES 7

dward
Champ on-the-rise
Champ on-the-rise
You are seeing http://issues.alfresco.com/jira/browse/ALF-3188 . This is fixed on the latest code on HEAD.

dmihelj
Champ in-the-making
Champ in-the-making
Thank you for your quick answer. Why can't I see this issue even though I'm registered in ALF-JIRA? Is this only for Enterprise users?

dward
Champ on-the-rise
Champ on-the-rise
That particular bug was marked as internal. I have cloned you a new copy for the community version. It's fixed in HEAD.

http://issues.alfresco.com/jira/browse/ALF-3866

jonlord
Champ in-the-making
Champ in-the-making
Hello, I have this problem too.
Is there a workaorund that we can implement while the new release is being prepared?

machtech
Champ in-the-making
Champ in-the-making
Where is the SVN revision that fixes this issue? I'm searching through the commit logs to find a patch to apply but not coming up with anything on the JIRA issue numbers.

loftux
Star Contributor
Star Contributor
I used revision 20631 for a fixed 3.3g, it was fixed in 3.4.a (r22662), but is back in 3.4.b (r23338) http://issues.alfresco.com/jira/browse/ALF-5760 (I've reported this issue, not confirmed yet, and may not be caused by the same thing as 3188).
If you like to follow commits and view changes, see http://fisheye.alfresco.com/

machtech
Champ in-the-making
Champ in-the-making
Can anyone confirm that this is fixed in the soon-to-be-released 3.4.c? I have confirmed the issue is solved in 3.4.a but was regressed in 3.4.b.