Skip to content

1.4.0 Lost all old DB after update and can't add new ones. #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SM-26 opened this issue May 24, 2021 · 4 comments
Closed

1.4.0 Lost all old DB after update and can't add new ones. #164

SM-26 opened this issue May 24, 2021 · 4 comments
Labels

Comments

@SM-26
Copy link

SM-26 commented May 24, 2021

After the new update
I've lost all of my old data, and now when I try to add a new spool
I'm getting this error
image

Here is what I've tried to enter
image

In addition, when I open the material tab, it's coming blank
image

I've also tried to reset all of the setting to no avail
image

Full log is here
octoprint (7).log

This bug stops me from printing!
so I must disable the plugin for now.

Late edit:
it seems to happened before
#109

pi@octopi:~/.octoprint/data/SpoolManager $ sqlite3 spoolmanager.db
SQLite version 3.27.2 2019-02-25 16:06:06
Enter ".help" for usage hints.
sqlite> 

SELECT * FROM spo_spoolmodel ;
1|2020-09-09 05:26:27.593795||0|Galaxy Black|Prusa|PLA|1.24|1.75||black|#000000|||||1150.0|150.0|1150.0|0.0|325000|325000||2020-09-10 18:22:00|2020-10-01 13:41:00||||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
2|2020-09-09 05:27:46.632981|15|0|Pearl white|3D Factory|PLA|1.24|1.75|0.04|white|#ffffff|||||1200.0|200.0|1138.53279566459|180.0|325000|264083||2020-09-16 18:32:00|2021-05-23 17:51:26.028547|||95.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
3|2020-09-09 05:28:37.441118||0|Spider|Spider|PLA|1.24|1.75|0.03|orange|#ffa500|||||1192.0|192.0|1192.0|0.0|325000|325000||2020-09-09 05:37:00|2020-09-27 21:10:00|||60.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
4|2020-09-09 17:43:49.793797||0|Fillamentum PETG|Fillamentum|PETG|1.27|1.75|0.05|black|#000000|||||1230.0|230.0|1033.9|196.1|3250000|338439||2020-09-19 13:52:00|2020-10-11 11:57:00|Rav Mimad|2020-09-09||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
5|2020-09-15 21:03:57.538394||0|Glow in the dark|OPY|PLA|1.24|1.75|0.8|blue|#0000ff|||||33.0|0.0|7.2|25.8|10000|2398||2020-09-15 21:24:00|2020-09-16 17:52:00|Aliexpress|2020-08-24||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
6|2020-09-15 21:05:13.205901||0|Wood|OPY|PLA|1.24|1.75|0.8|burlywood|#deb887|||||15.0||3.6|11.4|5000|1211||2020-10-02 14:30:00|2020-10-02 14:52:00|OPY|2020-08-24||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
7|2020-09-15 21:06:14.875129|6|0|Marble|OPY|PLA|1.24|1.75|0.8|lightgrey|#d3d3d3|||||32.9|0.0|22.7070796752431|29.3|10000|7614||2020-10-02 15:17:00|2021-02-27 18:52:43.363969||2020-08-24||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
8|2020-10-21 15:28:59.722621||0|Purple|3D Factory|PLA|1.24|1.75|0.07|purple|#800080|||||1150.0|150.0|1013.4|136.6|3250000|339774||2020-10-21 15:28:00|2020-10-25 14:45:00|3D Factory|2020-10-21|95.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
9|2021-01-18 15:56:34.278328|3|0|Pink|eSun|PLA+|1.25|1.74|0.05|pink|#ffc0cb|||||1000.0|256.0|990.0|10.0|295299|295299||2021-01-18 15:57:00|2021-01-24 12:24:00|Spider||108.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
10|2021-01-18 15:58:24.495476|2|0|Silk Teal|Spider|PLA|1.24|1.75|0.01|Teal|#1aecff|||||0.0||0.0|0.0|10000|0||||Spider||0.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
11|2021-01-18 19:17:47.790121|9|0|Transparent Red|NorthCube|PLA|1.24|1.75|0.05|red|#ff0000|||||1000.0|220.0|801.726032077458|238.0|0|13317||2021-01-31 19:25:25.041041|2021-03-02 15:09:25.468792|AliExpress - NorthCube||75.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
12|2021-01-18 19:18:55.987006|12|0|Blue|NorthCube|PLA|1.24|1.75|0.05|blue|#0000ff|||||1000.0|220.0|623.793125119093|498.0|0|40828||2021-01-23 14:20:33.856480|2021-04-07 06:54:24.130199|||75.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>||||1
13|2021-02-05 18:04:24.549001|21|0|Galaxy Black ASA|Prusa|ASA|1.07|1.75|0.016|black|#000000|||||869.0|190.0|566.906501983792|419.0|347000|206736||2021-02-05 18:07:00|2021-05-20 17:24:45.969994|Prusa|2020-12-23|150.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>|2021-02-05 18:04:24.549021|||1
14|2021-02-09 10:45:02.122367|25|0|Black PLA|ADDWorks‎|PLA|1.24|1.75|0.1|black|#000000|||||1000.0|150.0|895.559416333052|350.0|0|112173||2021-02-07 10:43:00|2021-03-21 16:34:05.567296|Alon Diaz Danses|2020-12-25|50.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>|2021-02-09 10:45:02.122381|||1
15|2021-03-28 19:36:47.880182||0|Sampels|Generic|ABS|1.04|||red|#ff0000|||||40.0||0.0|40.0|0|0|||||||₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>|2021-03-28 19:36:47.880209|||1
16|2021-04-07 19:31:28.458905|21|0|Green|3D Factory|PLA|1.24|1.75|0.04|green|#008000||200|55||1000.0|223.0|597.740205318326|1000.0|335300|200403||2021-04-07 20:04:38.868442|2021-05-19 15:48:43.930657|||0.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>|2021-04-07 19:31:28.458924|||1
17|2021-04-14 20:45:51.303418|14|0|WhitePlus|eSun|PLA_plus|1.24|1.75|0.05|white|#ffffff|||||1000.0|223.0|269.209542228815|1000.0|0|90257||2021-04-14 20:59:01.419482|2021-04-20 23:05:33.917849|Alon||0.0|₪|[]|
|{"ops": [{"insert": "\n"}]}|<p><br></p>|2021-04-14 20:45:51.303437|||1

