malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 59 forks source link

Unable to Initialize Database on Android #239

Open impatman opened 3 years ago

impatman commented 3 years ago

Describe the bug Running Octoprint on an Android phone using octo4a. When Octoprint restarts after installing Filament Manager, going to the FM settings gives the "Still initializing check the logs" error. It fails specifically when trying to create a Lock.

Steps to reproduce

  1. Install and set up octo4a on an android device
  2. Install Filament Manager
  3. Restart Octoprint
  4. Attempt to do anything in Filament Manager

Expected behavior I expect to be able edit the settings of Filament Manager

Did the same happen when all other 3rd party plugins are disabled? Yes

Log file octoprint (15).log

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Direct link to code line causing the issue

After doing some preliminary research on my own it seems multiprocessing tries to create files in /dev which is unavailable on android. I've played around a bit with rooting my device and changing permissions on /dev and still haven't had any luck.

jaavalli commented 2 years ago

I have the same issue with this as well.