Why lerna publish URL econdes a scoped package name triggering ERR! E404 error - publish

I'm using lerna to automate the publishing of scoped packages in an open source mono repository, Web User Interface Framework, branch FM-423-lerna, using the lerna publish command. This command builds all the packages just fine, but fails with the following messages:
lerna http fetch PUT 404 https://registry.npmjs.org/#anviltech%2fwuf-web-message 393ms
lerna ERR! E404 Not found
Notice that it appears that the package name's slash was replaced with a %2f, leading to an incorrect URL.
I also created a lerna issue
WUF is an open source project. Clone it, navigate to its root folder, and execute the following command to observe the failure:
$ lerna publish from-package --yes --content ./dist
Other lerna commands, such as lerna changed yield the package names correctly:
$ lerna changed
info cli using local version of lerna
lerna notice cli v3.13.1
lerna info versioning independent
lerna info Looking for changed packages since v2.0.0-rc.14
#anviltech/wuf-web-assets
#anviltech/wuf-web-code-sample
#anviltech/wuf-web-message
#anviltech/wuf-ang-configuration
#anviltech/wuf-ang-dashboard
#anviltech/wuf-ang-drawer
#anviltech/wuf-ang-gridster
#anviltech/wuf-ang-layout
#anviltech/wuf-ang-login-animated
#anviltech/wuf-ang-navigation
#anviltech/wuf-ang-smart-table
#anviltech/wuf-ang-utils
lerna success found 12 packages ready to publish
The same is true for other lerna and yarn commands, including yarn publish.
Note: I experimented with bolt and observed the same behavior!
Expected Behavior
lerna does not fail due to the scoped package name change
Observed Behavior
The observed behavior is lerna failure to publish packages:
$ lerna publish from-package --ignore-scripts --yes —skip-git
info cli using local version of lerna
lerna notice cli v3.13.1
lerna info versioning independent
Found 11 packages to publish:
- #anviltech/wuf-web-assets => 2.0.0-rc.18.1
- #anviltech/wuf-web-code-sample => 2.0.0-rc.1.1
- #anviltech/wuf-web-message => 2.0.0-rc.2.1
- #anviltech/wuf-ang-dashboard => 2.0.0-rc.2.1
- #anviltech/wuf-ang-drawer => 2.0.0-rc.3.1
- #anviltech/wuf-ang-gridster => 2.0.0-rc.1.1
- #anviltech/wuf-ang-layout => 2.0.0-rc.9.1
- #anviltech/wuf-ang-login-animated => 2.0.0-rc.3.1
- #anviltech/wuf-ang-navigation => 2.0.0-rc.8.1
- #anviltech/wuf-ang-smart-table => 2.0.0-rc.3.1
- #anviltech/wuf-ang-utils => 2.0.0-rc.1.1
lerna info auto-confirmed
lerna info publish Publishing packages to npm...
lerna info Verifying npm credentials
lerna http fetch GET 200 https://registry.npmjs.org/-/npm/v1/user 105ms
lerna http fetch GET 200 https://registry.npmjs.org/-/org/rodrigo.silveira/package?format=cli 98ms
lerna info lifecycle #anviltech/wuf-web-assets#2.0.0-rc.18.1~prepublish: #anviltech/wuf-web-assets#2.0.0-rc.18.1
lerna info lifecycle #anviltech/wuf-web-code-sample#2.0.0-rc.1.1~prepublish: #anviltech/wuf-web-code-sample#2.0.0-rc.1.1
lerna info lifecycle #anviltech/wuf-web-message#2.0.0-rc.2.1~prepublish: #anviltech/wuf-web-message#2.0.0-rc.2.1
lerna info lifecycle #anviltech/wuf-ang-dashboard#2.0.0-rc.2.1~prepublish: #anviltech/wuf-ang-dashboard#2.0.0-rc.2.1
lerna info lifecycle #anviltech/wuf-ang-drawer#2.0.0-rc.3.1~prepublish: #anviltech/wuf-ang-drawer#2.0.0-rc.3.1
lerna info lifecycle #anviltech/wuf-ang-gridster#2.0.0-rc.1.1~prepublish: #anviltech/wuf-ang-gridster#2.0.0-rc.1.1
lerna info lifecycle #anviltech/wuf-ang-navigation#2.0.0-rc.8.1~prepublish: #anviltech/wuf-ang-navigation#2.0.0-rc.8.1
lerna info lifecycle #anviltech/wuf-ang-utils#2.0.0-rc.1.1~prepublish: #anviltech/wuf-ang-utils#2.0.0-rc.1.1
> #anviltech/wuf-web-assets#2.0.0-rc.18.1 prepublish /Users/rodrigosilveira/projects/wuf/packages/wuf-web-assets
> yarn dist:prep && yarn dist:src && yarn dist:pkg
yarn run v1.15.2
$ rm -rf ./dist && mkdir ./dist
✨ Done in 0.13s.
yarn run v1.15.2
$ cp -r ./assets ./dist
✨ Done in 0.12s.
yarn run v1.15.2
$ cp package.json ./dist
✨ Done in 0.15s.
> #anviltech/wuf-web-code-sample#2.0.0-rc.1.1 prepublish /Users/rodrigosilveira/projects/wuf/packages/wuf-web-code-sample
> yarn packagr && cp package.json ./dist
yarn run v1.15.2
$ yarn build
$ webpack
ts-loader: Using typescript#3.2.4 and /Users/rodrigosilveira/projects/wuf/packages/wuf-web-code-sample/tsconfig.json
Hash: 486160bb3bc2f19d293a
Version: webpack 3.12.0
Time: 3134ms
Asset Size Chunks Chunk Names
wuf-code-sample.js 1.05 MB 0 [emitted] [big] main
wuf-code-sample.d.ts 1.23 kB [emitted]
[2] ./src/wuf-code-sample.ts 7.48 kB {0} [built]
[4] ./src/wuf-code-sample.scss 318 bytes {0} [built]
[5] /Users/rodrigosilveira/projects/wuf/node_modules/css-loader!/Users/rodrigosilveira/projects/wuf/node_modules/sass-loader/lib/loader.js??ref--2-2!./src/wuf-code-sample.scss 892 bytes {0} [built]
+ 191 hidden modules
✨ Done in 4.70s.
... many other packages built
lerna http fetch PUT 404 https://registry.npmjs.org/#anviltech%2fwuf-web-message 393ms
lerna ERR! E404 Not found

