Error copying /var/archivematica/SharedDirectory/tmp/someDir/test

242 views
Skip to first unread message

Art

unread,
Sep 16, 2015, 1:11:48 AM9/16/15
to archivematica
Hi,

I have installed Archivematica 1.4.1. I am able to access the dashboard using the IP address of the machine and the Storage Service using IP:8000. Now I am trying to test the system.

In the storage service > spaces I created a location:
Purpose: Transfer Source
Pipeline: Archivematica on archivematica
Relative Path: home/user1/Documents

When I try to transfer from Archivematica dashboard I get an error: copying /var/archivematica/SharedDirectory/tmp/someDir/test

I thought it was something with permissions and changed the permissions on /var/archivematica to ugo+rw (recursive). It did not solve the issue. Then I found this article https://projects.artefactual.com/issues/8540 about bug N8540, checked the space.py file at line 449. The file contains the required  chmod.

I have found the following message in storage_service_debug.log:


ERROR     2015-09-15 22:20:30  django.request.tastypie:resources:_handle_500:295:  Internal Server Error: /api/v2/location/ac9552e7-2357-44bc-95c6-209b35c5a1c1/
Traceback (most recent call last):
  File "/usr/share/python/archivematica-storage-service/local/lib/python2.7/site-packages/tastypie/resources.py", line 217, in wrapper
    response = callback(request, *args, **kwargs)
  File "/usr/share/python/archivematica-storage-service/local/lib/python2.7/site-packages/tastypie/resources.py", line 468, in dispatch_detail
    return self.dispatch('detail', request, **kwargs)
  File "/usr/share/python/archivematica-storage-service/local/lib/python2.7/site-packages/tastypie/resources.py", line 491, in dispatch
    response = method(request, **kwargs)
  File "./locations/api/resources.py", line 366, in post_detail
    destination_space=destination_space,
  File "./locations/models/space.py", line 237, in move_to_storage_service
    source_path, destination_path, destination_space, *args, **kwargs)
  File "./locations/models/local_filesystem.py", line 38, in move_to_storage_service
    return self.space._move_rsync(src_path, dest_path)
  File "./locations/models/space.py", line 390, in _move_rsync
    raise StorageException(s)
StorageException: Rsync failed with status 23: sending incremental file list
rsync: opendir "/home/user1/Documents/files_bag/data" failed: Permission denied (13)
delta-transmission disabled for local transfer or --whole-file
bag-info.txt
bagit.txt
manifest-md5.txt
tagmanifest-md5.txt
data/
total: matches=0  hash_hits=0  false_alarms=0 data=793
sent 1,142 bytes  received 170 bytes  2,624.00 bytes/sec
total size is 793  speedup is 0.60
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]

I think it is a permission thing. And also I am getting the following output

drwxrwx--- 2    archivematicadashboard     archivematica 4096 Sep 16 14:27 tmpBnJsjC

when I run ls -l in /var/archivematica/sharedDirectory/tmp. As you can see the owner of the newly created and not accessible folder tmpBnJsjC is archivematicadashboard despite the parent folder is set to user1.
What could be wrong? Please, help to solve the issue. Thanks in advance

Justin Simpson

unread,
Sep 16, 2015, 1:56:16 AM9/16/15
to archiv...@googlegroups.com

Hi Art,

What are the permissions on the /home/user1/Documents folder?

The error looks like it is happening because that folder is not readable by the archivematicadashboard user.  The tmp directory you saw was created by rsync, the tool being used to copy files from the transfer source location to the processing location. 

--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematic...@googlegroups.com.
To post to this group, send email to archiv...@googlegroups.com.
Visit this group at http://groups.google.com/group/archivematica.
For more options, visit https://groups.google.com/d/optout.

Art

unread,
Sep 16, 2015, 2:48:58 AM9/16/15
to archivematica
Hi Justin,

Thanks for your reply
The permissions are

drwxr-xr-x 4 user1 user1 4096 Sep 15 10:37 Documents

or

Justin Simpson

unread,
Sep 16, 2015, 3:12:04 AM9/16/15
to archiv...@googlegroups.com

What about the permissions on /home/user1/Documents/files_bag/data , that is the path that rsync says it got a permission denied error.

--

Art

unread,
Sep 16, 2015, 9:57:24 PM9/16/15
to archivematica
Hi Justin,

Thanks again for your replies.

As I mentioned previously I suspect that the issue is with permissions. I have played a lot with permissions and now I have another issue. Here is all that I have done.

I created a new folder in /home/user1 and called it Source, added it to Locations so I can see it from dashboard's Browse (for Transfer).
I have changed the owner of the Source to archivematica (group), added the users user1 and archivematicadashboard to the group, changed the permissions on  Source folder to ugo+rw (recursively). Current permissions for Source are
drwxrwxrwx 3 archivematica user1 4096 Sep 17 10:54 Source


Now when I try to transfer I am not getting any errors, the spinning time/progress animation appears on the right side for a second or two, then it disappears and nothing happens. The textboxes, drop down menus return to their initial state. Please, see the screenshot below:



Any ideas? Thanks in advance
Reply all
Reply to author
Forward
0 new messages