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

proc-download is throwing an exception sometimes #295

Closed
datadavev opened this issue Jun 1, 2022 · 0 comments
Closed

proc-download is throwing an exception sometimes #295

datadavev opened this issue Jun 1, 2022 · 0 comments
Assignees
Labels
bug Something isn't working priority-normal Issue needs to be addressed in the normal work scheduling python 3
Milestone

Comments

@datadavev
Copy link
Contributor

Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: ERROR ezidapp.management.commands.proc-download 140233765611328: Exception
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Traceback (most recent call last):
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 159, in _createFile
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: f.write(b'<?xml version="1.0" encoding="utf-8"?>\n<records>')
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: TypeError: write() argument must be str, not bytes
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: ERROR ezidapp.management.commands.proc-download 140233765611328: Exception
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Traceback (most recent call last):
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 159, in _createFile
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: f.write(b'<?xml version="1.0" encoding="utf-8"?>\n<records>')
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: TypeError: write() argument must be str, not bytes
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: During handling of the above exception, another exception occurred:
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Traceback (most recent call last):
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 73, in run
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self._proc_stage(r)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 84, in _proc_stage
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self._createFile(r)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 166, in _createFile
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: raise self._wrapException("error creating file", e)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Exception: batch download error: error creating file: TypeError: write() argument must be str, not bytes
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: ERROR ezidapp.management.commands.proc-download 140233765611328: - ERROR download.run Exception: batch download error: error creating file: TypeError: write() argument must be str, not bytes
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Testing stdout
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Traceback (most recent call last):
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 159, in _createFile
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: f.write(b'<?xml version="1.0" encoding="utf-8"?>\n<records>')
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: TypeError: write() argument must be str, not bytes
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: During handling of the above exception, another exception occurred:
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Traceback (most recent call last):
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/ezid/manage.py", line 21, in <module>
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: main()
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/ezid/manage.py", line 17, in main
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: django.core.management.execute_from_command_line(sys.argv)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/.pyenv/versions/ezid-py3/lib/python3.8/site-packages/Django-3.2.7-py3.8.egg/django/core/management/__init__.py", line 419, in execute_from_command_line
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: utility.execute()
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/.pyenv/versions/ezid-py3/lib/python3.8/site-packages/Django-3.2.7-py3.8.egg/django/core/management/__init__.py", line 413, in execute
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self.fetch_command(subcommand).run_from_argv(self.argv)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/.pyenv/versions/ezid-py3/lib/python3.8/site-packages/Django-3.2.7-py3.8.egg/django/core/management/base.py", line 354, in run_from_argv
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self.execute(*args, **cmd_options)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/ezid/.pyenv/versions/ezid-py3/lib/python3.8/site-packages/Django-3.2.7-py3.8.egg/django/core/management/base.py", line 398, in execute
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: output = self.handle(*args, **options)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc_base.py", line 86, in handle
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self.run()
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 78, in run
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: impl.log.otherError("download.run", e)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/impl/log.py", line 325, in otherError
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: raise exception
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 73, in run
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self._proc_stage(r)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 84, in _proc_stage
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: self._createFile(r)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: File "/apps/ezid/ezid/ezidapp/management/commands/proc-download.py", line 166, in _createFile
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: raise self._wrapException("error creating file", e)
Jun  1 12:57:40 uc3-ezidui02x2-prd ezid-proc-errorlog: Exception: batch download error: error creating file: TypeError: write() argument must be str, not bytes
@datadavev datadavev self-assigned this Jun 1, 2022
@datadavev datadavev added bug Something isn't working python 3 priority-normal Issue needs to be addressed in the normal work scheduling labels Jun 1, 2022
@datadavev datadavev added this to the 3.0.3 milestone Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-normal Issue needs to be addressed in the normal work scheduling python 3
Projects
None yet
Development

No branches or pull requests

1 participant