I found and fixed the problem. Embarrassingly, I was not an organization member! I wish the error message was more clear.

Related

Mock fails to download disable plugin patterns while building 32bit RPMs: 403 on repository 'local'

I am trying to build a few RPMs for 32 bit Fedora using the SRPM. I tried running Mock with:-
mock -r fedora-32-i386 rebuild src.rpm
It gives me the following error:
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Command failed:
# /usr/bin/dnf --installroot /var/lib/mock/fedora-32-i686-bootstrap/root/ --releasever 32 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk install dnf dnf-plugins-core --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk
local 83 B/s | 199 B 00:02
Errors during downloading metadata for repository 'local':
- Status code: 403 for https://kojipkgs.fedoraproject.org/repos/f32-build/latest/i386/repodata/repomd.xml (IP: 38.145.60.21)
Error: Failed to download metadata for repo 'local': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
I have tried disabling the fastest mirror in the conf file in /etc/dnf, with no luck. Is mock using a different repo file than my current installation? How do I fix this?
Mock is using configs from the directory /etc/mock/ so for fedora-32-i386 it is /etc/mock/fedora-32-i386.cfg This config contains yum config which is used during the installation of the buildroot.
More about Mock's configs: https://rpm-software-management.github.io/mock/configuration

Deploy Flask Application using python 3.7

I follow this guideline to deploy my python application.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-flask.html
I got this bug when use command eb deploy:
2021/09/10 17:26:49.653297 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/
2021/09/10 17:26:49.653315 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/
2021/09/10 17:26:49.656613 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully
2021/09/10 17:26:49.657975 [ERROR] An error occurred during execution of command [app-deploy] - [StageApplication]. Stop running the command. Error: chown /var/app/staging/env/lib/python3.7/collections: no such file or directory
2021/09/10 17:26:49.657984 [INFO] Executing cleanup logic
2021/09/10 17:26:49.658080 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1631294809,"severity":"ERROR"}]}]}
its so annoy because it can not find python 3.7 to run. can anyone give me a hand to by pass this mess?
application.py
# app.py
from flask import Flask
application = Flask(__name__)
#application.route("/")
def hello():
return "Hello World!"
if __name__ == '__main__':
application.run()
requirements.txt
click==7.1.2
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
Werkzeug==1.0.1
This happened to me while following the tutorial as well.
The problem, in my case, was that my virtual environment folder venv was getting swept up in the deploy and breaking it.
I thought that I could put the path in .ebignore to prevent this, but I did not read the .ebignore documentation clearly:
If .ebignore isn't present, but .gitignore is, the EB CLI ignores files specified in .gitignore. If .ebignore is present, the EB CLI doesn't read .gitignore.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html#eb-cli3-ebignore
In my case, I just removed the .ebignore file completely, added a line for venv into my .gitignore file, ran eb deploy again and everything worked.

