Upload failed message

What is the problem?

Could not upload the file. Make sure that it is a readable, valid file with one of these extensions: .g, .gco, .gcode, .ufp

What did you already try to solve it?

500 Internal Server Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Complete Logs

500 Internal Server Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

2020-08-30 14:15:45,132 - octoprint - ERROR - Exception on /api/files/local [POST]
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/home/pi/oprint/local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/util/flask.py", line 1315, in decorated_view
return func(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/vendor/flask_principal.py", line 199, in _decorated
rv = f(*args, **kw)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/files.py", line 411, in uploadGcodeFile
display=canonFilename)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/init.py", line 501, in add_file
path_in_storage = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite, display=display)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/storage.py", line 774, in add_file
file_object.save(file_path)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/util.py", line 92, in save
shutil.copyfileobj(source, dest)
File "/usr/lib/python2.7/shutil.py", line 63, in copyfileobj
buf = fsrc.read(length)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/filemanager/util.py", line 198, in read
processed_line = self.process_line(line)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress/init.py", line 166, in process_line
line = self._modifyLineIfLayerComment(inputLine, layerExpression)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress/init.py", line 194, in _modifyLineIfLayerComment
currentLayer = str(self.currentLayerCount)
AttributeError: 'LayerDetectorFileProcessor' object has no attribute 'currentLayerCount'
2020-08-30 14:15:45,143 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:10.0.0.1) 902.12ms
2020-08-30 14:15:49,527 - octoprint.plugins.tracking - INFO - Sent tracking event printer_connected, payload: {u'printer_baudrate': 0, u'printer_port': u'AUTO', 'firmware_name': u'Marlin bugfix-1.1.x (Github)'}
2020-08-30 14:15:59,439 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:10.0.0.1

Additional information about your setup

Version 1.4.2, Version 0.17.0, running on Raspberry Pi 3 Model B Plus Rev 1.3, Ender 3 Pro, Marlin 1.1.9.1 bugfix, Firefox and Edge, Win 10 Pro

Hey @Niamh
Seems this was fixed by the author an hour ago, if you head to Settings > Software Update > scroll to the bottom for 'advanced' > force check for updates to override the cache and get you back going soon.

Link to new release https://github.com/OllisGit/OctoPrint-DisplayLayerProgress/releases/tag/1.23.2