Python Forum
Error Type: <class 'OSError'> And Error Type: <class 'ValueError'>
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Type: <class 'OSError'> And Error Type: <class 'ValueError'>
#1
Hi,

I've a python application which unzips .gz files and does various bits of processing on the contents.

Last night when it ran it produced the following error in the logs:

Quote:18-Jul-2017 02:35:31 | Processing Acccess Log
18-Jul-2017 02:35:31 | Compressed file
18-Jul-2017 02:35:31 | |- Name: /opt/billing/bin/get_access_logs/input/storagepool1-cf4225eb-a1f8-4caf-a57b-cdd2fad5b378-access.log-2017-06-21T150620535.gz
18-Jul-2017 02:35:31 | |- File size: 51,395,979 bytes
18-Jul-2017 02:35:36 | Uncompressed file
18-Jul-2017 02:35:36 | |- Name: /opt/billing/bin/get_access_logs/input/storagepool1-cf4225eb-a1f8-4caf-a57b-cdd2fad5b378-access.log-2017-06-21T150620535
18-Jul-2017 02:35:36 | Error Type: <class 'OSError'>
18-Jul-2017 02:35:36 | Error Args: (28, 'No space left on device')
18-Jul-2017 02:35:37 | Parsing: /opt/billing/bin/get_access_logs/input/storagepool1-cf4225eb-a1f8-4caf-a57b-cdd2fad5b378-access.log-2017-06-21T150620535
18-Jul-2017 02:36:19 | Error at line 387069
18-Jul-2017 02:36:20 | {"server_name":"ap-geo.select.com","remote_address":"1.174.9.6","forwarded_for":"3.7.5.19","remote_user":"ERT8NHuyrkEQ1buZVXr3","timestamp_start":"1498056996675","timestamp_finish":"1498056996715","time_start":"21/Jun/2017:14:56:36 +0000","time_finish":"21/Jun/2017:14:56:36 +0000","reques
18-Jul-2017 02:36:20 | Error Type: <class 'ValueError'>
18-Jul-2017 02:36:20 | Error Args: ('Unterminated string starting at: line 1 column 301 (char 300)',)
18-Jul-2017 02:36:20 | |- 387069 rows processed in 43.00548601150513 seconds
18-Jul-2017 02:36:20 | |- File 167 processed.

This appeared for the last 3 of 170 files. I thought the disk may have ran out of space bt my SA tells me this is not the case.

Is there any other likely cause for this issue?

Cheers
Paul
Reply
#2
It's more likely that the opt partition ran out of space, but it's definitely a disk space issue.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  class Blockage not projecting Azdaghost 1 1,027 May-15-2025, 04:32 PM
Last Post: deanhystad
  Return a string or byte object from Enum class? Calab 5 1,959 May-14-2025, 05:21 PM
Last Post: snippsat
  Python inner classes inheritance from parent class Abedin 8 3,000 Apr-23-2025, 05:56 AM
Last Post: Gribouillis
  Accessing method attributes of python class Abedin 6 2,497 Apr-14-2025, 07:02 AM
Last Post: buran
  Python class members based on a type value voidtrance 7 2,553 Apr-11-2025, 10:10 PM
Last Post: deanhystad
  Create a new subclass in a Python extension based on an existing class voidtrance 6 2,678 Mar-25-2025, 06:37 PM
Last Post: voidtrance
  type object 'man' has no attribute 'centerX' Tempo 7 2,345 Mar-07-2025, 03:47 AM
Last Post: deanhystad
Question how to type hint a function in a dataclass? Calab 3 1,930 Feb-27-2025, 04:40 AM
Last Post: Calab
  help with a script that adds docstrings and type hints to other scripts rickbunk 1 1,894 Feb-24-2025, 05:12 AM
Last Post: from1991
  Changing client.get() method type based on size of data... dl0dth 1 1,322 Jan-02-2025, 08:30 PM
Last Post: dl0dth

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020