Failed to deploy Cloud Functions after upgrading to node 14

After bumping the node version on my Firebase project from node 10 to node 14 in my package.json, like so:
...
"engines": {
"node": "14"
},
...
Firebase throws an error whenever I try to deploy a function.
First, I run:
firebase deploy --only functions:foo
Afterwards, the console shows:
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
> lint
> gts lint
version: 14
Running command: npm --prefix "$RESOURCE_DIR" run build
> build
> ttsc
✔ functions: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
✔ functions: required API cloudbuild.googleapis.com is enabled
✔ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing functions directory for uploading...
i functions: packaged functions (257.54 KB) for uploading
i pubsub: ensuring required API pubsub.googleapis.com is enabled...
i scheduler: ensuring required API cloudscheduler.googleapis.com is enabled...
✔ pubsub: required API pubsub.googleapis.com is enabled
✔ scheduler: required API cloudscheduler.googleapis.com is enabled
✔ functions: functions folder uploaded successfully
i functions: updating Node.js 14 function foo(us-central1)...
✔ functions[foo(us-central1)]: Successful upsert schedule operation.
Functions deploy had errors with the following functions:
foo(us-central1)
To try redeploying those functions, run:
firebase deploy --only "functions:foo"
To continue deploying other features (such as database), run:
firebase deploy --except functions
Error: Functions did not deploy properly.
Unfortunately, there's not much logs that I can get from the error:
By running:
firebase deploy --only functions:foo
I get the following error logs:
{"code":3,"message":"Build failed: > sharp#0.28.3 install /workspace/node_modules/sharp\n> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)\n\nsharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.6/libvips-8.10.6-linux-x64.tar.br\n\n> protobufjs#6.10.2 postinstall /workspace/node_modules/protobufjs\n> node scripts/postinstall\n\n\n> functions#undefined prepare /workspace\n> npm run compile\n\n\n> functions# compile /workspace\n> ttsc\n\nsh: 1: ttsc: not found\nnpm ERR! code ELIFECYCLE\nnpm ERR! syscall spawn\nnpm ERR! file sh\nnpm ERR! errno ENOENT\nnpm ERR! functions# compile: ttsc\nnpm ERR! spawn ENOENT\nnpm ERR! \nnpm ERR! Failed at the functions# compile script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /builder/home/.npm/_cacache/_logs/2021-06-06T04_27_25_637Z-debug.log\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! functions#undefined prepare: npm run compile\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the functions#undefined prepare script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! /builder/home/.npm/_logs/2021-06-06T04_27_25_673Z-debug.log; Error ID: beaf8772"}
In addition, my node version is:
node --version
v14.17.0
After looking at the Cloud Build from the Google Cloud Console, I've noticed that the following error:
2021-06-07T03:28:00.714478581ZStep #4 - "builder": src/cloud_functions/userInfo/https/onCall/uploadAvatar.ts(4,19): error TS7016: Could not find a declaration file for module 'sharp'. '/workspace/node_modules/sharp/lib/index.js' implicitly has an 'any' type.
To fix this, I simply added the following code in the tsconfig.json:
{
"compilerOptions": {
"noImplicitAny": false,
...
},
...
}

Can't update to the latest version of cordova-ios

My app, built with Ionic and Cordova, includes the plugin GoogleMaps version 2.6.2 (the most recent), but it has not been loaded on iOS for a month, and Android still works.
I only have taken this product from a colleague and I am a total beginner in terms of Cordova, Ionic and npm. In any case the error is that the plugin is no longer installed (as my console tells me in xCode). When I try to update Cordova-ios to the latest version (ionic cordova platform update ios), I only get the error message
> cordova platform update ios
Using cordova-fetch for cordova-ios#^5.0.0
Failed to fetch platform cordova-ios#^5.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name / version / URL.
Error: npm: Command failed with exit code 1 Error output:
npm WARN # ionic-native / google-maps # 3.10.3 requires a peer of # ionic-native / core # ^ 3.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN # ngx-translate / core # 9.1.1 requires a peer of #angular / core #> = 5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package # types / node is included as both a dev and production dependency.
npm ERR! path /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! code EEXIST
npm ERR! Refusing to delete /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: is outside /path/to/app/node_modules / cordova-ios / node_modules / ios-sim and not a link
npm ERR! File exists: /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! Move it away, and try again.
npm ERR! A complete log of this can be found in:
npm ERR! /path/to/app/.npm/_logs/2019-05-23T06_41_36_667Z-debug.log
[ERROR] An error occurred while running subprocess cordova.
        
        cordova update ios exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
