Build breaks when using cordova-sqlite-storage

  • 3
  • Problem
  • Updated 4 years ago
I'm getting this error now. The same zip file worked monday. I bet the problem is on your side. The problem is the same both for iOS and Android

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage" via npm Installing "cordova-sqlite-storage" at "1.4.1" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':Error: Uh oh! "/private/tmp/gimlet/70256508913260/2067507/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found! at Object.module.exports.common.copyFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:38:40) at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:69:16) at installHelper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:55:16) at module.exports.source-file.install (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:147:13) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:662:27 at Object.ActionStack.process (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25) at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:262:20) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:602:6) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:391:24 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) Uh oh! "/private/tmp/gimlet/70256508913260/2067507/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found!
Photo of Thomas Høgh Mouritsen

Thomas Høgh Mouritsen

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 3
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I wouldn't bet on it, for the time being.
Perhaps you also need
https://www.npmjs.com/package/cordova...

Also, did you read this in the plugin's docs?
A recent version of the Cordova CLI (such as 6.1.1) is recommended. Cordova versions older than 6.0.0 are missing the cordova-ios@4.0.0 security fixes. Use of other systems such as PhoneGap CLI, PhoneGap Build, or plugman is not tested and no longer supported.

So, you should use PGB cli-6.1.0 (or at least try it, although it is "no longer supported")
Did you?

(btw: version 1.4.1 of that plugin was published exactly 2 hours ago. You may want to try a previous version, too).
Photo of James Inman

James Inman

  • 17 Posts
  • 1 Reply Like
I'm getting this error. The app was building successfully yesterday:

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage" via npm Installing "cordova-sqlite-storage" at "1.4.1" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':Error: Uh oh! "/private/tmp/gimlet/1830132/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found! at Object.module.exports.common.copyFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:38:40) at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:69:16) at installHelper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:55:16) at module.exports.source-file.install (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:147:13) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:662:27 at Object.ActionStack.process (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25) at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:262:20) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:602:6) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:391:24 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) Uh oh! "/private/tmp/gimlet/1830132/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
The app was building successfully yesterday:
Wouldn't be a very bad idea to read the thread first, before adding your own post.
One hour ago, I wrote:

version 1.4.1 of that plugin was published exactly 2 hours ago. You may want to try a previous version, too
Photo of James Inman

James Inman

  • 17 Posts
  • 1 Reply Like
That's fine, but my config.xml isn't version specific:

If this has broken because of it not being able to reference the plugin update, that's a PhoneGap Build issue and needs looking into, and you'd think it might be useful to have as much information as possible when trying to fix the issue, hence posting the error message. If recently released updates can't be incorporated, there should be documentation explaining that - and a more explanatory error message.

I'll try lock this to a previous version now and see if that will build.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If this has broken because of it not being able to reference the plugin update, that's a PhoneGap Build issue and needs looking into
Why would it be a Phonegap Build issue? This is about a third party plugin, which you decided to include.

Also, the plugin author clearly states:

A recent version of the Cordova CLI (such as 6.1.1) is recommended. Cordova versions older than 6.0.0 are missing the cordova-ios@4.0.0 security fixes. Use of other systems such as PhoneGap CLI, PhoneGap Build, or plugman is not tested and no longer supported.
Photo of James Inman

James Inman

  • 17 Posts
  • 1 Reply Like
Here's the error with the following config.xml line. It looks like I might need to do something else to make it pick up 1.4.0, as it's still referring to 1.4.1?

Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage@~1.4.0" via npm Installing "cordova-sqlite-storage" at "1.4.1" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':Error: Uh oh! "/private/tmp/gimlet/1830132/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found! at Object.module.exports.common.copyFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:38:40) at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/common.js:69:16) at installHelper (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:55:16) at module.exports.source-file.install (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/platforms/ios.js:147:13) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:662:27 at Object.ActionStack.process (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25) at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/platforms/PlatformApiPoly.js:262:20) at handleInstall (/usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:602:6) at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:391:24 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) Uh oh! "/private/tmp/gimlet/1830132/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/sqlite3.c" not found!
Photo of James Inman

James Inman

  • 17 Posts
  • 1 Reply Like
For anyone else who has this issue, I've raised it on GitHub here:

https://github.com/litehelpers/Cordov...

It does look like this plugin will no longer support PhoneGap Build so an alternative may need to be used. If you do need to use the plugin you can lock to a version <= 1.2.1.
Photo of Julian Bonillo

Julian Bonillo

  • 1 Post
  • 0 Reply Likes
Thanks for your help James