Cleaning old user data and history from an installation

What is the problem?

I have inherited a preconfigured Ocotprint installation. However, it is filled with the previous kind user's information and usage data. I need to remove all the old configs such as passwords, filament data, gcode, etc from that user.

Is there a script or procedure that I can use that will do this for me?

What did you already try to solve it?

Don't know where to start!

Have you tried running in safe mode?

NA

Did running in safe mode solve the problem?

NA

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
System Information

OctoPrint 1.7.2

Python 3.7.3

OctoPi 0.18.0

browser.user_agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

connectivity.connection_check : 1.1.1.1:53

connectivity.connection_ok : True

connectivity.enabled : True

connectivity.online : True

connectivity.resolution_check : octoprint.org

connectivity.resolution_ok : True

env.hardware.cores : 4

env.hardware.freq : 1500.0

env.hardware.ram : 1904381952

env.os.bits : 32

env.os.id : linux

env.os.platform : linux

env.plugins.pi_support.model : Raspberry Pi 4 Model B Rev 1.4

env.plugins.pi_support.octopi_version : 0.18.0

env.plugins.pi_support.throttle_state : 0x0

env.python.pip : 20.3.3

env.python.version : 3.7.3

env.python.virtualenv : True

octoprint.safe_mode : False

octoprint.version : 1.7.2

systeminfo.generator : zipapi

octoprint.log

27.85K chars

253 lines

``

serial.log

444 chars

3 lines

``

terminal.txt

11.85K chars

300 lines

``

plugin_softwareupdate_console.log

494.35K chars

3.18K lines

​

2021-02-05 15:38:29,382 /home/pi/oprint/bin/python3 -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.2.4.zip --no-cache-dir 2021-02-05 15:38:31,418 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2021-02-05 15:38:31,420 > Collecting https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.2.4.zip 2021-02-05 15:38:32,422 > Downloading https://github.com/OctoPrint/OctoPrint-FirmwareCheck/archive/2021.2.4.zip (66 kB) 2021-02-05 15:38:33,426 > Building wheels for collected packages: OctoPrint-FirmwareCheck 2021-02-05 15:38:33,426 > Building wheel for OctoPrint-FirmwareCheck (setup.py): started 2021-02-05 15:38:35,033 > Building wheel for OctoPrint-FirmwareCheck (setup.py): finished with status 'done' 2021-02-05 15:38:35,033 > Created wheel for OctoPrint-FirmwareCheck: filename=OctoPrint_FirmwareCheck-2021.2.4-py2.py3-none-any.whl size=30743 sha256=068838affa296ea6f9dae46ba964b462a00c884f2d103b98b47b77e5236a0b6e 2021-02-05 15:38:35,033 > Stored in directory: /tmp/pip-ephem-wheel-cache-_gmlf0n1/wheels/b8/42/78/87046299527ed1affa9ab5724c2d69f62681848204a9bd3639 2021-02-05 15:38:35,034 > Successfully built OctoPrint-FirmwareCheck 2021-02-05 15:38:35,034 > Installing collected packages: OctoPrint-FirmwareCheck 2021-02-05 15:38:35,034 > Attempting uninstall: OctoPrint-FirmwareCheck 2021-02-05 15:38:35,034 > Found existing installation: OctoPrint-FirmwareCheck 2020.9.23 2021-02-05 15:38:35,034 > Uninstalling OctoPrint-FirmwareCheck-2020.9.23: 2021-02-05 15:38:35,034 > Successfully uninstalled OctoPrint-FirmwareCheck-2020.9.23 2021-02-05 15:38:35,035 > Successfully installed OctoPrint-FirmwareCheck-2021.2.4 2021-02-05 15:38:35,154 /home/pi/oprint/bin/python3 -m pip --disable-pip-version-check install https://github.com/LazeMSS/OctoPrint-UICustomizer/archive/0.1.2.8.zip --no-cache-dir 2021-02-05 15:38:37,566 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2021-02-05 15:38:37,567 > Collecting https://github.com/LazeMSS/OctoPrint-UICustomizer/archive/0.1.2.8.zip 2021-02-05 15:38:37,568 > Downloading https://github.com/LazeMSS/OctoPrint-UICustomizer/archive/0.1.2.8.zip (1.8 MB) 2021-02-05 15:38:41,307 > Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python3.7/site-packages (from UI-Customizer==0.1.2.8) (1.5.3) 2021-02-05 15:38:41,307 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (1.1.0) 2021-02-05 15:38:41,308 > Requirement already satisfied: filetype<2,>=1.0.7 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (1.0.7) 2021-02-05 15:38:41,308 > Requirement already satisfied: rsa==4.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (4.0) 2021-02-05 15:38:41,308 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (2.0) 2021-02-05 15:38:41,308 > Requirement already satisfied: PyYAML<6,>=5.3.1 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (5.3.1) 2021-02-05 15:38:41,308 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python3.7/site-packages (from OctoPrint->UI-Customizer==0.1.2.8) (1.0.0)

plugin_pluginmanager_console.log

22.63K chars

130 lines

``

haproxy.log

21.85K chars

96 lines

``

plugin_softwareupdate_update.log

1.09K chars

6 lines

``

webcamd.log

355.1M chars

10.25M lines

``

Β© 2021 OctoPrint Β· Imprint Β· Privacy Policy

WRITE HERE

If you can SSH to the Pi, remove OctoPrint's data folder at ~/.octoprint - that will nuke all the pre-existing data. You could do it with rm -rf ~/.octoprint.

1 Like

You could also re-image the SD card. This will also clear things like the SSH keys and really give you a clean system.

1 Like

Perhaps I should have mentioned this. There is a touch screen interface attached to the Pi, re-imaging will blow that away also.
Perhaps there is a way to back up the system's config before re-imaging.

That sounds good.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.