Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on creating production database in minitest #32

Open
HiramHerrera opened this issue Jan 10, 2020 · 0 comments
Open

Error on creating production database in minitest #32

HiramHerrera opened this issue Jan 10, 2020 · 0 comments

Comments

@HiramHerrera
Copy link

Hi,

@alxogm and I are trying to run the minitest notebook and it goes well up cell 42 of https://github.com/desihub/desitest/blob/master/mini/minitest.ipynb

where it gets an Assertion Error:

creating production database and setup script
desi_pipe create --db-postgres --force --data /global/cscratch1/sd/hiramk/minitest-19.12/spectro/sim/mini --redux /global/cscratch1/sd/hiramk/minitest-19.12/spectro/redux --prod mini
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-43-adb8ffa41892> in <module>
      9     print(cmd)
     10     err = subprocess.call(cmd.split())
---> 11     assert err == 0
     12     # assert os.path.exists(desispec.io.get_pipe_database())
     13     print('SUCCESS')

AssertionError: 

I tried to get a bit more information of the cause of this error by creating a log file and this is the output

ERROR:db.py:1150:_open: fe_sendauth: no password supplied

Traceback (most recent call last):
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/bin/desi_pipe", line 14, in <module>
    p = PipeUI()
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/scripts/pipe.py", line 73, in __init__
    getattr(self, args.command)()
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/scripts/pipe.py", line 186, in create
    nside=args.nside)
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/pipeline/control.py", line 179, in create
    authorize=db_postgres_authorized)
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/pipeline/db.py", line 1122, in __init__
    self.initdb()
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/pipeline/db.py", line 1215, in initdb
    with self.cursor(skipcheck=True) as cur:
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/conda/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/global/common/software/desi/cori/desiconda/20190804-1.3.0-spec/code/desispec/master/py/desispec/pipeline/db.py", line 1183, in cursor
    cur = self._conn.cursor()
AttributeError: 'NoneType' object has no attribute 'cursor'

Any help is appreciated

@HiramHerrera HiramHerrera changed the title Error on creating production database in mintiest Error on creating production database in minitest Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant