Eric Callahan
379bcb10f9
data-path-fix: add missing alias
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-21 15:23:45 -04:00
Eric Callahan
8540f5a794
data-path-fix: add command line arguments
...
Give the script flexibility for use on installs with multiple instances.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-21 14:26:03 -04:00
Eric Callahan
1f86943cbb
gpio: relax error handling
...
Increase the error threshold to 50 and reset within a 5 second threshold.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-21 14:13:17 -04:00
Eric Callahan
4df0b4d532
machine: abort validation if the backup config is loaded
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-21 10:26:25 -04:00
Eric Callahan
1190aba4b7
machine: add logging to validation init
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-21 10:26:25 -04:00
Jim C K Flaten
25adba0bf6
docs: Correct `minimum_event_time` example
...
The internal variable is called `min_`, but the config option is called `miniumum_`.
2022-10-21 10:23:29 -04:00
Eric Callahan
974b37dad8
machine: improve multi-instance validation
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-20 20:27:02 -04:00
Eric Callahan
8f444a908e
shell_command: error message fix
...
Use the original command in the message rather than the
list generated by shlex.split().
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-20 16:54:35 -04:00
Eric Callahan
59cc8c6c7b
update_manager: report errors in update response
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-20 16:54:35 -04:00
Eric Callahan
e4a670a380
update_manager: improve corrupt repo detection
...
It that "git status" will not detect some repo issues, these are only
found after a fetch. When this condition is detected save the repo
state and report that the repo is corrupt and invalid.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-20 16:54:34 -04:00
Eric Callahan
74f43cad6e
git_deploy: notify attempts to fix loose objects
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-19 19:32:54 -04:00
Eric Callahan
c7e290a3cd
update_manager: improve web client error handling
...
Singed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-19 17:58:58 -04:00
Eric Callahan
38b035389d
power: improve logging
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-19 16:35:49 -04:00
Eric Callahan
1f1c590409
power: add initial state support for all devices
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-19 13:43:14 -04:00
Franklyn Tackitt
6131c7afc1
Git submodules use a .git file instead of a directory
...
I'm playing with using git submodules to track my entire printer config,
and moonraker only works with separate clones as is. Using `.exists()`
instead of `.is_dir()` allows moonraker to control the submodules.
Signed-off-by: Franklyn Tackitt <git@frank.af>
2022-10-19 13:41:35 -04:00
Eric Callahan
4954cc74cd
machine: change sudo folder access test
...
The previous "/lost+found" is not available on all systems. Change to
"/root", which should be available.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-19 06:21:18 -04:00
Eric Callahan
f745c2ce17
database: remove legacy database warning
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-18 14:13:25 -04:00
Eric Callahan
d6bdad3a9d
machine: announce required update via gcode terminal
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-18 14:07:27 -04:00
Eric Callahan
9a466f3b22
server: improve warning formatting
...
Introduce a "raw" parameter for /server/info that defaults to False.
Front ends that do not wish to recieve warnings with html line breaks
may set this parameter to True, otherwise newlines will be replaced
with "<br/>".
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-18 07:23:25 -04:00
Eric Callahan
a8cbfe6345
file_manager: improve gcode path warning
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-18 07:23:25 -04:00
Eric Callahan
6b3c78da71
docs: fix notifier debug endpoint
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-18 05:20:39 -04:00
pataar
b981dc109d
notify: add server endpoints for notifier to list and test them
...
Signed-off-by: Pieter Willekens <me@pataar.nl>
2022-10-18 05:18:30 -04:00
Eric Callahan
f1c4d6b143
machine: validation fix for new installs
...
Add a missing return statement to _link_data_subfolder.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-17 06:30:54 -04:00
alfrix
7552631b65
update_manager: fix error message displaying the wrong option
...
Signed-off-by: Alfredo Monclus <alfredomonclus@gmail.com>
2022-10-16 10:31:15 -04:00
Eric Callahan
06279d0e10
data-path-fix: update for fresh installs
...
Don't require the database and gcode paths to exist. Fall back on the
default location if they do not.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-16 07:53:51 -04:00
Eric Callahan
7e35e54a71
machine: increase timeout for sudo access check
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 20:01:19 -04:00
Eric Callahan
05ca71f5a8
machine: relax config validation
...
Don't raise an exception if the option in a path does not exist. Remove
the option and fall back to the default path location
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 19:58:34 -04:00
Eric Callahan
3ad7d0668a
scripts: add data-path-fix script
...
This script can be used to fix broken installations on
MainsailOS and FluiddPi distributions running a
single instance of Moonraker.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 11:42:43 -04:00
Eric Callahan
b9cac62db8
update_manager: log when refresh is bypassed
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 11:07:31 -04:00
Eric Callahan
65e24a14dc
update_manager: do not refresh when install validation is pending
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 10:52:05 -04:00
Eric Callahan
53fcc7386f
machine: increase timeouts for sudo commands
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 10:52:04 -04:00
Eric Callahan
00c4846d11
machine: validation fixes
...
Protect the sudo request with a lock. Add retries to the sudo
commands.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 08:37:45 -04:00
th33xitus
f0e4678fab
docs: use term "sudo" instead of "root"
...
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-10-15 06:11:14 -04:00
th33xitus
fb327a6ca9
machine: use term "sudo" instead of "root"
...
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2022-10-15 06:11:14 -04:00
Eric Callahan
500e8f3b68
machine: disable file write access when validation fails
...
Prevent users from uploading files before validation is complete, as
this can populate one of the subfolders resulting in a failure when
attempting to symlink the original path.
When validating the config symlink the database first. This should
allow Moonraker to correctly move the database should an error
be encountered when validating the other config options.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-15 06:01:36 -04:00
Eric Callahan
fb679aa056
database: minor fallback fix
...
Fallback if not using the default path and the database has not been created.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 19:25:47 -04:00
Eric Callahan
2603cc2e8f
docs: update deprecations
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
485b29490a
update_manager: deprecate repo debug option
...
Use the "debug" command line option to enable debug
features for the update manager.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
1e8c7f0915
database: register debug endpoints
...
Allow full database access to registered debug endpoints.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
30e2ec04b7
app: add support for debug endpoints
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
86fc1057f7
server: deprecate debug logging option
...
Add a debug option to the command line to enable
debug features.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
d2cbd1d0a0
finish-upgrade: helper for finishing updates
...
This script provides a method for users to complete an upgrade
that requires elevated privileges via ssh.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
485c723a3c
install: only write initial config for first time installs
...
This prevents an upgrade from unintentionally populating
the config directory when a legacy install exists.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
9021fbea48
machine: use default password for validation
...
For legacy Raspberry Pi installations attempt to automate
the update using the default password.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
be9aff8b5e
power: loosen bound service requirement
...
Specifically check against the detected service unit, otherwise
allow a power device to bind to any available service.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
f22b859a0f
docs: update install documentation
...
Moonraker no longer takes an `alias` command line option. Use `printer_data`
as a placeholder for the default data folder.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
26088cdfff
install: change env location and rework default datapath
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
41ea45a486
moonraker: remove alias option
...
Differentiate instances based on the data path provided.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
c3cd24b3bf
docs: add "instance_ids" field to system_info response
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00
Eric Callahan
266c5b53d1
machine: extend system info request with unit names
...
Report the unit names for both Moonarker and Klipper.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2022-10-14 15:15:41 -04:00