React Native application compile but not load - react-native

I successfully eject from Expo, ran pod install inside the ios folder, then tried to open the app in ios emulator by running npx react-native run-ios. The log states the app successfully compiled but when loading the following error comes up:
2020-02-16 12:03:44.254694-0500 SantiEmpleoMobileApp[16257:151357] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2020-02-16 12:03:44.254877-0500 SantiEmpleoMobileApp[16257:151357] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2020-02-16 12:03:44.397 [info][tid:main][RCTCxxBridge.mm:213] Initializing <RCTCxxBridge: 0x7fda7b609240> (parent: <RCTBridge: 0x6000026f6bc0>, executor: (null))
2020-02-16 12:03:44.399272-0500 SantiEmpleoMobileApp[16257:151357] Initializing <RCTCxxBridge: 0x7fda7b609240> (parent: <RCTBridge: 0x6000026f6bc0>, executor: (null))
2020-02-16 12:03:44.575 [info][tid:main][RCTRootView.m:293] Running application SantiEmpleoMobileApp ({
initialProps = {
};
rootTag = 1;
})
2020-02-16 12:03:44.574862-0500 SantiEmpleoMobileApp[16257:151357] Running application SantiEmpleoMobileApp ({
initialProps = {
};
rootTag = 1;
})
2020-02-16 12:03:44.653278-0500 SantiEmpleoMobileApp[16257:151896] [] nw_socket_handle_socket_event [C4.1:1] Socket SO_ERROR [61: Connection refused]
2020-02-16 12:03:44.655031-0500 SantiEmpleoMobileApp[16257:151896] [] nw_socket_handle_socket_event [C4.2:1] Socket SO_ERROR [61: Connection refused]
2020-02-16 12:03:44.657333-0500 SantiEmpleoMobileApp[16257:151897] [] nw_connection_get_connected_socket [C4] Client called nw_connection_get_connected_socket on unconnected nw_connection
2020-02-16 12:03:44.680 [error][tid:NSOperationQueue 0x600000db7ea0 (QOS: UNSPECIFIED)][RCTCxxBridge.mm:414] Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(SyntaxError: /Users/rey/Desktop/SantiEmpleoMobileApp/screens/JobSummary.js: Unexpected token (13:0)
[0m [90m 11 | [39m [33mPlatform[39m[33m,[39m[0m
[0m [90m 12 | [39m [33mButton[39m[33m,[39m[0m
[0m[31m[1m>[22m[39m[90m 13 | [39m[33m<<[39m[33m<<[39m[33m<<[39m[33m<[39m [33mHEAD[39m[0m
[0m [90m | [39m[31m[1m^[22m[39m[0m
[0m [90m 14 | [39m[33m===[39m[33m===[39m[33m=[39m[0m
[0m [90m 15 | [39m [33mWebView[39m[0m
[0m [90m 16 | [39m[33m>>>[39m[33m>>>[39m[33m>[39m a5e240959854bd4efc85985344bcb06af0c281ef[0m (null))
2020-02-16 12:03:44.680574-0500 SantiEmpleoMobileApp[16257:151903] Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(SyntaxError: /Users/rey/Desktop/SantiEmpleoMobileApp/screens/JobSummary.js: Unexpected token (13:0)
\^[[0m \^[[90m 11 | \^[[39m \^[[33mPlatform\^[[39m\^[[33m,\^[[39m\^[[0m
\^[[0m \^[[90m 12 | \^[[39m \^[[33mButton\^[[39m\^[[33m,\^[[39m\^[[0m
\^[[0m\^[[31m\^[[1m>\^[[22m\^[[39m\^[[90m 13 | \^[[39m\^[[33m<<\^[[39m\^[[33m<<\^[[39m\^[[33m<<\^[[39m\^[[33m<\^[[39m \^[[33mHEAD\^[[39m\^[[0m
\^[[0m \^[[90m | \^[[39m\^[[31m\^[[1m^\^[[22m\^[[39m\^[[0m
\^[[0m \^[[90m 14 | \^[[39m\^[[33m===\^[[39m\^[[33m===\^[[39m\^[[33m=\^[[39m\^[[0m
\^[[0m \^[[90m 15 | \^[[39m \^[[33mWebView\^[[39m\^[[0m
\^[[0m \^[[90m 16 | \^[[39m\^[[33m>>>\^[[39m\^[[33m>>>\^[[39m\^[[33m>\^[[39m a5e240959854bd4efc85985344bcb06af0c281ef\^[[0m (null))

Related

AppLoading errors/issues for expo

SDK version: 44
My problem seems to be that I’m unable to install AppLoading on Expo.
Looking inside the package.json dependencies, I’m not able to find expo-app-loading
It says I have to install it manually by typing: expo install expo-app-loading in the terminal. I've tried doing so but nothing changes and I still can't see expo-app-loading installed in package.json dependencies.
As soon as I import AppLoading from 'expo-app-loading'; I get bombarded by errors that I've copy/pasted below:
Any help on how to solve this issue would be greatly appreciated!
1 | import React from ‘react’;
2 |
3 | import { AppLoadingProps } from ‘./AppLoading.types’;
4 | import NativeAppLoading from ‘./AppLoadingNativeWrapper’;
…/…/…/…/…/node_modules/expo-app-loading/build/AppLoadingNativeWrapper.js:2
Module not found: Can’t resolve ‘react’
1 | import * as SplashScreen from ‘expo-splash-screen’;
2 | import React from ‘react’;
3 |
4 | type Props = {
5 | autoHideSplash?: boolean;
…/…/…/…/…/node_modules/expo-modules-core/build/PermissionsHook.js:1
Module not found: Can’t resolve ‘react’
1 | import { useCallback, useEffect, useRef, useState } from ‘react’;
2 |
3 | import { PermissionResponse } from ‘./PermissionsInterface’;
4 |
C:/Users/Admin/node_modules/expo-modules-core/build/index.js
Module not found: Error: Can’t resolve ‘react-native-web/dist/exports/DeviceEventEmitter’ in ‘C:\Users\Admin\node_modules\expo-modules-core\build’
C:/Users/Admin/node_modules/expo-modules-core/build/EventEmitter.js
Module not found: Error: Can’t resolve ‘react-native-web/dist/exports/NativeEventEmitter’ in ‘C:\Users\Admin\node_modules\expo-modules-core\build’
C:/Users/Admin/node_modules/expo-modules-core/build/Platform.js
Module not found: Error: Can’t resolve ‘react-native-web/dist/exports/Platform’ in ‘C:\Users\Admin\node_modules\expo-modules-core\build’
C:/Users/Admin/node_modules/expo-modules-core/build/EventEmitter.js
Module not found: Error: Can’t resolve ‘react-native-web/dist/exports/Platform’ in ‘C:\Users\Admin\node_modules\expo-modules-core\build’
…/…/…/…/…/node_modules/expo-modules-core/build/SyntheticPlatformEmitter.web.js:5
Module not found: Can’t resolve ‘react-native-web/dist/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter’
3 | * registered in the API layer with NativeEventEmitter.
4 | */
5 | export { default } from ‘react-native-web/dist/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter’;
6 |
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat ‘C:\DumpStack.log.tmp’```

Detox not working [Info.plist does not contain CFBundleShortVersionString]

package.json
"detox": {
"test-runner": "jest",
"configurations": {
"ios.sim": {
"build": "xcodebuild -workspace ios/lamunchies.xcworkspace -scheme lamunchies -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"binaryPath": "ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app",
"type": "ios.simulator",
"name": "iPhone 8"
}
}
}
firstTestSpecs.js
describe('Example', () => {
beforeEach(async () => {
await device.reloadReactNative()
})
it('should have welcome screen', async () => {
await expect(element(by.id('Settings'))).toBeVisible()
})
})
logs
detox[38188] ERROR: [exec.js/EXEC_FAIL, #3] An error was encountered processing the command (domain=NSPOSIXErrorDo
main, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
detox[38188] ERROR: [DetoxExportWrapper.js/DETOX_INIT_ERROR]
{ ChildProcessError: Command failed: /usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/Users/j
ordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
`/usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/Users/jordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"` (exited with error code 22)
at callback (/Users/jordeguevara/Desktop/LAMunchies/node_modules/child-process-promise/lib/index.js:33:27)
at ChildProcess.exithandler (child_process.js:301:5)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
name: 'ChildProcessError',
code: 22,
childProcess:
{ ChildProcess: { [Function: ChildProcess] super_: [Function] },
fork: [Function: fork],
_forkChild: [Function: _forkChild],
exec: [Function: exec],
execFile: [Function: execFile],
spawn: [Function: spawn],
spawnSync: [Function: spawnSync],
execFileSync: [Function: execFileSync],
execSync: [Function: execSync] },
stdout: '',
stderr:
'An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):\nFailed to install the requested application\nThe application\'s Info.plist does not contain CFBundleShortVersionString.\nEnsure your bundle contains a CFBundleShortVersionString.\n' }
Example: should have welcome screen
Example: should have welcome screen [FAIL]
FAIL e2e/firstTest.spec.js (6.516s)
Example
✕ should have welcome screen (4ms)
● Example › should have welcome screen
ChildProcessError: Command failed: /usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/......../ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
`/usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/...../ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"` (exited with error code 22)
at callback (../node_modules/child-process-promise/lib/index.js:33:27)
● Example › should have welcome screen
ReferenceError: device is not defined
1 | describe('Example', () => {
2 | beforeEach(async () => {
> 3 | await device.reloadReactNative()
| ^
4 | })
5 |
6 | it('should have welcome screen', async () => {
at _callee$ (firstTest.spec.js:3:11)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:271:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:97:21)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:45:40)
at invoke (../node_modules/regenerator-runtime/runtime.js:135:20)
at ../node_modules/regenerator-runtime/runtime.js:170:11
at callInvokeWithMethodAndArg (../node_modules/regenerator-runtime/runtime.js:169:16)
at AsyncIterator.enqueue (../node_modules/regenerator-runtime/runtime.js:192:13)
at AsyncIterator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:97:21)
at Object.<anonymous>.exports.async (../node_modules/regenerator-runtime/runtime.js:216:14)
at Object._callee (firstTest.spec.js:2:14)
● Example › should have welcome screen
ReferenceError: element is not defined
4 | })
5 |
> 6 | it('should have welcome screen', async () => {
| ^
7 | await expect(element(by.id('Settings'))).toBeVisible()
8 | })
9 | })
at _callee2$ (firstTest.spec.js:6:36)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:271:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:97:21)
at tryCatch (../node_modules/regenerator-runtime/runtime.js:45:40)
at invoke (../node_modules/regenerator-runtime/runtime.js:135:20)
at ../node_modules/regenerator-runtime/runtime.js:170:11
at callInvokeWithMethodAndArg (../node_modules/regenerator-runtime/runtime.js:169:16)
at AsyncIterator.enqueue (../node_modules/regenerator-runtime/runtime.js:192:13)
at AsyncIterator.prototype.(anonymous function) [as next] (../node_modules/regenerator-runtime/runtime.js:97:21)
at Object.<anonymous>.exports.async (../node_modules/regenerator-runtime/runtime.js:216:14)
at Object._callee2 (firstTest.spec.js:6:36)
detox[38187] ERROR: [cli.js] Error: Command failed: node_modules/.bin/jest --config e2e/config.json '--testNamePat
tern=^((?!:android:).)*$' --maxWorkers 1 "e2e"
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
`/usr/bin/xcrun simctl install 62BBE686-316C-4D6E-9625-E8D21F60CE97 "/Users/jordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"` (exited with error code 22)
at callback (../node_modules/child-process-promise/lib/index.js:33:27)
detox[37766] ERROR: [cli.js] Error: Command failed: node_modules/.bin/jest --config e2e/config.json '--testNamePat
tern=^((?!:android:).)*$' --maxWorkers 1 "e2e"
MacBook-Pro-9:LAMunchies jordeguevara$ detox test
detox[37982] INFO: [test.js] configuration="ios.sim" reportSpecs=true DETOX_START_TIMESTAMP=1579315003125 node_modules/.bin/jest --config e2e/config.json '--testNamePattern=^((?!:android:).)*$' --maxWorkers 1 "e2e"
detox[37983] INFO: [DetoxServer.js] server listening on localhost:55101...
detox[37983] ERROR: [exec.js/EXEC_FAIL, #6] "/usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/
Users/jordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"" f
ailed with code = 22, stdout and stderr:
detox[37983] ERROR: [exec.js/EXEC_FAIL, #6]
detox[37983] ERROR: [exec.js/EXEC_FAIL, #6] An error was encountered processing the command (domain=NSPOSIXErrorDo
main, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
detox[37983] ERROR: [DetoxExportWrapper.js/DETOX_INIT_ERROR]
{ ChildProcessError: Command failed: /usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/Users/j
ordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
`/usr/bin/xcrun simctl install 7FB82147-C9FD-4746-B144-324E07C64D2F "/Users/jordeguevara/Desktop/LAMunchies/ios/build/lamunchies/Build/Products/Debug-iphonesimulator/lamunchies.app"` (exited with error code 22)
at callback (/Users/jordeguevara/Desktop/LAMunchies/node_modules/child-process-promise/lib/index.js:33:27)
at ChildProcess.exithandler (child_process.js:301:5)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
name: 'ChildProcessError',
code: 22,
childProcess:
{ ChildProcess: { [Function: ChildProcess] super_: [Function] },
fork: [Function: fork],
_forkChild: [Function: _forkChild],
exec: [Function: exec],
execFile: [Function: execFile],
spawn: [Function: spawn],
spawnSync: [Function: spawnSync],
execFileSync: [Function: execFileSync],
execSync: [Function: execSync] },
stdout: '',
stderr:
'An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):\nFailed to install the requested application\nThe application\'s Info.plist does not contain CFBundleShortVersionString.\nEnsure your bundle contains a CFBundleShortVersionString.\n' }
I was trying to set up Detox on my reat native project via CLI but ran into some trouble.
I tried adding CFBundleShortVersionString to InfoList but it was already there.
I followed the steps to set up detox in this article : https://blog.expo.io/testing-expo-apps-with-detox-and-react-native-testing-library-7fbdbb82ac87
Any help would be appreciated
So hopefully this helps someone
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
it told me it my CFBundleShortVersionString already it existed but I just changed it to a different number in my Info.plist
and it worked from there

ReferenceError: element is not defined .Facing this issue while I am trying to run test for ios in react native with jest as test runner

should have welcome heading
ReferenceError: element is not defined
5 | });
6 |
7 | it('should have welcome heading', async () => {
| ^
8 | await expect(element(by.id('InitialScreen'))).toBeVisible();
9 | });
10 | });
at _callee2$ (firstTest.spec.js:7:263)
at tryCatch (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:271:22)
at Generator.prototype.(anonymous function) [as next] (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:97:21)
at tryCatch (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:45:40)
at invoke (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:135:20)
at ../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:170:11
at callInvokeWithMethodAndArg (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:169:16)
at AsyncIterator.enqueue (../node_modules/#babel/runtime/node_modules/regenerator-runtime/runtime.js:192:13)
detox[64341] ERROR: [cli.js] Error: Command failed: node_modules/.bin/jest --config=e2e/config.json --maxWorkers=1 '--te
stNamePattern=^((?!:android:).)*$' "./e2e/"
Downgrading to lower version of detox resolved the issue for me.

React native app is stuck at splashscreen

I have one react native app coded with Ignite Red Boilerplate and app sometimes stuck at Launch screen (Splash screen) only. Then I go back to previous commit and start the app again, and it starts working as expected.
To help you to find out the solution:
I am using this splash screen module : React native splash screen
Ignite red comes with one Login Saga and I have added another signup saga, and it was working fine till the time I actual uninstall the app and reinstall it, and then when App get installed, it never pass the splash screen.
I am not seeing any log any where, tried to run it in Xcode as well but no debug log, how ever I can see following things in Simulator system log and I am pasting some things here. Hope some body can help me to decode it.
Feb 16 09:46:11 MAC009s-Mac-mini NyteVibe[1709]: Running application NyteVibe ({
initialProps = {
};
rootTag = 1;
})
Feb 16 09:46:11 MAC009s-Mac-mini NyteVibe[1709]: Running application "NyteVibe" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: undefined is not an object (evaluating 'el.props.component')
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: Unhandled JS Exception: undefined is not an object (evaluating 'el.props.component')
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: action # 09:46:12.030 STARTUP
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: '%c prev state', 'color: #9E9E9E; font-weight: bold', { temperature: { temperature: null, fetching: null, error: null, city: null },
login: { user: null, error: null, fetching: false },
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: —— log end ——
Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 7 Connection has no connected handler
Feb 16 09:46:13 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 8 Connection has no connected handler
Feb 16 09:46:14 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 9 Connection has no connected handler
Feb 16 09:46:16 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 10 Connection has no connected handler
Feb 16 09:46:16 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 11 Connection has no connected handler
Feb 16 09:46:18 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 12 Connection has no connected handler
Feb 16 09:46:20 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 13 Connection has no connected handler
Feb 16 09:46:21 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 14 Connection has no connected handler
Feb 16 09:46:22 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 15 Connection has no connected handler
Feb 16 09:46:24 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 16 Connection has no connected handler
Feb 16 09:46:26 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 17 Connection has no connected handler
Feb 16 09:46:26 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 18 Connection has no connected handler
Feb 16 09:46:28 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 19 Connection has no connected handler
Feb 16 09:46:30 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 20 Connection has no connected handler
Feb 16 09:46:31 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 21 Connection has no connected handler
Feb 16 09:46:32 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 22 Connection has no connected handler
Feb 16 09:46:34 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 23 Connection has no connected handler
Feb 16 09:46:36 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 24 Connection has no connected handler
Feb 16 09:46:36 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 25 Connection has no connected handler
Feb 16 09:46:38 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 26 Connection has no connected handler
Feb 16 09:46:40 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 27 Connection has no connected handler
Feb 16 09:46:41 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 28 Connection has no connected handler
Feb 16 09:46:42 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 29 Connection has no connected handler
As you can see in system log, First 6 entries are my start up actions that are getting fired perfectly. And then this no connected handler.
You have an exception:
undefined is not an object (evaluating 'el.props.component')
Search your project for el.props.component - it's going to be a component which is mounted during start-up more than likely. Either that or you're misusing a 3rd-party component which has that code.

Some SSH Engines do not start in Parallel IPython 2.3.0

I am trying to set up a small IPython cluster (This all worked neatly once upon a time with IPython 0.10.0 [sic!]) over ssh in a private network (no security required): 4 nodes alice, bob, carol, dan, each having 4 CPU cores. The controller runs on carol, and all PCs have Ubuntu 14.10 with IPython 2.3.0 installed. ~/.ipython/profile_default is shared via NFS among all PCs. Due to some internal reasons I cannot use MPI.
Now, if the cluster starts up, I can only see 4 engines. I already increased SSHEngineSetLauncher.delay, but this did not help
I tried to hunt this down and ended with using only carol (host) and trying to start four engines locally via SSH, but only one is actually running.
My ipclusterconfig.py looks like
c = get_config()
c.IPClusterStart.engine_launcher_class = 'SSHEngineSetLauncher'
c.SSHEngineSetLauncher.delay = 10
c.SSHEngineSetLauncher.engines = { 'carol' : 4}#, 'dan' : 4, 'alice' : 4, 'bob' : 4 }
engine.json:
{
"next_id": 4,
"engines": {
"0": "80d135a7-b8f6-435c-930a-0cde15a6feb2",
"1": "b69916c3-87c2-4e09-9284-aefe665ba616",
"2": "f3df3951-5e0b-4694-aa67-7ae66a181551",
"3": "4311705d-03d4-4e48-a7a9-7be47467c439"}}
For reference I add the log files:
=> ipcontroller.log
2015-05-21 07:28:24.442 [IPControllerApp] Hub listening on tcp://127.0.0.1:57360 for registration.
2015-05-21 07:28:24.443 [IPControllerApp] Hub using DB backend: 'NoDB'
2015-05-21 07:28:24.695 [IPControllerApp] hub::created hub
2015-05-21 07:28:24.695 [IPControllerApp] writing connection info to /home/lst3si/.ipython/profile_default/security/ipcontroller-client.json
2015-05-21 07:28:24.695 [IPControllerApp] writing connection info to /home/lst3si/.ipython/profile_default/security/ipcontroller-engine.json
2015-05-21 07:28:24.696 [IPControllerApp] task::using Python leastload Task scheduler
2015-05-21 07:28:24.696 [IPControllerApp] Heartmonitor started
2015-05-21 07:28:24.700 [IPControllerApp] Creating pid file: /home/lst3si/.ipython/profile_default/pid/ipcontroller.pid
2015-05-21 07:28:24.707 [IPControllerApp] client::client '\x00\x91y`\x0c' requested u'connection_request'
2015-05-21 07:28:24.707 [IPControllerApp] client::client ['\x00\x91y`\x0c'] connected
2015-05-21 07:28:26.071 [IPControllerApp] client::client '80d135a7-b8f6-435c-930a-0cde15a6feb2' requested u'registration_request'
2015-05-21 07:28:26.103 [IPControllerApp] WARNING | iopub::IOPub message lacks parent: {'parent_header': {}, 'msg_type': u'status', 'msg_id': u'230d5aa1-c395-4b82-a964-a3062e5550a9', 'content': {u'execution_state': u'starting'}, 'header': {u'date': datetime.datetime(2015, 5, 21, 7, 28, 26, 102954), u'username': u'lst3si', u'session': u'80d135a7-b8f6-435c-930a-0cde15a6feb2', u'msg_id': u'230d5aa1-c395-4b82-a964-a3062e5550a9', u'msg_type': u'status'}, 'buffers': [], 'metadata': {}}
2015-05-21 07:28:30.699 [IPControllerApp] registration::finished registering engine 0:80d135a7-b8f6-435c-930a-0cde15a6feb2
2015-05-21 07:28:30.699 [IPControllerApp] engine::Engine Connected: 0
2015-05-21 07:28:36.071 [IPControllerApp] client::client 'b69916c3-87c2-4e09-9284-aefe665ba616' requested u'registration_request'
2015-05-21 07:28:36.102 [IPControllerApp] WARNING | iopub::IOPub message lacks parent: {'parent_header': {}, 'msg_type': u'status', 'msg_id': u'f74a1f38-f3fb-422f-b4ad-0d1724745c64', 'content': {u'execution_state': u'starting'}, 'header': {u'date': datetime.datetime(2015, 5, 21, 7, 28, 36, 102052), u'username': u'lst3si', u'session': u'b69916c3-87c2-4e09-9284-aefe665ba616', u'msg_id': u'f74a1f38-f3fb-422f-b4ad-0d1724745c64', u'msg_type': u'status'}, 'buffers': [], 'metadata': {}}
2015-05-21 07:28:36.285 [IPControllerApp] client::client '\x00\x91y`\r' requested u'connection_request'
2015-05-21 07:28:36.285 [IPControllerApp] client::client ['\x00\x91y`\r'] connected
2015-05-21 07:28:39.699 [IPControllerApp] registration::finished registering engine 1:b69916c3-87c2-4e09-9284-aefe665ba616
2015-05-21 07:28:39.699 [IPControllerApp] engine::Engine Connected: 1
2015-05-21 07:28:46.143 [IPControllerApp] client::client 'f3df3951-5e0b-4694-aa67-7ae66a181551' requested u'registration_request'
2015-05-21 07:28:46.175 [IPControllerApp] WARNING | iopub::IOPub message lacks parent: {'parent_header': {}, 'msg_type': u'status', 'msg_id': u'a3aa09af-6958-4362-a1f4-5df01da8941b', 'content': {u'execution_state': u'starting'}, 'header': {u'date': datetime.datetime(2015, 5, 21, 7, 28, 46, 174675), u'username': u'lst3si', u'session': u'f3df3951-5e0b-4694-aa67-7ae66a181551', u'msg_id': u'a3aa09af-6958-4362-a1f4-5df01da8941b', u'msg_type': u'status'}, 'buffers': [], 'metadata': {}}
2015-05-21 07:28:51.699 [IPControllerApp] registration::finished registering engine 2:f3df3951-5e0b-4694-aa67-7ae66a181551
2015-05-21 07:28:51.700 [IPControllerApp] engine::Engine Connected: 2
2015-05-21 07:28:56.113 [IPControllerApp] client::client '4311705d-03d4-4e48-a7a9-7be47467c439' requested u'registration_request'
2015-05-21 07:28:56.145 [IPControllerApp] WARNING | iopub::IOPub message lacks parent: {'parent_header': {}, 'msg_type': u'status', 'msg_id': u'671288cf-32ea-4a41-8e17-9be4ba1216dd', 'content': {u'execution_state': u'starting'}, 'header': {u'date': datetime.datetime(2015, 5, 21, 7, 28, 56, 144586), u'username': u'lst3si', u'session': u'4311705d-03d4-4e48-a7a9-7be47467c439', u'msg_id': u'671288cf-32ea-4a41-8e17-9be4ba1216dd', u'msg_type': u'status'}, 'buffers': [], 'metadata': {}}
2015-05-21 07:29:00.698 [IPControllerApp] registration::finished registering engine 3:4311705d-03d4-4e48-a7a9-7be47467c439
2015-05-21 07:29:00.700 [IPControllerApp] engine::Engine Connected: 3
=> ipengine.log (all look the same, only "Completed registration with id x", where x increases from 0 to 3 for the engines):
2015-05-21 07:28:26.065 [IPEngineApp] Loading url_file u'.ipython/profile_default/security/ipcontroller-engine.json'
2015-05-21 07:28:26.070 [IPEngineApp] Registering with controller at tcp://127.0.0.1:57360
2015-05-21 07:28:26.101 [IPEngineApp] Starting to monitor the heartbeat signal from the hub every 3010 ms.
2015-05-21 07:28:26.102 [IPEngineApp] Using existing profile dir: u'.ipython/profile_default'
2015-05-21 07:28:26.103 [IPEngineApp] Completed registration with id 0
I solved the issue by my-self. The engines did not start up due to a bug in IPython.utils.localinterfaces.public_ips (I reported that), which returned "Adresse:127.0.0.1" (I changed the IP value) due to ignoring the localized output of ifconfig.
As a work-around I now use the following ipclusterconfig.py (note the --location option in controller_args):
c = get_config()
c.IPClusterEngines.engine_launcher_class = 'SSH'
c.LocalControllerLauncher.controller_args = ['--location=<engine_ip1>', '--ip=*']
c.SSHEngineSetLauncher.engine = { <engine_ip1> : 4, <engine_ip> : 4 }
In this example the Controller runs locally on <engine_ip1>