# Buggy code
def get_plugin_blacklist(settings, connectivity_checker=None):
    import requests
    import os
    import time
    import yaml

    from octoprint.util import bom_aware_open
    from octoprint.util.version import is_octoprint_compatible

    logger = log.getLogger(__name__ + ".startup")

    if connectivity_checker is not None and not connectivity_checker.online:
        logger.info("We don't appear to be online, not fetching plugin blacklist")
        return []

    def format_blacklist(entries):
        format_entry = (
            lambda x: "{} ({})".format(x[0], x[1])
            if isinstance(x, (list, tuple)) and len(x) == 2
            else "{} (any)".format(x)
        )
        return ", ".join(map(format_entry, entries))

    def process_blacklist(entries):
        result = []

        if not isinstance(entries, list):
            return result

        for entry in entries:
            if not "plugin" in entry:
                continue

            if "octoversions" in entry and not is_octoprint_compatible(
                *entry["octoversions"]
            ):
                continue

            if "version" in entry:
                logger.debug(
                    "Blacklisted plugin: {}, version: {}".format(
                        entry["plugin"], entry["version"]
                    )
                )
                result.append((entry["plugin"], entry["version"]))
            elif "versions" in entry:
                logger.debug(
                    "Blacklisted plugin: {}, versions: {}".format(
                        entry["plugin"], ", ".join(entry["versions"])
                    )
                )
                for version in entry["versions"]:
                    result.append((entry["plugin"], version))
            else:
                logger.debug("Blacklisted plugin: {}".format(entry["plugin"]))
                result.append(entry["key"])

        return result

    def fetch_blacklist_from_cache(path, ttl):
        if not os.path.isfile(path):
            return None

        if os.stat(path).st_mtime + ttl < time.time():
            return None

        with bom_aware_open(path, encoding="utf-8", mode="r") as f:
            result = yaml.safe_load(f)

        if isinstance(result, list):
            return result

    def fetch_blacklist_from_url(url, timeout=3, cache=None):
        result = []
        try:
            r = requests.get(url, timeout=timeout)
            result = process_blacklist(r.json())

            if cache is not None:
                try:
                    with bom_aware_open(cache, encoding="utf-8", mode="w") as f:
                        yaml.safe_dump(result, f)
                except:
                    logger.info(
                        "Fetched plugin blacklist but couldn't write it to its cache file."
                    )
        except:
            logger.info(
                "Unable to fetch plugin blacklist from {}, proceeding without it.".format(
                    url
                )
            )
        return result

    try:
        # first attempt to fetch from cache
        cache_path = os.path.join(
            settings.getBaseFolder("data"), "plugin_blacklist.yaml"
        )
        ttl = settings.getInt(["server", "pluginBlacklist", "ttl"])
        blacklist = fetch_blacklist_from_cache(cache_path, ttl)

        if blacklist is None:
            # no result from the cache, let's fetch it fresh
            url = settings.get(["server", "pluginBlacklist", "url"])
            timeout = settings.getFloat(["server", "pluginBlacklist", "timeout"])
            blacklist = fetch_blacklist_from_url(url, timeout=timeout, cache=cache_path)

        if blacklist is None:
            # still now result, so no blacklist
            blacklist = []

        if blacklist:
            logger.info(
                "Blacklist processing done, "
                "adding {} blacklisted plugin versions: {}".format(
                    len(blacklist), format_blacklist(blacklist)
                )
            )
        else:
            logger.info("Blacklist processing done")

        return blacklist
    except:
        logger.exception(
            "Something went wrong while processing the plugin blacklist. Proceeding without it."
        )


