Hi All,


We have our Galaxy instance installed on local HPC with MySQL database. A user reported a issue with the tool "Merge BAM Files". The tool generated two files: .bam and .bai. The bam file can be downloaded with no problem. But when she was trying to download the index file (.bai) that should be associated with the generated .bam file, she got the following error:


URL: https://hcc-galaxy.unl.edu/dataset/get_metadata_file?hda_id=284e19efbd6b170d&metadata_name=bam_index
File '/lustre/work/galaxy/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/error.py', line 149 in __call__
  app_iter = self.application(environ, sr_checker)
File '/usr/lib/python2.6/site-packages/paste/recursive.py', line 80 in __call__
  return self.application(environ, start_response)
File '/lustre/work/galaxy/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/remoteuser.py', line 91 in __call__
  return self.app( environ, start_response )
File '/usr/lib/python2.6/site-packages/paste/httpexceptions.py', line 633 in __call__
  return self.application(environ, start_response)
File '/lustre/work/galaxy/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line 132 in __call__
  return self.handle_request( environ, start_response )
File '/lustre/work/galaxy/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line 190 in handle_request
  body = method( trans, **kwargs )
File '/lustre/work/galaxy/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/controllers/dataset.py', line 276 in get_metadata_file
  return open(data.metadata.get(metadata_name).file_name)
AttributeError: 'NoneType' object has no attribute 'file_name'

I wonder if it's the file not being generated correctly or somehow MySQL lost track of it. 


Any help is appreciated.


Regards,

Jingchao