Hello,
I'm experiencing problems uploading DIPs to AtoM on my Archivematica 1.4 install. The AtoM version is 2.2.1. Once I create the DIP and choose to upload to AtoM, the job fails with the following error:
ERROR archivematica.upload.qubit.log: [uploadDIP] Target: test-archive-1
ERROR archivematica.upload.qubit.log: [uploadDIP] rsync --protect-args -rltz -P --chmod=ugo=rwX /var/archivematica/sharedDirectory/watchedDirectories/uploadDIP/testbag1-4713d2f1-f423-4908-9d2a-2207eb1df696 ubuntu-atom:/tmp
ERROR archivematica.upload.qubit.log: [uploadDIP] Rsync output is being saved in /tmp/tmpiOPzGO
ERROR archivematica.upload.qubit.log: [uploadDIP] Sending... 100 (ETA: 0:00:00)
ERROR archivematica.upload.qubit.log: [uploadDIP] About to deposit to: http://ubuntu-atom/index.php/sword/deposit/test-archive-1
ERROR archivematica.upload.qubit.log: [uploadDIP] > Response code: 500
ERROR archivematica.upload.qubit.log: [uploadDIP] > Location: None
[uploadDIP] Response code not expected
The issue seems similar to the one documented in this post
here. Unfortunately my upload directory is already in place and has the correct permissions so the solution presented here is not available to me.
astoradmin@ubuntu-atom:/var/log$ ls -la /usr/share/nginx/atom/
total 308
drwxr-xr-x 14 www-data www-data 4096 May 9 14:25 .
drwxr-xr-x 4 root root 4096 May 6 09:04 ..
drwxr-xr-x 3 www-data www-data 4096 May 6 09:04 apps
drwxrwxrwx 3 www-data www-data 4096 May 6 10:39 cache
drwxr-xr-x 3 www-data www-data 4096 May 6 09:13 config
-rw-rw-r-- 1 www-data www-data 490 Feb 4 00:21 CONTRIBUTING
-rw-rw-r-- 1 www-data www-data 5199 Feb 4 00:21 COPYRIGHT
drwxr-xr-x 2 www-data www-data 4096 May 6 09:04 css
drwxr-xr-x 9 www-data www-data 4096 May 6 10:39 data
-rw-rw-r-- 1 www-data www-data 182068 Feb 4 00:21 ead.dtd
-rw-rw-r-- 1 www-data www-data 1150 Feb 4 00:21 favicon.ico
drwxr-xr-x 5 www-data www-data 4096 May 6 09:04 images
-rw-rw-r-- 1 www-data www-data 229 Feb 4 00:21 index.php
drwxr-xr-x 2 www-data www-data 4096 May 6 09:04 js
drwxr-xr-x 16 www-data www-data 4096 May 6 09:04 lib
-rw-rw-r-- 1 www-data www-data 34519 Feb 4 00:21 LICENSE
drwxr-xr-x 2 www-data www-data 4096 May 6 17:20 log
drwxr-xr-x 30 www-data www-data 4096 May 6 09:04 plugins
-rw-rw-r-- 1 www-data www-data 751 Feb 4 00:21 qubit_dev.php
-rw-rw-r-- 1 www-data www-data 339 Feb 4 00:21 README
-rw-rw-r-- 1 www-data www-data 26 Feb 4 00:21 robots.txt
lrwxrwxrwx 1 www-data www-data 48 May 6 09:12 sf -> /usr/share/nginx/atom/vendor/symfony/data/web/sf
-rwxrwxr-x 1 www-data www-data 445 Feb 4 00:21 symfony
drwxr-xr-x 3 www-data www-data 4096 May 6 17:30 uploads
drwxr-xr-x 14 www-data www-data 4096 May 6 09:04 vendor
I have performed the following checks to see if I can fix it and none of them have resolved the issue:
- Ensure all services are running on the AtoM server as expected (mysql, nginx, elasticsearch, gearman)
- check passwordless SSH is working from the archivematica server to the atom server
- manually execute the rsync (works without issue)
- ensure sword is enabled
- ensure atom-worker.conf contains the correct info as described
here
astoradmin@ubuntu-atom:/var/log$ cat /etc/init/atom-worker.conf
description "AtoM worker (gearmand) upstart service"
start on (started mysql)
stop on runlevel [016]
respawn
respawn limit 5 10
env LOCATION=/usr/share/nginx/atom
env LOGFILE=/usr/share/nginx/atom/log/atom-worker.log
setuid www-data
setgid www-data
script
php \
-d memory_limit=-1 \
-d error_reporting="E_ALL" \
${LOCATION}/symfony jobs:worker >> ${LOGFILE} 2>&1
end script
Manually navigating to the URL in the error messages presents the following XML:
<summary type="text">Bad request</summary>
<title type="text">ERROR</title>
<updated>2016-06-13T03:37:40-07:00</updated>
<sword:userAgent>
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36
</sword:userAgent>
</sword:error>
Thank you for your assistance.
Regards,
Craig