Pouchdb - Open database failed on android 12 - ionic-framework

I have a project of ionic 5 with capacitor and when I try to open pouchdb database with:
let pdb = new PouchDB('msg.db', {
adapter: 'cordova-sqlite',
location: 'default',
revs_limit: 1,
auto_compaction: true
});
It failed with the following logs:
pouchdb:adapter Picked adapter: +0ms cordova-sqlite
my-groups:6463 OPEN database: msg.db
my-groups:6394 new transaction is queued, waiting for open operation to finish
my-groups:6485 OPEN database: msg.db FAILED, aborting any pending transactions
my-groups:6371 Could not open database
index-browser.es.js:451 WebSQL threw an error Error: Invalid database handle
at newSQLError (my-groups:6314:18)
at SQLitePlugin.abortAllPendingTransactions (my-groups:6446:23)
at my-groups:6490:17
at Object.callbackFromNative (my-groups:1224:46)
at <anonymous>:1:9
at DbService.createPouchDB (db.service.ts:40:5)
at new PchatService (pchat.service.ts:43:33)
at Object.PchatService_Factory [as factory] (ɵfac.js? [sm]:1:1)
at R3Injector.hydrate (core.js:11452:1)
at R3Injector.get (core.js:11272:1)
It happens on android 12 (maybe on 11 too) but not on android 10.
Any idea how to fix it?

Thanks to #RamblinRose and #MishaMashina comments, I found that, upgrade cordova-sqlite-storage plugin to version 6.0.0, solved the issue

Related

go error plugin when running heroku login on windows 10

I just downloaded and updated Heroku, and then ran
> heroku login
in my PowerShell, but got the following error:
(node:1496) [UNKNOWN] Error Plugin: heroku: UNKNOWN: unknown error, open 'U:\_netrc'
Error occurred during reading netrc file: U:\_netrc
module: #oclif/config#1.13.2
task: runHook prerun
plugin: heroku
root: C:\Users\<myusername>\AppData\Local\heroku\client\7.59.2
See more details with DEBUG=*
Error: UNKNOWN: unknown error, open 'U:/_netrc'
I couldn't find much information about the error message, and would appreciate any insights or suggestions. Thank you!

ERROR: connection with gpfdist failed ; error code = 4 (Interrupted system call);

Recently we did upgrade from GPDB 4.3 to GPDB 6.x, now I'm testing the new version , I got the error below when I'm reading from external table, I'm stuck and I can't find out a solution:
ERROR: connection with gpfdist failed for "gpfdist://XXX.XXX.XXX.XXX:8090//REFILL/.gz", effective url: "http://XXX.XXX.XXX.XXX:8090//REFILL/.gz": error code = 4 (Interrupted system call); (seg0 slice1 xxx.xx.xx.x:6000 pid=752074)
SQL state: 08006
It seems with the new upgrade the following settings might have changed.
GPFdist path.
Check the port on which gpfdist is running.
It seems you have not specified file name correctly. You just specified .gz

Getting INSTALL_FAILED_UPDATE_INCOMPATIBLE error

Appium Server version: 1.7.1
OS: Windows 8
While running the code I got
org.openqa.selenium.WebDriverException:
An unknown server-side error occurred while processing the command.
Original error:
Error executing adbExec.
Original error:
'Command 'D\:\\Android\\android-sdk\\platform-tools\\adb.exe -P 8080 -s ------ install C\:\\Users\\resi\\AppData\\Local\\Programs\\appium-desktop\\resources\\app\\node_modules\\appium\\node_modules\\appium-unlock \\bin\\unlock_apk-debug.apk' exited with code 1';
Stderr: 'Failed to install C:\Users\resi\AppData\Local\Programs\appium-desktop \resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk:
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE:
Package io.appium.unlock signatures do not match the previously installed version; ignoring!]'; Code: '1'
error and Appium Setting page is opened and instant closed in real Android device instead of opening app (.apk file)
You need to cleanup the device you are using:
Go to Settings -> Apps
Delete you application under test using Uninstall for all users menu
Delete Appium Settings app
Restart your test and it should work

start a new project in IONIC error

i want to start a new project in IONIC with this command "ionic start myApps tabs" but i get this error :
[INFO] Fetching app base (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz) × Downloading - failed! Error: unable to verify the first certificate at Error (native) at TLSSocket. (_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
please help me to solve it
Be sure that you have the latest node, cordova and ionic cli updates.
Try to stop all server instances. I mean stop the localhost:8080 server.

Derby app created using 'derby new test' not working

I've installed derbyjs using npm install -g derby and then created a test app using derby new test.
Then i started the app using node server.js and I got the following output:
info - socket.io started
Starting cluster with 1 workers in undefined mode
`kill -s SIGUSR2 7161` to force cluster reload
Go to: http://localhost:3000/
info - socket.io started
So I tried to request http://localhost:3000/, but the site does not finish loading and I get the following exception:
TEMPLATE ERROR
Error: Model mutation performed after bundling for clientId: 79f4a9f3-25fc-438d-b9f4-a450dccf9566
at Model.errorOnCommit [as _commit] (/web/derby/test/node_modules/derby/node_modules/racer/lib/bundle/bundle.Model.js:64:9)
at /web/derby/test/node_modules/derby/node_modules/racer/lib/txns/txns.Model.js:120:15
at next (/web/derby/test/node_modules/derby/node_modules/racer/lib/middleware.js:7:26)
at /web/derby/test/node_modules/derby/node_modules/racer/lib/txns/txns.Model.js:107:16
at next (/web/derby/test/node_modules/derby/node_modules/racer/lib/middleware.js:7:26)
at /web/derby/test/node_modules/derby/node_modules/racer/lib/txns/txns.Model.js:101:16
at next (/web/derby/test/node_modules/derby/node_modules/racer/lib/middleware.js:7:26)
at /web/derby/test/node_modules/derby/node_modules/racer/lib/txns/txns.Model.js:92:16
at next (/web/derby/test/node_modules/derby/node_modules/racer/lib/middleware.js:7:26)
at Object.run (/web/derby/test/node_modules/derby/node_modules/racer/lib/middleware.js:10:12)
events.js:68
throw arguments[1]; // Unhandled 'error' event
^
Error: Cannot write after end
at Gzip.write (zlib.js:311:31)
at ServerResponse.res.write (/web/derby/test/node_modules/express/node_modules/connect/lib/middleware/compress.js:82:18)
at Object.View._render (/web/derby/test/node_modules/derby/lib/View.server.js:337:9)
at /web/derby/test/node_modules/derby/lib/View.server.js:276:10
at Array.2 (/web/derby/test/node_modules/derby/lib/View.server.js:300:5)
at Object.Promise.resolve (/web/derby/test/node_modules/derby/node_modules/racer/lib/util/Promise.js:21:19)
at /web/derby/test/node_modules/derby/lib/View.server.js:136:17
at /web/derby/test/node_modules/derby/lib/files.js:224:7
at Object.oncomplete (fs.js:308:15)
at process._makeCallback (node.js:248:20)
I have absolutely no idea how I can get it running... Is it a bug, or am I doing something wrong?
Update
I've created a bug report on the derby repository: https://github.com/codeparty/derby/issues/170