What does that mean exactly? I wanted to uninstall the iOS platform (ionic cordova platform remove ios) and add new ones (cordova platform add ios#5.0.0), but already when I uninstall I get the following error:
ionic cordova platform remove ios
> cordova platform remove ios --save
Removing ios from cordova.platforms array in package.json
Error: npm: Command failed with exit code 1 Error output:
npm WARN #ionic-native/google-maps#3.10.3 requires a peer of #ionic-native/core#^3.6.0 but none is installed. You must install peer dependencies yourself.
npm WARN #ngx-translate/core#9.1.1 requires a peer of #angular/core#>=5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package #types/node is included as both a dev and production dependency.
npm ERR! path /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! code EEXIST
npm ERR! Refusing to delete /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: is outside /path/to/app/node_modules/cordova-ios/node_modules/ios-sim and not a link
npm ERR! File exists: /path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! /path/to/app/.npm/_logs/2019-05-23T07_05_52_055Z-debug.log
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/superspawn.js:125:23)
at ChildProcess.emit (events.js:196:13)
at maybeClose (internal/child_process.js:1011:16)
at Socket.<anonymous> (internal/child_process.js:416:11)
at Socket.emit (events.js:196:13)
at Pipe.<anonymous> (net.js:586:12) {
stderr: 'npm WARN #ionic-native/google-maps#3.10.3 requires a peer of ' +
'#ionic-native/core#^3.6.0 but none is installed. You must install peer ' +
'dependencies yourself.\nnpm WARN #ngx-translate/core#9.1.1 requires a ' +
'peer of #angular/core#>=5.0.0 but none is installed. You must install ' +
'peer dependencies yourself.\nnpm WARN The package #types/node is ' +
'included as both a dev and production dependency.\n\nnpm ERR! path ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim\n' +
'npm ERR! code EEXIST\nnpm ERR! Refusing to delete ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim: ' +
'is outside ' +
'/path/to/app/node_modules/cordova-ios/node_modules/ios-sim ' +
'and not a link\nnpm ERR! File exists: ' +
'/path/to/app/node_modules/cordova-ios/node_modules/.bin/ios-sim\n' +
'npm ERR! Move it away, and try again.\n\nnpm ERR! A complete log of this ' +
'run can be found in:\nnpm ERR! ' +
'/path/to/app/.npm/_logs/2019-05-23T07_05_52_055Z-debug.log\n',
code: 1
}
[ERROR] An error occurred while running subprocess cordova.
cordova platform remove ios --save exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I have installed the following plugins:
> cordova plugin ls
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.11.1 "PushPlugin"
What exactly do I have to do to update cordova-ios to the latest version? What else do you need for information that I could give you? My Mac already has the latest operating system.
EDIT:
I ran rm -Rf platforms / node_modules / && npm install && ionic cordova platform add ios # latest and now I get the following output on the console.
> fsevents#1.2.9 install / path / to / app / node_modules / fsevents
> node install
node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/path/to/app/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node" is installed via remote
> node-sass#4.12.0 install / path / to / app / node_modules / node-sat
> node scripts / install.js
Cached binary found at /path/to/app/.npm/node-sass/4.12.0/darwin-x64-72_binding.node
> uglifyjs-webpack-plugin#0.4.6 postinstall / path / to / app / node_modules / uglifyjs-webpack-plugin
> node lib / post_install.js
> node-sass#4.12.0 postinstall / path / to / app / node_modules / node-sass
> node scripts / build.js
Binary found at /path/to/app/node_modules/node-sass/vendor/darwin-x64-72/binding.node
Testing binary
Binary is fine
npm WARN The package # types / node is included as both a dev and production dependency.
added 1330 packages from 1442 contributors in 63.504s
> cordova platform add ios # latest --save
Using cordova-fetch for cordova-ios # latest
Adding ios project ...
Creating Cordova project for the iOS platform:
Path: platforms / ios
Package: com.gpsno
Name: GPS-No.com
iOS project created with cordova-ios#5.0.1
Installing "cordova-plugin-datepicker" for ios
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-geolocation" for ios
Installing "cordova-plugin-googlemaps" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
Running command: pod install --verbose
      Official document https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/v2.6.0/README.md Please consider buying beer for us 🍺 https://github.com/mapsplugin/ cordova-plugin-google maps # buy-us-a-beer
    
