Import Error- EPA Query Permissions

Issue #25 resolved
Paul Stasiuk repo owner created an issue

Major bug found during the import process:

Filename: Organic Data.xml
Unit failures: 641
Site failures: 43
Parameter failures: 641
Total failures: 644
Total successes: 280
Querying for DDT,
Listening for imports..
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "threaded_import.py", line 31, in run
    check_import(self.importid)
  File "/Users/pstasiuk/git/cacw_deploy/import_heart/xml_parsing_backed.py", line 338, in check_import
    write_status_file(importid)
  File "/Users/pstasiuk/git/cacw_deploy/import_heart/xml_parsing_backed.py", line 373, in write_status_file
    query_results = query(parameter_to_query)
  File "/Users/pstasiuk/git/cacw_deploy/import_heart/epa_query.py", line 277, in query
    authToken = make_query(0,' ',authToken_filter,logfile)
  File "/Users/pstasiuk/git/cacw_deploy/import_heart/epa_query.py", line 42, in make_query
    write_to_log(response.read(),logfile)
  File "/Users/pstasiuk/git/cacw_deploy/import_heart/epa_query.py", line 75, in write_to_log
    f = open(logfile,'w+')
IOError: [Errno 13] Permission denied: 'logs/822.log'

Comments (4)

  1. Paul Stasiuk reporter

    This looks like its a permission error for that specific directory. We should also update this on the deployment documentation.

  2. Paul Stasiuk reporter

    Investigating this. Most likely going to be making some serious changes to the logging process for the EPA query.

  3. Log in to comment