Whoops appearing on adminstrative page of storage server

209 views
Skip to first unread message

gcahar...@gmail.com

unread,
May 6, 2014, 4:32:51 PM5/6/14
to archiv...@googlegroups.com
Everything seemed to install nicely for A 1.1 on a fresh Ubuntu 12.04.4 LTS  When I went to storage service (localhost:8000/) I could log on and view all of the tabs except for administration.  When I click on it I get a page which says "WHoops!"  and nothing else.

How do I find the logs for archivematica so I can see what went wrong?  Any ideas what happened?  I could log onto the dashboard without any problem and the page waiting for me to begin an ingest appears. 

That's all I've tried so far.  Any suggestions appreciated.

Dale Patterson

Justin Simpson

unread,
May 6, 2014, 8:38:18 PM5/6/14
to archiv...@googlegroups.com
From looking into this a bit today, I can think of two possible reasons you are having this error.

Can you verify the version of the storage service that you have installed?  From the command line, you can type:

aptitude show archivematica-storage-service

and it should show you information like:

Package: archivematica-storage-service
State: installed
Automatically installed: no
Version: 0.3.0.release

If you see a different version in there, you may have installed the storage service from the daily PPA, not the release PPA?  That is one possibility.  The daily PPA has test builds in it, there could be (and in fact definitely are) bugs in those builds.

Another possibility is that you have used an email address as a username for one of your storage service users. 
We discovered a bug today, that appears to be happening in the Django web framework used by the Storage Service, where usernames with a dot or an @ symbol in them can be created, but they cause an internal server error when displaying the list of users.  We have a fix for this that will be in the next storage service release (0.4.0). 

In the meantime, if you have a username with a dot or an @ symbol, you will have to fix it from the command line.
You may need to do this as root, check the permissions on the /var/archivematica/storage-service/storage.db file and make sure you do these steps with a user that has permission to write to that file.

cd /var/archivematica/storage-service
sqlite3 storage.db
select id, username from auth_user;

You should see all the storage service users.  If any of the usernames have dots or @'s, change them with a statement like:

update auth_user set username = 'newusername' where id = 1;

Change the id in that statement to match the offending user.

As for logs, you can look at

/tmp/storage-service.log
which should have a stack trace from the server error page.

The uwsgi log should show at least the access, it probably shows that the administration page returned a 500.
/var/log/uwsgi/app/storage.log .

You could try putting the storage service into debug mode, and then visit the page that is showing Whoops.  You should see a django debug page with lots of details about the error.

edit /usr/lib/archivematica/storage-service/storage_service/settings/base.py

Find the line that says DEBUG = False and change it to DEBUG = True

Then restart uwsgi:

sudo /etc/init.d/uwsgi restart

now look at the Administration tab again.



Justin Simpson
Director of Archivematica Technical Services
www.artefactual.com
604-527-2056


--
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.

gcahar...@gmail.com

unread,
May 6, 2014, 9:11:30 PM5/6/14
to archiv...@googlegroups.com
Thanks Justin - 
I appreciate it.   I suspect that it is the wrong version and will check on that .  The installation instructions have the following line in them 

sudo add-apt-repository ppa:archivematica/daily

So I assume I need to remove this from the repository and use the release version?  I used version 1.1 since it is supposed to work with 12.04.4.  Can I get the storage service from the 'release' and keep the rest, or do I need to do a complete re-install?

Thanks.   I appreciate the help. 

Dale

Christine Di Bella

unread,
May 7, 2014, 8:42:27 AM5/7/14
to archiv...@googlegroups.com
By the way, I installed 1.1 in a BitCurator environment (Ubuntu 12.04) yesterday and am having this same problem. This is what I get when I verify my version of the storage service as Justin suggested:

bcadmin@ubuntu:~$ aptitude show archivematica-storage-service