Installing "cordova-plugin-ionic-webview" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
Installing "cordova-plugin-whitelist" for ios
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
    at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
    at module.exports (/path/to/app/plugins/cordova-sqlite-storage/scripts/beforePluginInstall.js:13:21)
    at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
    at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
    at processTicksAndRejections (internal / process / task_queues.js: 89: 5)
Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
[ERROR] An error occurred while running subprocess cordova.
        
        cordova platform add ios # latest --save exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.
It looks like everything had worked out. Do I have to worry about the message
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
If so what can I do or remove?
How can I solve the problem
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
Installing "cordova-sqlite-storage" for ios
Failed to install 'cordova-sqlite-storage': CordovaError: Using "requireCordovaModule" to load non-cordova module "q" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
This is because you have cordova#9.0.0 CLI installed which removed support for use of requireCordovaModule by 3rd party plugins, but you have an old version of cordova-sqlite-storage plugin installed which makes use of requireCordovaModule. So you need to update your version of cordova-sqlite-storage plugin:
cordova plugin rm cordova-sqlite-storage && cordova plugin add cordova-sqlite-storage#latest
cordova-plugin-googlemaps depends on GoogleMaps # ~> 2.7.0, which conflicts with another plugin. GoogleMaps # ~> 3.1.0 is already installed and was not overwritten.
Again probably due to an outdated version of cordova-plugin-googlemaps so update it:
cordova plugin rm cordova-plugin-googlemaps --nosave && cordova plugin add cordova-plugin-googlemaps#latest
Note the use of --nosave option when removing the plugin to preserve any plugin variables containing API keys.
You should also check and update the other plugins in your project. An easy way to do this is using the cordova-check-plugins tool:
npm install -g cordova-check-plugins
cordova-check-plugins --unconstrain-versions --update=auto
# or --update=interactive for interactive update process
Disclaimer: I am the author of cordova-check-plugins
Be aware when updating plugins that major version updates may contain breaking changes to APIs which your app makes use of, so you should be aware of this:
checkout the changelog or commit history of plugins for which you are updating the major version and make any necessary API changes in your app.

ejabberd 15.07: no sasl log file anymore

I compiled ejabberd 15.07 (make install, using a prefix for destination).
I am under Linux Mint 16 (based on Ubuntu 13.10) with the distro's erlang package (version R16B01).
I also tested on Ubuntu 12.04 using Erlang OTP 18.0 (erlang compiled myself and ejabberd compiled using --with-erlang, distro's packages are not installed).
ejabberd works perfectly fine in both environments except that the erlang.log file is not created, basically no erlang SASL logs at all.
I upgraded from distro's ejabberd v2.1.10 where that file used to contain a bunch of supervisor logs or component crash/restarts.
Looking at ejabberdctl script, it actually does set the sasl_error_logger file like it always did in the past (e.g. in versions 2.x).
If I do
gperrot#tristan ~/apps/ejabberd/sbin $ su -c 'erl -sasl sasl_error_logger \{file,\"/home/gperrot/apps/ejabberd/var/log/ejabberd/erlang.log\"\}'
Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
Eshell V5.10.2 (abort with ^G)
1> application:start(sasl).
ok
I can get a erlang.log file created with some content.
I used bash -x ejabberdctl start to check the command it uses:
sh -c '/usr/bin/erl -sname ejabberd#localhost -noinput -detached -pa /home/gperrot/apps/ejabberd/lib/ejabberd/ebin -mnesia dir "\"/home/gperrot/apps/ejabberd/var/lib/ejabberd\"" -ejabberd log_rate_limit 100 log_rotate_size 10485760 log_rotate_count 1 log_rotate_date '\''""'\'' -s ejabberd -sasl sasl_error_logger \{file,\"/home/gperrot/apps/ejabberd/var/log/ejabberd/erlang.log\"\} +K true -smp auto +P 250000 start ""'
File path is set properly, same user running, same file permissions.
I don't understand why I get no erlang.log file managed by ejabberd.
SASL is correctly started:
gperrot#tristan ~/apps/ejabberd/sbin $ ejabberdctl debug
(ejabberd#localhost)1> application:start(sasl).
{error,{already_started,sasl}}
And in ejabberd.log I also get
2015-09-04 17:29:51.252 [info] <0.7.0> Application sasl started on node ejabberd#localhost
But not erlang.log file.
Any idea why?