Closed chrisekelley closed 4 years ago
I got the same error when trying to cordova plugin add cordova-plugin-whitelist --save
When I ran it without --save it worked.
I installed the other missing plugins.
root@e23dd17b84b4:/.tmp-apk# ls -lsa plugins/
total 40
4 drwxr-xr-x 8 root root 4096 Mar 29 14:16 .
4 drwxr-xr-x 24 root root 4096 Mar 29 14:16 ..
4 -rw-r--r-- 1 root root 632 Mar 29 14:16 android.json
4 drwxr-xr-x 3 root root 4096 Mar 29 13:38 cordova-android-support-gradle-release
4 drwxr-xr-x 6 root root 4096 Mar 29 13:38 cordova-hot-code-push-plugin
4 drwxr-xr-x 9 root root 4096 Mar 29 13:38 cordova-plugin-camera
4 drwxr-xr-x 7 root root 4096 Mar 29 14:14 cordova-plugin-file
4 drwxr-xr-x 6 root root 4096 Mar 29 14:13 cordova-plugin-geolocation
4 drwxr-xr-x 4 root root 4096 Mar 29 14:16 cordova-plugin-whitelist
4 -rw-r--r-- 1 root root 1078 Mar 29 14:16 fetch.json
Could it be an issue with using --save
?
Aparently "ETXTBSY is a libc error that's raised when a process tries to modify a currently executing file."
https://github.com/npm/npm/issues/5526
Maybe place a 3 second pause between each cordova add?
I'm doing the install on a smaller AWS instance. Maybe it is running out of resources.
So, you may need to go back into the instance after it's built, cd to /.tmp-apk and check what plugins are installed. If any are missing, manually add them.
Perhaps we could have the install keep executing until it doesn't fail? A while statement in bash that while it returns a bad exit code, keep going. This does carry the risk of ending up in an infinite loop though.
I'm closing this issue; we've resolved it already.
Some plugins install, others throw an error.
While running these commands:
I get errors similar to this for:
But not for cordova-plugin-camera!
What is surprising is that cordova is still able to say it has successfully built the apk!
Here are some listings of the plugins:
This is similar to the issue here: https://github.com/nordnet/cordova-hot-code-push/issues/319