# Traceback (ValueError)
2018-02-21 11:19:44,501 - octoprint.server - INFO - --- Log roll over detected ---------------------------------------------------
2018-02-21 11:19:44,502 - octoprint.server - INFO - OctoPrint 1.3.6
2018-02-21 11:19:44,504 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system:
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
|  Astroprint (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
|  CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
|  PSU Control (0.1.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
|  TouchUI (0.3.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-02-21 11:19:44,524 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901689344
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: 3B
|      revision: a02082
|      version: 0.14.0
|  python:
|    pip: 9.0.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2018-02-21 11:19:44,525 - octoprint.server - INFO - ------------------------------------------------------------------------------
2018-02-21 11:19:44,496 - tornado.application - ERROR - Uncaught exception GET /robots.txt (127.0.0.1)
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/tornado-4.0.2-py2.7-linux-armv7l.egg/tornado/web.py", line 1309, in _execute
    result = self.prepare()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/util/tornado.py", line 232, in prepare
    self._fallback(self.request, b"")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/util/tornado.py", line 589, in __call__
    response.extend(app_response)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg/werkzeug/wsgi.py", line 569, in next
    data = self.file.read(self.buffer_size)
ValueError: I/O operation on closed file
2018-02-21 11:19:44,528 - tornado.access - ERROR - 500 GET /robots.txt (127.0.0.1) 41.75ms
2018-02-21 11:19:44,824 - tornado.application - ERROR - Uncaught exception GET /robots.txt (127.0.0.1)
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/tornado-4.0.2-py2.7-linux-armv7l.egg/tornado/web.py", line 1309, in _execute
    result = self.prepare()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/util/tornado.py", line 232, in prepare
    self._fallback(self.request, b"")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/util/tornado.py", line 589, in __call__
    response.extend(app_response)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Werkzeug-0.8.3-py2.7.egg/werkzeug/wsgi.py", line 569, in next
    data = self.file.read(self.buffer_size)
ValueError: I/O operation on closed file
2018-02-21 11:19:44,825 - tornado.access - ERROR - 500 GET /robots.txt (127.0.0.1) 7.28ms
2018-02-21 11:19:45,362 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-21 11:19:45,544 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 12.45ms
2018-02-21 11:19:45,789 - tornado.access - WARNING - 401 POST /api/plugin/psucontrol (127.0.0.1) 176.64ms
2018-02-21 11:19:53,996 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 12.18ms
2018-02-21 11:20:01,868 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 0.36s
2018-02-21 11:20:02,499 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 0.44s
2018-02-21 11:20:02,913 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 0.3s
2018-02-21 11:20:03,272 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.29s
2018-02-21 11:20:03,715 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 0.29s
2018-02-21 11:20:05,441 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2018-02-21 11:20:07,493 - octoprint.plugins.psucontrol - INFO - Switching PSU On
2018-02-21 11:20:11,254 - octoprint.plugins.psucontrol - INFO - Switching PSU Off
2018-02-21 11:21:46,142 - octoprint.server.api.system - INFO - Performing command for core:reboot: sudo shutdown -r now
2018-02-21 11:21:46,376 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-21 11:21:46,443 - octoprint.server - INFO - Shutting down...
2018-02-21 11:21:46,740 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2018-02-21 11:21:48,000 - octoprint.events - INFO - Event loop shut down
2018-02-21 11:21:48,017 - octoprint.server - INFO - Goodbye!
2018-02-21 11:22:52,997 - octoprint.startup - INFO - ******************************************************************************
2018-02-21 11:22:53,013 - octoprint.startup - INFO - Starting OctoPrint 1.3.6
2018-02-21 11:22:53,014 - octoprint.startup - INFO - ******************************************************************************
2018-02-21 11:22:53,319 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-02-21 11:22:53,741 - octoprint.startup - INFO - Blacklist processing done
2018-02-21 11:22:54,906 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-21 11:23:03,290 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-21 11:23:03,504 - octoprint.server - INFO - Intermediary server started
2018-02-21 11:23:03,505 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-21 11:23:03,817 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-21 11:23:03,853 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-02-21 11:23:04,477 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-02-21 11:23:04,626 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-02-21 11:23:08,071 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-21 11:23:10,763 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2018-02-21 11:23:10,766 - octoprint.plugin.core - INFO - Initialized 10 plugin implementation(s)
2018-02-21 11:23:10,775 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system:
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| !Astroprint (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
| !PSU Control (0.1.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
|  TouchUI (0.3.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-02-21 11:23:13,253 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901689344
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: 3B
|      revision: a02082
|      version: 0.14.0
|  python:
|    pip: 9.0.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2018-02-21 11:23:13,263 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-02-21 11:23:13,288 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-02-21 11:23:13,502 - octoprint.server - INFO - Shutting down intermediary server...
2018-02-21 11:23:13,602 - octoprint.server - INFO - Intermediary server shut down
2018-02-21 11:23:13,605 - octoprint.events - INFO - Processing startup event, this is our first event
2018-02-21 11:23:13,606 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2018-02-21 11:23:13,611 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-02-21 11:23:13,755 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2018-02-21 11:23:14,289 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2018-02-21 11:23:14,375 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-21 11:23:14,391 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-02-21 11:23:14,406 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-02-21 11:23:14,409 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-02-21 11:23:14,413 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-02-21 11:23:14,567 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-21 11:23:14,937 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2018-02-21 11:23:15,217 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2018-02-21 11:23:16,099 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.10.1.26/'}
2018-02-21 11:23:16,200 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-02-21 11:23:16,332 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-21 11:23:16,506 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin V1; Sprinter/grbl mashup for gen6"
2018-02-21 11:24:00,897 - octoprint.server.preemptive_cache - INFO - ... done in 44.80s
2018-02-21 11:24:00,898 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://localhost:5000/'}
2018-02-21 11:24:00,951 - octoprint.server.preemptive_cache - INFO - ... done in 0.05s
2018-02-21 11:24:08,176 - octoprint.server.util.sockjs - INFO - New connection from client: 127.0.0.1
2018-02-21 11:25:25,603 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-21 11:27:02,728 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-21 11:27:03,626 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-21 11:50:49,800 - octoprint.filemanager.analysis - INFO - Starting analysis of local:kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-21 11:50:49,810 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-21 11:50:58,842 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-21 11:53:58,892 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-21 17:01:25,391 - octoprint.server.util.sockjs - INFO - New connection from client: 10.20.30.26
2018-02-21 17:01:25,838 - octoprint.timelapse - INFO - Deleted old unrendered timelapse PTFE_tube_cutter_4_mm_20180208125043
2018-02-21 17:01:26,171 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 18.09ms
2018-02-21 17:02:02,575 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:02,606 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 42.35ms
2018-02-21 17:02:12,967 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:12,972 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 14.08ms
2018-02-21 17:02:18,833 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:18,841 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 16.84ms
2018-02-21 17:02:36,560 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:36,563 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 11.79ms
2018-02-21 17:02:40,381 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.20.30.26
2018-02-21 17:02:41,785 - octoprint.server.util.sockjs - INFO - New connection from client: 10.20.30.26
2018-02-21 17:02:41,989 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 12.19ms
2018-02-21 17:02:52,043 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:52,047 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 13.56ms
2018-02-21 17:02:55,337 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:02:55,341 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 11.58ms
2018-02-21 17:03:01,399 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.20.30.26
2018-02-21 17:03:15,041 - octoprint.server.util.sockjs - INFO - New connection from client: 10.20.30.26
2018-02-21 17:03:15,594 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 15.29ms
2018-02-21 17:03:28,555 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:03:28,564 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 18.39ms
2018-02-21 17:03:42,132 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.20.30.26
2018-02-21 17:03:50,670 - octoprint.server.util.sockjs - INFO - New connection from client: 10.20.30.26
2018-02-21 17:03:51,412 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 16.56ms
2018-02-21 17:04:00,105 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 11.30ms
2018-02-21 17:04:29,137 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-21 17:04:29,140 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 10.93ms
2018-02-21 17:05:05,521 - tornado.access - WARNING - 401 POST /api/job (127.0.0.1) 26.56ms
2018-02-21 17:05:27,892 - tornado.access - WARNING - 401 POST /api/job (127.0.0.1) 17.71ms
2018-02-21 17:05:31,155 - tornado.access - WARNING - 404 GET /api/printerprofiles/ (127.0.0.1) 7.47ms
2018-02-21 17:05:31,166 - tornado.access - WARNING - 404 GET /api/printerprofiles/ (127.0.0.1) 8.19ms
2018-02-21 17:05:31,176 - tornado.access - WARNING - 404 GET /api/printerprofiles/ (127.0.0.1) 7.67ms
2018-02-21 17:05:31,283 - tornado.access - WARNING - 404 GET /api/printerprofiles/ (127.0.0.1) 8.86ms
2018-02-21 17:05:38,602 - octoprint.server.util.sockjs - INFO - New connection from client: 10.20.30.26
2018-02-21 17:05:50,359 - octoprint.filemanager.analysis - INFO - Starting analysis of local:kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-21 17:05:50,361 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-21 16:17:26,710 - octoprint.startup - INFO - ******************************************************************************
2018-02-21 16:17:26,724 - octoprint.startup - INFO - Starting OctoPrint 1.3.6
2018-02-21 16:17:26,724 - octoprint.startup - INFO - ******************************************************************************
2018-02-21 16:17:26,995 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-02-21 16:17:27,523 - octoprint.startup - INFO - Blacklist processing done
2018-02-22 12:19:23,347 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:19:31,837 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-22 12:19:32,053 - octoprint.server - INFO - Intermediary server started
2018-02-22 12:19:32,053 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:19:32,358 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-22 12:19:32,394 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-02-22 12:19:33,044 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-02-22 12:19:33,183 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-02-22 12:19:47,148 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:19:49,676 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2018-02-22 12:19:49,680 - octoprint.plugin.core - INFO - Initialized 10 plugin implementation(s)
2018-02-22 12:19:49,688 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system:
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| !Astroprint (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
| !PSU Control (0.1.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
|  TouchUI (0.3.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-02-22 12:19:52,789 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901689344
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: 3B
|      revision: a02082
|      version: 0.14.0
|  python:
|    pip: 9.0.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2018-02-22 12:19:52,934 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-02-22 12:19:52,986 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-02-22 12:19:53,220 - octoprint.server - INFO - Shutting down intermediary server...
2018-02-22 12:19:53,682 - octoprint.server - INFO - Intermediary server shut down
2018-02-22 12:19:53,684 - octoprint.events - INFO - Processing startup event, this is our first event
2018-02-22 12:19:53,684 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2018-02-22 12:19:53,687 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-02-22 12:19:53,890 - octoprint.filemanager.analysis - INFO - Starting analysis of local:kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-22 12:19:53,897 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.01 --throttle-lines=100 /home/pi/.octoprint/uploads/kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode
2018-02-22 12:19:53,903 - octoprint.filemanager - INFO - Added 1 items from storage type "local" to analysis queue
2018-02-22 12:19:54,236 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json
2018-02-22 12:19:54,303 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:19:54,367 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-02-22 12:19:54,399 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-02-22 12:19:54,413 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-02-22 12:19:54,452 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-02-22 12:19:54,512 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:19:54,596 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 0.74s
2018-02-22 12:19:54,823 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-02-22 12:19:55,410 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.10.1.26/'}
2018-02-22 12:19:55,438 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2018-02-22 12:19:55,483 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 0.77s
2018-02-22 12:19:55,728 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2018-02-22 12:19:56,184 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 0.62s
2018-02-22 12:19:56,284 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:19:56,513 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin V1; Sprinter/grbl mashup for gen6"
2018-02-22 12:19:56,721 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 0.55s
2018-02-22 12:19:57,389 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 0.73s
2018-02-22 12:19:57,720 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 0.58s
2018-02-22 12:19:58,065 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.43s
2018-02-22 12:19:58,498 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 0.46s
2018-02-22 12:19:58,982 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 0.61s
2018-02-22 12:19:59,372 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 0.5s
2018-02-22 12:20:00,880 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:20:01,143 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:20:01,461 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:20:01,476 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:20:08,946 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages/, --user flag needed => no, virtual env => yes
2018-02-22 12:20:09,361 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk
2018-02-22 12:20:36,052 - octoprint.server.preemptive_cache - INFO - ... done in 40.64s
2018-02-22 12:20:36,053 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://localhost:5000/'}
2018-02-22 12:20:45,872 - octoprint.server.preemptive_cache - INFO - ... done in 9.82s
2018-02-22 12:20:50,462 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:20:51,376 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 736.15ms
2018-02-22 12:20:55,656 - octoprint.server.util.sockjs - INFO - New connection from client: 127.0.0.1
2018-02-22 12:21:19,859 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 13.40ms
2018-02-22 12:21:20,024 - octoprint.filemanager.analysis - INFO - Analysis of entry local:kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse.gcode finished, needed 86.13s
2018-02-22 12:21:29,058 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:21:29,093 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 590.04ms
2018-02-22 12:21:36,037 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 21.46ms
2018-02-22 12:21:40,870 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:21:40,876 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 20.80ms
2018-02-22 12:21:42,503 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:21:44,479 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:21:44,897 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 238.37ms
2018-02-22 12:21:51,598 - tornado.access - WARNING - 404 GET /favicon.ico (127.0.0.1) 17.43ms
2018-02-22 12:21:53,483 - tornado.access - WARNING - 404 GET /favicon.ico (127.0.0.1) 8.87ms
2018-02-22 12:22:00,848 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:22:00,854 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 24.12ms
2018-02-22 12:22:25,467 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:22:27,781 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:22:27,936 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 12.63ms
2018-02-22 12:22:39,526 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:22:39,532 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 21.74ms
2018-02-22 12:22:41,778 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:23:13,467 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:23:14,013 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 362.23ms
2018-02-22 12:23:25,098 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:23:25,105 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 23.52ms
2018-02-22 12:24:21,378 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:24:21,578 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 12.74ms
2018-02-22 12:24:30,840 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:24:30,847 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 25.00ms
2018-02-22 12:25:10,217 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:25:10,224 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 25.33ms
2018-02-22 12:25:44,625 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:25:50,427 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:25:50,825 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 239.85ms
2018-02-22 12:25:55,668 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:26:12,760 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:26:13,299 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 353.82ms
2018-02-22 12:26:26,659 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:26:26,663 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 12.15ms
2018-02-22 12:27:11,527 - tornado.access - WARNING - 404 GET /favicon.ico (127.0.0.1) 10.55ms
2018-02-22 12:27:11,539 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:27:13,298 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:27:13,450 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 13.50ms
2018-02-22 12:27:48,030 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 21.76ms
2018-02-22 12:28:11,148 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 19.53ms
2018-02-22 12:28:17,768 - tornado.access - WARNING - 404 GET /favicon.ico (127.0.0.1) 4.99ms
2018-02-22 12:28:17,773 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:28:19,199 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:28:19,678 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 240.09ms
2018-02-22 12:28:31,946 - tornado.access - WARNING - 401 POST /api/login (127.0.0.1) 20.36ms
2018-02-22 12:28:37,489 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:28:37,495 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 22.66ms
2018-02-22 12:28:40,008 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:28:40,985 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:28:41,387 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 234.17ms
2018-02-22 12:30:15,832 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:30:15,842 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:30:15,902 - octoprint.server - INFO - Shutting down...
2018-02-22 12:30:16,353 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2018-02-22 12:30:16,356 - octoprint.events - INFO - Event loop shut down
2018-02-22 12:30:16,365 - octoprint.server - INFO - Goodbye!
2018-02-22 12:31:23,841 - octoprint.startup - INFO - ******************************************************************************
2018-02-22 12:31:23,876 - octoprint.startup - INFO - Starting OctoPrint 1.3.6
2018-02-22 12:31:23,876 - octoprint.startup - INFO - ******************************************************************************
2018-02-22 12:31:24,264 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-02-22 12:31:24,658 - octoprint.startup - INFO - Blacklist processing done
2018-02-22 12:31:25,549 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:31:34,338 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-22 12:31:34,559 - octoprint.server - INFO - Intermediary server started
2018-02-22 12:31:34,560 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:31:34,871 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 10 mixin implementations, 9 hook handlers
2018-02-22 12:31:34,908 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-02-22 12:31:35,573 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-02-22 12:31:35,716 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-02-22 12:31:39,542 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:31:42,079 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2018-02-22 12:31:42,083 - octoprint.plugin.core - INFO - Initialized 10 plugin implementation(s)
2018-02-22 12:31:42,091 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system:
|  Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| !Astroprint (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint
|  Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
| !PSU Control (0.1.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
|  TouchUI (0.3.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-02-22 12:31:44,355 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901689344
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: 3B
|      revision: a02082
|      version: 0.14.0
|  python:
|    pip: 9.0.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2018-02-22 12:31:44,375 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-02-22 12:31:44,426 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-02-22 12:31:44,666 - octoprint.server - INFO - Shutting down intermediary server...
2018-02-22 12:31:45,140 - octoprint.server - INFO - Intermediary server shut down
2018-02-22 12:31:45,142 - octoprint.events - INFO - Processing startup event, this is our first event
2018-02-22 12:31:45,143 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2018-02-22 12:31:45,165 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-02-22 12:31:45,222 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-02-22 12:31:45,512 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-02-22 12:31:45,519 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2018-02-22 12:31:45,886 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:31:45,892 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-02-22 12:31:45,904 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-02-22 12:31:45,907 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-02-22 12:31:45,915 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-02-22 12:31:45,998 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-02-22 12:31:46,168 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:31:46,221 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.10.1.26/'}
2018-02-22 12:31:46,284 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-02-22 12:31:47,850 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:31:48,285 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin V1; Sprinter/grbl mashup for gen6"
2018-02-22 12:32:25,981 - octoprint.server.preemptive_cache - INFO - ... done in 39.76s
2018-02-22 12:32:25,984 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://localhost:5000/'}
2018-02-22 12:32:26,050 - octoprint.server.preemptive_cache - INFO - ... done in 0.07s
2018-02-22 12:32:27,947 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 12:32:28,388 - tornado.access - WARNING - 401 POST /api/plugin/automaticshutdown (127.0.0.1) 312.61ms
2018-02-22 12:32:32,059 - octoprint.server.util.sockjs - INFO - New connection from client: 127.0.0.1
2018-02-22 12:35:17,835 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:35:17,876 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 61.49ms
2018-02-22 12:35:33,872 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 12:35:33,876 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 12.38ms
2018-02-22 12:48:21,948 - octoprint.server.util.sockjs - INFO - Client connection closed: 10.10.3.180
2018-02-22 12:48:22,003 - octoprint.server - INFO - Shutting down...
2018-02-22 12:48:22,510 - octoprint.events - INFO - Processing shutdown event, this will be our last event
2018-02-22 12:48:22,513 - octoprint.events - INFO - Event loop shut down
2018-02-22 12:48:22,522 - octoprint.server - INFO - Goodbye!
2018-02-22 12:49:25,751 - octoprint.startup - INFO - ******************************************************************************
2018-02-22 12:49:25,774 - octoprint.startup - INFO - Starting OctoPrint 1.3.6
2018-02-22 12:49:25,774 - octoprint.startup - INFO - Starting in SAFE MODE. Third party plugins will be disabled!
2018-02-22 12:49:25,775 - octoprint.startup - INFO - ******************************************************************************
2018-02-22 12:49:26,100 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-02-22 12:49:26,534 - octoprint.startup - INFO - Blacklist processing done
2018-02-22 12:49:27,608 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:49:40,267 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 7 mixin implementations, 4 hook handlers
2018-02-22 12:49:40,512 - octoprint.server - INFO - Intermediary server started
2018-02-22 12:49:40,513 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-02-22 12:49:40,845 - octoprint.plugin.core - INFO - Found 13 plugin(s) providing 7 mixin implementations, 4 hook handlers
2018-02-22 12:49:40,882 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2018-02-22 12:49:41,553 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2018-02-22 12:49:41,697 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2018-02-22 12:49:45,067 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2018-02-22 12:49:47,651 - octoprint.util.pip - INFO - Version of pip is 9.0.1
2018-02-22 12:49:47,654 - octoprint.plugin.core - INFO - Initialized 7 plugin implementation(s)
2018-02-22 12:49:47,661 - octoprint.plugin.core - INFO - 13 plugin(s) registered with the system:
| !Action Commands (0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_actioncommands
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/announcements
| !Astroprint (1.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint
| !Automatic Shutdown (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_automaticshutdown
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/corewizard
| !CuraEngine (<= 15.04) (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/cura
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/discovery
|  OctoPi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/octopi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/pluginmanager
| !PSU Control (0.1.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_psucontrol
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/softwareupdate
| !TouchUI (0.3.11) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugins/virtual_printer
2018-02-22 12:49:50,168 - octoprint.environment - INFO - Detected environment is Python 2.7.9 under Linux (linux2). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 901689344
|  os:
|    id: linux
|    platform: linux2
|  plugins:
|    octopi_support:
|      model: 3B
|      revision: a02082
|      version: 0.14.0
|  python:
|    pip: 9.0.1
|    version: 2.7.9
|    virtualenv: /home/pi/oprint
2018-02-22 12:49:50,178 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2018-02-22 12:49:50,201 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2018-02-22 12:49:50,456 - octoprint.server - INFO - Shutting down intermediary server...
2018-02-22 12:49:50,584 - octoprint.server - INFO - Intermediary server shut down
2018-02-22 12:49:50,586 - octoprint.events - INFO - Processing startup event, this is our first event
2018-02-22 12:49:50,587 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2018-02-22 12:49:50,591 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2018-02-22 12:49:50,767 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-02-22 12:49:50,775 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2018-02-22 12:49:50,899 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-02-22 12:49:51,327 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:49:51,341 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _http._tcp
2018-02-22 12:49:51,353 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for _octoprint._tcp
2018-02-22 12:49:51,357 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2018-02-22 12:49:51,364 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2018-02-22 12:49:51,366 - octoprint.server - INFO - Server started successfully in safe mode as requested from config, removing flag
2018-02-22 12:49:51,565 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:49:51,860 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-02-22 12:49:52,126 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-02-22 12:49:52,214 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.10.1.26/'}
2018-02-22 12:49:52,619 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 23.57ms
2018-02-22 12:49:53,541 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-02-22 12:49:53,634 - octoprint.util.comm - INFO - Printer reports firmware name "Marlin V1; Sprinter/grbl mashup for gen6"
2018-02-22 12:49:55,630 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 5.47ms
2018-02-22 12:49:59,166 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 28.02ms
2018-02-22 12:50:01,998 - octoprint.server.preemptive_cache - INFO - ... done in 9.78s
2018-02-22 12:50:01,999 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://localhost:5000/'}
2018-02-22 12:50:02,238 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 27.35ms
2018-02-22 12:50:05,264 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.07ms
2018-02-22 12:50:05,881 - octoprint.server.preemptive_cache - INFO - ... done in 3.88s
2018-02-22 12:50:08,282 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.68ms
2018-02-22 12:50:11,306 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.65ms
2018-02-22 12:50:14,329 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.13ms
2018-02-22 12:50:17,354 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.76ms
2018-02-22 12:50:20,377 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.48ms
2018-02-22 12:50:23,400 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.58ms
2018-02-22 12:50:28,880 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.18ms
2018-02-22 12:50:31,906 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.68ms
2018-02-22 12:50:34,932 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.31ms
2018-02-22 12:50:37,958 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 13.07ms
2018-02-22 12:50:40,988 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.32ms
2018-02-22 12:50:44,023 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 13.02ms
2018-02-22 12:50:47,046 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.29ms
2018-02-22 12:50:50,069 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.77ms
2018-02-22 12:50:53,094 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.59ms
2018-02-22 12:50:56,118 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.39ms
2018-02-22 12:50:59,142 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.82ms
2018-02-22 12:51:02,165 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.41ms
2018-02-22 12:51:05,191 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 11.13ms
2018-02-22 12:51:08,215 - tornado.access - WARNING - 404 GET /plugin/touchui/ping (127.0.0.1) 10.66ms
2018-02-22 13:00:38,525 - tornado.access - WARNING - 404 GET /static/webassets/packed_plugins.js?238952f3 (127.0.0.1) 7.30ms
2018-02-22 13:00:38,881 - tornado.access - WARNING - 404 GET /static/webassets/packed_plugins.js?238952f3 (127.0.0.1) 2.33ms
2018-02-22 13:00:39,098 - octoprint.server.util.sockjs - INFO - New connection from client: 10.10.3.180
2018-02-22 13:00:48,733 - octoprint - ERROR - Exception on /api/login [POST]
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/server/api/__init__.py", line 215, in login
    login_user(user, remember=remember)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/Flask_Login-0.2.11-py2.7.egg/flask_login.py", line 687, in login_user
    user_logged_in.send(current_app._get_current_object(), user=_get_user())
  File "build/bdist.linux-armv7l/egg/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 82, in logInHandler
    self.onLogin()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 100, in onLogin
    self.send_event("userLogged", True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_astroprint/__init__.py", line 141, in send_event
    self._plugin_manager.send_plugin_message(self._plugin_name, event)
AttributeError: 'AstroprintPlugin' object has no attribute '_plugin_manager'
2018-02-22 13:00:48,766 - tornado.access - ERROR - 500 POST /api/login (127.0.0.1) 49.80ms
2018-02-22 13:05:11,713 - tornado.access - WARNING - 401 DELETE /api/timelapse/Dispenser_MONI_smaller_v5_Body9_Dispenser_20180208143341.mpg (127.0.0.1) 21.27ms
2018-02-22 13:05:11,740 - tornado.access - WARNING - 401 DELETE /api/timelapse/kasse_Temp_Sensor_Kasse_med_nose_v10_Bund_kasse_20180221115058.mpg (127.0.0.1) 21.89ms
2018-02-22 13:05:11,763 - tornado.access - WARNING - 401 DELETE /api/timelapse/Lorte-shield_Food_weight_v17_Body1_Lorte-shield_20180207153549.mpg (127.0.0.1) 18.16ms
2018-02-22 13:05:11,776 - tornado.access - WARNING - 401 DELETE /api/timelapse/PTFE_tube_cutter_4_mm_20180208102704.mpg (127.0.0.1) 10.11ms
2018-02-22 13:05:11,789 - tornado.access - WARNING - 401 DELETE /api/timelapse/PTFE_tube_cutter_4_mm_20180208105437.mpg (127.0.0.1) 10.19ms
2018-02-22 13:05:11,805 - tornado.access - WARNING - 401 DELETE /api/timelapse/PTFE_tube_cutter_4_mm_20180208114144.mpg (127.0.0.1) 13.56ms
2018-02-22 13:05:11,820 - tornado.access - WARNING - 401 DELETE /api/timelapse/Shaker_tube_holder_v7_Shaker_tube_holder_v7_Bund_1_Body1_Bund_20180206124721.mpg (127.0.0.1) 11.40ms
2018-02-22 13:05:11,833 - tornado.access - WARNING - 401 DELETE /api/timelapse/Yderramme_20180207112551.mpg (127.0.0.1) 10.26ms 

# Fixed code
def get_plugin_blacklist(settings, connectivity_checker=None):
    import requests
    import os
    import time
    import yaml

    from octoprint.util import bom_aware_open
    from octoprint.util.version import is_octoprint_compatible

    logger = log.getLogger(__name__ + ".startup")

    if connectivity_checker is not None and not connectivity_checker.online:
        logger.info("We don't appear to be online, not fetching plugin blacklist")
        return []

    def format_blacklist(entries):
        format_entry = (
            lambda x: "{} ({})".format(x[0], x[1])
            if isinstance(x, (list, tuple)) and len(x) == 2
            else "{} (any)".format(x)
        )
        return ", ".join(map(format_entry, entries))

    def process_blacklist(entries):
        result = []

        if not isinstance(entries, list):
            return result

        for entry in entries:
            if not "plugin" in entry:
                continue

            if "octoversions" in entry and not is_octoprint_compatible(
                *entry["octoversions"]
            ):
                continue

            if "version" in entry:
                logger.debug(
                    "Blacklisted plugin: {}, version: {}".format(
                        entry["plugin"], entry["version"]
                    )
                )
                result.append((entry["plugin"], entry["version"]))
            elif "versions" in entry:
                logger.debug(
                    "Blacklisted plugin: {}, versions: {}".format(
                        entry["plugin"], ", ".join(entry["versions"])
                    )
                )
                for version in entry["versions"]:
                    result.append((entry["plugin"], version))
            else:
                logger.debug("Blacklisted plugin: {}".format(entry["plugin"]))
                result.append(entry["plugin"])

        return result

    def fetch_blacklist_from_cache(path, ttl):
        if not os.path.isfile(path):
            return None

        if os.stat(path).st_mtime + ttl < time.time():
            return None

        with bom_aware_open(path, encoding="utf-8", mode="r") as f:
            result = yaml.safe_load(f)

        if isinstance(result, list):
            return result

    def fetch_blacklist_from_url(url, timeout=3, cache=None):
        result = []
        try:
            r = requests.get(url, timeout=timeout)
            result = process_blacklist(r.json())

            if cache is not None:
                try:
                    with bom_aware_open(cache, encoding="utf-8", mode="w") as f:
                        yaml.safe_dump(result, f)
                except:
                    logger.info(
                        "Fetched plugin blacklist but couldn't write it to its cache file."
                    )
        except:
            logger.info(
                "Unable to fetch plugin blacklist from {}, proceeding without it.".format(
                    url
                )
            )
        return result

    try:
        # first attempt to fetch from cache
        cache_path = os.path.join(
            settings.getBaseFolder("data"), "plugin_blacklist.yaml"
        )
        ttl = settings.getInt(["server", "pluginBlacklist", "ttl"])
        blacklist = fetch_blacklist_from_cache(cache_path, ttl)

        if blacklist is None:
            # no result from the cache, let's fetch it fresh
            url = settings.get(["server", "pluginBlacklist", "url"])
            timeout = settings.getFloat(["server", "pluginBlacklist", "timeout"])
            blacklist = fetch_blacklist_from_url(url, timeout=timeout, cache=cache_path)

        if blacklist is None:
            # still now result, so no blacklist
            blacklist = []

        if blacklist:
            logger.info(
                "Blacklist processing done, "
                "adding {} blacklisted plugin versions: {}".format(
                    len(blacklist), format_blacklist(blacklist)
                )
            )
        else:
            logger.info("Blacklist processing done")

        return blacklist
    except:
        logger.exception(
            "Something went wrong while processing the plugin blacklist. Proceeding without it."
        )