Nomar记录一段历史
OctoPrint 网页冻结(在运行 Raspbian 的 Raspberry Pi 上设置)

我一直在使用名为OctoPrint的软件,它允许您在浏览器中控制打印机。为了简单起见,我使用了Octopi ,这是一个预装的 OctoPrint 图像,但现在我想做一些改变,我决定自己构建 OctroPrint,构建它的说明在这里: https : //github.com/ foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian 。问题是,当我遵循第一个命令时:

 sudo apt-get update sudo apt-get upgrade cd ~ sudo apt-get install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential git clone https://github.com/foosel/OctoPrint.git cd OctoPrint virtualenv venv ./venv/bin/pip install pip --upgrade ./venv/bin/python setup.py install mkdir ~/.octoprint sudo usermod -a -G tty pi sudo usermod -a -G dialout pi

然后我启动 octoprint 服务器

 ~/OctoPrint/venv/bin/octoprint

Octoprint 的网页冻结了

在此处输入图片说明

我不知道这是否在以后的命令中修复,但我想在继续之前了解所有这些是如何组合在一起的。看起来这不是浏览器(我可以毫无问题地访问其他网站),Octoprint 也是这样吗?我该如何解决这个问题?以前有人遇到过这个问题吗?提前致谢


控制台中的输出是:

 2016-07-11 03:09:19,442 - octoprint.server - INFO - Starting OctoPrint 1.2.13 (master branch) 2016-07-11 03:09:19,502 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins and installed plugin packages... 2016-07-11 03:09:20,522 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available 2016-07-11 03:09:20,524 - octoprint.plugin.core - INFO - Found 6 plugin(s) providing 6 mixin implementations, 3 hook handlers 2016-07-11 03:09:20,533 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads... 2016-07-11 03:09:20,536 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully. 2016-07-11 03:09:23,615 - octoprint.util.pip - INFO - Found pip at /home/pi/OctoPrint/venv/bin/pip, version is 8.1.2 2016-07-11 03:09:23,620 - octoprint.plugin.core - INFO - Initialized 6 plugin implementation(s) 2016-07-11 03:09:23,625 - octoprint.plugin.core - INFO - 6 plugin(s) registered with the system: | Announcement Plugin (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/announcements | CuraEngine (<= 15.04) (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/cura | Discovery (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/discovery | Plugin Manager (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/pluginmanager | Software Update (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/softwareupdate | Virtual Printer (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.13-py2.7.egg/octoprint/plugins/virtual_printer 2016-07-11 03:09:23,628 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue... 2016-07-11 03:09:23,639 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue 2016-07-11 03:09:23,644 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets... 2016-07-11 03:09:23,660 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache... 2016-07-11 03:09:24,082 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on raspberrypi for SSDP 2016-07-11 03:09:24,095 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid 2016-07-11 03:09:24,135 - octoprint.server - INFO - Listening on http://0.0.0.0:5000 2016-07-11 03:09:24,602 - octoprint.plugins.announcements - INFO - Loaded channel _important from http://octoprint.org/feeds/important.xml in 0.43s 2016-07-11 03:09:25,271 - octoprint.server - INFO - Preemptively caching / for {'query_string': 'en', 'path': '/', 'base_url': 'http://0.0.0.0:5000/'} 2016-07-11 03:09:59,143 - octoprint.server.util.sockjs - INFO - New connection from client: 127.0.0.1 2016-07-11 03:09:59,884 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to None), Cura will not be selectable for slicing
控制台中是否弹出任何错误?按 F12 并转到控制台选项卡/菜单,粘贴您看到的任何错误。连接到机器可能存在问题。你开机器了吗?
我刚刚在控制台中添加了输出。树莓派已开启。另外我忘了说网站在加载时很好,但是在 3 或 4 秒后,它冻结了
1. 你提到你从股票 OctoPI 构建/安装开始,但没有提到一切都可以在没有你改变的情况下工作。 2. 您是否尝试过一次改进以找出冻结网页的位置?
我还没有做任何改进。我只是按照 https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian 的步骤操作,而我卡在了那一步

1个回答

是树莓派锁定了,还是只是网页?如果整个事情变得没有响应,我会考虑检查您的超频设置。如果您在配置脚本中设置了较高的超频值之一,这通常会导致随机锁定。如果每次启动 Pi 时都没有看到配置脚本,则可以通过在终端窗口中键入以下内容来访问它。

 sudo raspi-config

您可以从本指南的配置脚本中了解如何更改超频设置

随机文章