Package: archivematica-storage-service
State: installed
Automatically installed: no
Version: 0.4.0.alpha.2-dip-storage
Priority: extra
Section: utils
Maintainer: Artefactual Systems Inc. <o...@artefactual.com>
Architecture: amd64
Uncompressed Size: 57.1 M
Depends: python-lxml, nginx, unar, uwsgi, uwsgi-plugin-python
Conflicts: archivematica-storage-service
Description: Django webapp for managing storage in an Archivematica
 installation.

I installed using the instructions on the Archivematica wiki verbatim since my knowledge of Ubuntu is pretty limited.

Thanks!
Christine

Christine Di Bella
Archivist
Shelby White and Leon Levy Archives Center
Institute for Advanced Study
Einstein Drive
Princeton, NJ 08540
USA

phone: 609-734-8368
email: cdib...@ias.edu
web: http://library.ias.edu/archives



--
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.



--
Christine Di Bella
cdib...@gmail.com

gcahar...@gmail.com

unread,
May 7, 2014, 10:16:38 AM5/7/14
to archiv...@googlegroups.com
Here is the output when I do aptitude show archivematica-storage-service

Package: archivematica-storage-service
State: installed
Automatically installed: no
Version: 0.4.0.alpha.2-dip-storage
Priority: extra
Section: utils
Maintainer: Artefactual Systems Inc. <o...@artefactual.com>
Architecture: i386
Uncompressed Size: 56.7 M

Depends: python-lxml, nginx, unar, uwsgi, uwsgi-plugin-python
Description: Django webapp for managing storage in an Archivematica
 installation.

So, should I uninstall this, change the repositories to those for 1.0 and then reinstall?  Or do I need to remove the whole thing and try again? 

Thanks for any suggestions.

Dale Patterson
Archivist
United Methodist Church Archives
Madison, NJ

Justin Simpson

unread,
May 7, 2014, 10:57:16 AM5/7/14
to archiv...@googlegroups.com
Hi Dale, Christine,

My apologies, this is my fault. The installation instructions on the wiki were not updated last Friday when the 1.1.0 packages were released, I was supposed to do that.  I have updated the wiki, so for anyone installing Archivematica from today on, you should not have an issue. 

For anyone that has installed Archivematica in the last couple days, here are some instructions for correcting this:

Option one:
Start from scratch with a fresh vm and follow the (now correct) installation instructions.  If this is going to be used as a production system, I recommend this approach, it is the safest choice, but takes a bit longer.

Option two:
sudo add-apt-repository --remove ppa://archivematica/daily
sudo add-apt-repository --remove ppa://archivematica/externals-dev
sudo add-apt-repository ppa://archivematica/release
sudo add-apt-repository ppa://archivematica/externals
sudo apt-get update
sudo apt-get remove archivematia-storage-service
sudo apt-get install archivematica-storage-service

Those steps should result in the storage service 0.3.0 being installed.  Try

aptitude show archivematica-storage-service

to confirm.

You will need to re-register your Archivematica pipeline with the storage service:

Go to the dashboard, and look at the administration tab.  Click on 'general' and find the dashboard uuid. Copy this.
Go to the storage service and click on pipelines. Click 'create new pipeline'.  Paste the dashboard uuid into the uuid field, enter a description of your pipeline (optional) and make sure both check boxes are checked (the default).
Click 'create pipeline'.

Your system should be okay now.

Option 3
Do nothing.
The differences between the packages in the release ppa and the daily ppa are very minor at the moment, only the storage service has new code.  If this is a test system, you may be fine with leaving it as is, other than the administration tab of the storage service.  I don't recommend this option, but it is certainly the easiest choice to implement.



Justin Simpson
Director of Archivematica Technical Services
www.artefactual.com
604-527-2056


Christine Di Bella

unread,
May 7, 2014, 1:04:45 PM5/7/14
to archiv...@googlegroups.com
Thanks, Justin! I reinstalled using option one and seem to be back in business.

Christine

gcahar...@gmail.com

unread,
May 7, 2014, 4:02:55 PM5/7/14
to archiv...@googlegroups.com
Thanks Justin -
Since I have a dedicate server for this project I did a fresh install and with the updated instructions it all went smoothly.  Thanks!!!

Dale
Reply all
Reply to author
Forward
0 new messages