SELECT * FROM spo_pluginmetadatamodel;
1|2020-09-09 05:25:21.253867|databaseSchemeVersion|4||1|

If there is any more info that I could fill in, just tell me how can I help.

@OllisGit
Copy link
Owner

OllisGit commented May 24, 2021

Hi @SM-26,

there is something wrong with the database migration-order. Could you please provide me your database ?
image

Btw. the data is not lost!!!
The old database is here: /home/pi/.octoprint/data/SpoolManager/spoolmanager-backup-20210524-2212.db
But during startup an error occurs and the plugin didn't start well.

@OllisGit OllisGit added status: inProgress I am working on it type: bug Something isn't working labels May 24, 2021
OllisGit added a commit that referenced this issue May 24, 2021
- B #164 migration database scheme from 4-5 was broken (current scheme is version 6)
@OllisGit
Copy link
Owner

Hi @SM-26,

I created a bug-fix version 1.4.1. Please test and give feedback.

Thx, in advance
Olli

@SM-26
Copy link
Author

SM-26 commented May 25, 2021

Yep, 1.4.1 fixed it.
and like you said, all of my all data is back.

Do you still need the DB file?
spoolmanager.zip

In any case, Thank you for you hasted assistance.
one last thing before I close this issue,

a small UI "bug" I found
image
image

We are missing the H in Hide.

@SM-26 SM-26 closed this as completed May 25, 2021
@OllisGit
Copy link
Owner

Thx, for the response. The 'h' bug will be fixed in next release.

OllisGit added a commit that referenced this issue May 25, 2021
- B #164 missing 'h'
- B Ticket PjH 148 wrong weight was picked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants