Installation Error 1.6.x (ERROR 1045 (28000): Access denied for user 'archivematica'@'localhost')

301 views
Skip to first unread message

Rafael Herzog Ramos

unread,
Nov 28, 2017, 7:47:06 AM11/28/17
to archivematica
Hi,
I’m trying to install Archivematica on Ubuntu Server  14.04.5 LTS, but I'm getting the following error on "sudo apt-get install -y archivematica-dashboard":

Installing collected packages: mysqlclient
  Found existing installation: mysqlclient 1.3.12
    Uninstalling mysqlclient-1.3.12:
      Successfully uninstalled mysqlclient-1.3.12
Successfully installed mysqlclient-1.3.7
ERROR 1045 (28000): Access denied for user 'archivematica'@'localhost' (using password: YES)
Traceback (most recent call last):
  File "/usr/share/archivematica/dashboard/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 303, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/share/archivematica/dashboard/settings/common.py", line 42, in <module>
    'NAME': config.get('client', 'database'),     # Or path to database file if using sqlite3.
  File "/usr/lib/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'client'
id: archivematicadashboard: no such user
Adding system user `archivematicadashboard' (UID 334) ...
Adding new group `archivematicadashboard' (GID 334) ...
Adding new user `archivematicadashboard' (UID 334) with group `archivematicadashboard' ...
Creating home directory `/var/lib/archivematica-django/' ...


I've tried setting a password for the root mySql user and also leaving it blank. Same error on both.

Thank you.


Tatiana Canelhas

unread,
Nov 29, 2017, 12:41:22 PM11/29/17
to archivematica
I am having the same problems.

Any ideas?

jsimpson

unread,
Dec 4, 2017, 4:49:24 PM12/4/17
to archivematica
I have just tested the installation instructions for installing Archivematica 1.6.x on Ubuntu 14.04 using packages: https://www.archivematica.org/en/docs/archivematica-1.6/admin-manual/installation/installation/#install-pkg-ubuntu

I am not able to reproduce your error when I follow the installation instructions by copying and pasting the commands in the exact order they are displayed.

I can reproduce the problem by running "sudo apt-get install -y archivematica-dashboard" before "sudo apt-get install -y archivematica-mcp-server" is run.

Is it possible you tried to install archivematica-dashboard before installing archivematica-mcp-server?

The mcp-server pacakge creates the MCP database and creates a database user called 'archivematica'.  The dashboard package then populates the database with data.  You have to install mcp-server first, so the database and database user get created, before the dashboard can be installed.

The other possibility I can see is that the mcp-server package was installed first, but you said 'no' to the 'Configure database for archivematica-mcp-server with dbconfig-common?' question that is asked during the mcp-server installation.  That is not explicit in the installation instructions, if you say no to that question, the database and database user are not created, which will cause the error you saw during the dashboard installation.

Tatiana Canelhas

unread,
Feb 16, 2018, 10:33:07 AM2/16/18
to archivematica
Yeah, i tried again and it worked just fine.

Thanks!

Marcelo Moro Brondani

unread,
Apr 20, 2018, 4:24:19 PM4/20/18
to archivematica

Hello! Can you solve it? in what form?

Tatiana

unread,
Apr 20, 2018, 8:21:58 PM4/20/18
to archiv...@googlegroups.com
Oi Marcelo. Tá aparecendo esse problema pra Vc????

--
You received this message because you are subscribed to a topic in the Google Groups "archivematica" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/archivematica/96qcTQeCqGY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to archivematic...@googlegroups.com.
To post to this group, send email to archiv...@googlegroups.com.
Visit this group at https://groups.google.com/group/archivematica.
For more options, visit https://groups.google.com/d/optout.

Marcelo Moro Brondani

unread,
Apr 21, 2018, 11:17:47 AM4/21/18
to archivematica
Olá Tatiana, ainda persiste o erro, não sei como solucionar!!
Alguém pode dar uma mão??


Em terça-feira, 28 de novembro de 2017 10:47:06 UTC-2, Rafael Herzog Ramos escreveu:

Marcelo Moro Brondani

unread,
Apr 21, 2018, 11:21:16 AM4/21/18
to archivematica
Estou na versão 1.6.1 do Archivematica e constatei que no passo antes de instalação do dashboard que é o MPC-server ele não encontra/cria/instala o diretório do Django(framework python), logo isso implica na criação do banco e as devidas migrations que o sistema deve fazer.

COMO RESOLVER ISSO??

Em terça-feira, 28 de novembro de 2017 10:47:06 UTC-2, Rafael Herzog Ramos escreveu:
Reply all
Reply to author
Forward
0 new messages