neo4j-contrib / django-neomodel

Neomodel plugin for Django
MIT License
290 stars 55 forks source link

Error: neo4j.exceptions.AuthError: {code: None} {message: None} #67

Closed MrAsimZahid closed 3 years ago

MrAsimZahid commented 3 years ago
Setting up indexes and constraints...

Found django_neomodel.DjangoNode
 ! Skipping class django_neomodel.DjangoNode is abstract
Found cdr.models.campaign.Campaign
 + Creating unique constraint for name on label Campaign for class cdr.models.campaign.Campaign
Traceback (most recent call last):
  File "/home/yasir/Documents/Projects/contentdigestreport/manage.py", line 22, in <module>
    main()
  File "/home/yasir/Documents/Projects/contentdigestreport/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/django_neomodel/management/commands/install_labels.py", line 12, in handle
    install_all_labels(stdout=self.stdout)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neomodel/core.py", line 153, in install_all_labels
    install_labels(cls, quiet=False, stdout=stdout)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neomodel/core.py", line 123, in install_labels
    db.cypher_query("CREATE CONSTRAINT "
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neomodel/util.py", line 35, in wrapper
    return func(self, *args, **kwargs)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neomodel/util.py", line 252, in cypher_query
    raise exc_info[1].with_traceback(exc_info[2])
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neomodel/util.py", line 235, in cypher_query
    response = session.run(query, params)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/work/simple.py", line 221, in run
    self._connect(self._config.default_access_mode, database=self._config.database)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/work/simple.py", line 118, in _connect
    self._connection = self._pool.acquire(
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/__init__.py", line 805, in acquire
    return self._acquire(self.address, timeout)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/__init__.py", line 660, in _acquire
    connection = self.opener(address, timeout)
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/__init__.py", line 787, in opener
    return Bolt.open(
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/__init__.py", line 340, in open
    connection.hello()
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/_bolt4.py", line 98, in hello
    self.fetch_all()
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/__init__.py", line 517, in fetch_all
    detail_delta, summary_delta = self.fetch_message()
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/_bolt4.py", line 271, in fetch_message
    response.on_failure(summary_metadata or {})
  File "/home/yasir/anaconda3/envs/cdr/lib/python3.9/site-packages/neo4j/io/_common.py", line 202, in on_failure
    raise AuthError(message)
neo4j.exceptions.AuthError: {code: None} {message: None}

I have followed the exact instructions in the documentation and double-checked them too but getting this error.

I am using ubuntu and neo4j desktop.

I have already build another app, that's working perfectly fine. This one is having problems.