[Camera Plugin] Error generate mobile app with Camera Plugin

[Camera Plugin] Error generate mobile app with Camera Plugin

  
Forge Component
(10)
Published on 26 Sep (4 weeks ago) by OutSystems R&D
10 votes
Published on 26 Sep (4 weeks ago) by OutSystems R&D

Hey Guys,

I Tried release a new version of my Mobile app on enterprise environment, and occurs an error.

I Check the dependencies os the Camera plugin, and try again, but still the same.

So I tried on my personal environment and the same error has occured, could you please help me?

Message when try generate app for android:

"The following errors have occurred:• In Android on 2018-06-26 at 18:31:14 - Error fetching Cordova plugin: https://github.com/OutSystems/cordova-plugin-camera."

@Marcel

Did you take a look at the last generation log in Service Center?

Something there catching your eye?

João Heleno wrote:

@Marcel

Did you take a look at the last generation log in Service Center?

Something there catching your eye?


João, 

Check below...


"...

[2018-06-26T21:28:38.861Z] [INFO] Plugin Action: add
[2018-06-26T21:28:40.858Z] [INFO] Plugin Id: https://github.com/RodrigoSC/cordova-plugin-fastrde-checkgps
[2018-06-26T21:28:40.858Z] [INFO] Plugin Action: add
[2018-06-26T21:28:43.602Z] [ERROR]
You have been opted out of telemetry. To change this, run: cordova telemetry on.
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "https://github.com/OutSystems/cordova-plugin-camera#2.3.1.OS"
Fetching plugin "https://github.com/OutSystems/cordova-plugin-camera" via git clone
Running command: git clone https://github.com/OutSystems/cordova-plugin-camera /tmp/git/1530048511135
Command finished with error code 128: git clone,https://github.com/OutSystems/cordova-plugin-camera,/tmp/git/1530048511135
Error: CordovaError: Failed to fetch plugin https://github.com/OutSystems/cordova-plugin-camera via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: git: Command failed with exit code 128 Error output:
Cloning into '/tmp/git/1530048511135'...
fatal: fsync error on '/tmp/git/1530048511135/.git/objects/pack/tmp_idx_9agCCD': Input/output error
fatal: index-pack failed
    at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:103:33
    at _rejected (/usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:864:24)
    at /usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:890:30
    at Promise.when (/usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:1142:31)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:808:41)
    at /usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:624:44
    at runSingle (/usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:137:13)
    at flush (/usr/lib/node_modules/cordova/node_modules/cordova-common/node_modules/q/q.js:125:13)
    at nextTickCallbackWith0Args (node.js:489:9)
    at process._tickCallback (node.js:418:13)

[2018-06-26T21:28:43.602Z] [ERROR] Build failed with the following error: Error fetching Cordova plugin: https://github.com/OutSystems/cordova-plugin-camera.
[2018-06-26T21:28:43.603Z] [INFO] Remove debug/release signing properties
[2018-06-26T21:28:43.603Z] [INFO] Zipping application source...
[2018-06-26T21:28:47.887Z] [INFO] Application was not successfully generated!
[2018-06-26T21:28:47.888Z] [INFO] Execution time: 41535ms

..."

thats strange because this plugin was working on at my project a long time, so yesterday happen this kind of error

Thanks Marcel.

I'll escalate it to the OutSystems engineers.

Hello Marcel.

Can you generate the app again and check if you still get the error? Being a supported plugin, no breaking changes should have been introduced. It's probably a transient problem in the Mobile Apps Build Service.


Thanks

João Heleno wrote:

Thanks Marcel.

I'll escalate it to the OutSystems engineers.

João, Tks

I Would like to comment, that I also try release a new version for Android and iOS with the same error.

  • Acess the Plugin on Git across web was sucessfull
  • Made a Git clone on my desktop and was sucessfull without using service studio
  • On personal enviroment, I change the extensibility configurations the tag version for 2.3.2 and 2.3.1, and try to publish and generate, algo come with errors.
  • Attach the iOSBuildLog from company enviroment



Solution

Hello Marcel.

Tag 2.3.2.OS does not exist (source). The Camera Plugin currently uses 2.3.2-OS .

Thanks

Solution

César Afonso wrote:

Hello Marcel.

Can you generate the app again and check if you still get the error? Being a supported plugin, no breaking changes should have been introduced. It's probably a transient problem in the Mobile Apps Build Service.


Thanks


César,

The errors continues the same, I try in different enviroments

I'm using the version 10.0.807.0 from Service Studio and Platform Server is 10.0.710

Hello, Marcel,

Have you refreshed the references on your mobile app, after you changed the plugin's repository to match the "2.3.2-OS" tag?

Best regards,

Carlos Simões

César Afonso wrote:

Hello Marcel.

Tag 2.3.2.OS does not exist (source). The Camera Plugin currently uses 2.3.2-OS .

Thanks


César, on the company environment was not update to last version of plugin camera, so I changed that.
If you may check the git hub the tag for "2.3.1.OS" different from new version "2.3.2-OS". 

Did work man


Tks