After update "@ionic/storage": "2.1.3", to"@ionic/storage": "2.2.0" App not working only when user update the app
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- sqlite, typescript
- Lĩnh vực
- databases, mobile-dev
Hướng nghiên cứu
Bắt đầu với commit được tham chiếu và đường dẫn lỗi của SQLitePlugin.js được hiển thị trong log. Tái hiện việc nâng cấp ứng dụng từ @ionic/storage 2.1.3 lên 2.2.0 bằng cách sử dụng một cơ sở dữ liệu hiện có, sau đó xác định xem cơ sở dữ liệu đã lưu có còn mở được hay không; hoàn tất khi các bản cài đặt đã nâng cấp mở được và giữ lại dữ liệu của chúng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Reproduce Description :
We already have an application on AppStore/play store with app version 1.0.0 after we update dependency from "@ionic/storage": "2.1.3", to "@ionic/storage": "2.2.0" and push with version 1.1.0 to AppStore/play store application works only when user installs fresh but when they try to update app then the app will be stuck.
We can not tested upgrade scenario before send to production can anyone suggest how can I solve this issue?
"@ionic/storage": "2.1.3" works
"@ionic/storage": "2.2.0" not works on upgrade scenario.
Ref : https://github.com/ionic-team/ionic-storage/commit/2e888c52a17b8702324ffc2531369fe6e8bb7bb5
Error LOGs:
"OPEN database: _ionicstorage", source: http://localhost/plugins/cordova-sqlcipher-adapter/www/SQLitePlugin.js (175)
"new transaction is queued, waiting for open operation to finish", source: http://localhost/plugins/cordova-sqlcipher-adapter/www/SQLitePlugin.js (106)
D/SERVER: Handling local request: http://localhost/assets/icon/favicon.ico
E/SQLitePlugin: unexpected error, stopping db thread
net.sqlcipher.database.SQLiteException: file is not a database: , while compiling: select count(*) from sqlite_master;
at net.sqlcipher.database.SQLiteCompiledSql.native_compile(Native Method)
at net.sqlcipher.database.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:89)
at net.sqlcipher.database.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:62)
at net.sqlcipher.database.SQLiteProgram.<init>(SQLiteProgram.java:91)
at net.sqlcipher.database.SQLiteQuery.<init>(SQLiteQuery.java:48)
at net.sqlcipher.database.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:60)
at net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:2016)
at net.sqlcipher.database.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1902)
at net.sqlcipher.database.SQLiteDatabase.keyDatabase(SQLiteDatabase.java:2669)
at net.sqlcipher.database.SQLiteDatabase.openDatabaseInternal(SQLiteDatabase.java:2599)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1247)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:1214)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1304)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1292)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1284)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:1329)
at io.sqlc.SQLiteAndroidDatabase.open(SQLiteAndroidDatabase.java:86)
at io.sqlc.SQLitePlugin.openDatabase(SQLitePlugin.java:228)
at io.sqlc.SQLitePlugin.access$000(SQLitePlugin.java:29)
at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:351)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
: [INFO:CONSOLE(197)] "OPEN database: _ionicstorage FAILED, aborting any pending transactions", source: http://localhost/plugins/cordova-sqlcipher-adapter/www/SQLitePlugin.js (197)
: [INFO:CONSOLE(83)] "Could not open database", source: http://localhost/plugins/cordova-sqlcipher-adapter/www/SQLitePlugin.js (83)
D/CordovaActivity: Paused the activity.
- Ngôn ngữ chính
- TypeScript
- Star
- 455
- Fork
- 97
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ionic-team/ionic-storage
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/ionic-storage#326 · 1 bình luận ·
-
CREATE YOUR OWN LOCALSTORAGEĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
ionic-team/ionic-storage#325 · 2 bình luận ·
-
indexeddb issue on iOS 18+Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/ionic-storage#324 · 4 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
ionic-team/ionic-storage#323 · 2 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ionic-team/ionic-storage#322 · 1 bình luận · 8 reaction ·
Tất cả issue của ionic-team/ionic-storage
Issue tương tự
-
afk-ok area:data-quality importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
enorm-labs/event-junkie#3301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
one-zero-eight/apply-bot#39 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bigbluebutton/bbb-ui-components-react#108 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: app type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ExpidetGames/code-reviewer#308 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày