desihub / desitest

Testing coordination for DESI code
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Error on creating production database in minitest #32

Open HiramHerrera opened 4 years ago

HiramHerrera commented 4 years ago

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