Titanium App fails to launch with ti.main.js file not found error - titanium

App fails to launch on iOS and hangs on the splash screen. No error messages on AppC side but when I run the app on Xcode I get the "Could not find the file ti.main.js" error.
environement:
Node.js Version = 8.9.1
npm Version = 5.5.1
CLI Version = 5.1.1
Stack trace from Xcode:
2019-03-08 21:24:21.292325-0800 TrafficTix[93730:2365500] [DEBUG] Reading stylesheet from: /Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Bundle/Application/463090AA-E8E0-4110-9798-0C65E6BCB7E0/TrafficTix.app/stylesheet.plist
2019-03-08 21:24:21.372005-0800 TrafficTix[93730:2365500] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2019-03-08 21:24:21.372127-0800 TrafficTix[93730:2365500] 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.
2019-03-08 21:24:21.516987-0800 TrafficTix[93730:2365762] [DEBUG] Loading: /Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Bundle/Application/463090AA-E8E0-4110-9798-0C65E6BCB7E0/TrafficTix.app/ti.main.js, Resource: ti_main_js
2019-03-08 21:24:21.520121-0800 TrafficTix[93730:2365762] [ERROR] Error loading path: file:///Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Bundle/Application/463090AA-E8E0-4110-9798-0C65E6BCB7E0/TrafficTix.app/ti.main.js, Error Domain=NSCocoaErrorDomain Code=260 "The file “ti.main.js” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Bundle/Application/463090AA-E8E0-4110-9798-0C65E6BCB7E0/TrafficTix.app/ti.main.js, NSUnderlyingError=0x600003342e50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2019-03-08 21:24:21.520393-0800 TrafficTix[93730:2365762] [ERROR] Script Error Could not find the file ti.main.js
2019-03-08 21:24:21.542421-0800 TrafficTix[93730:2365762] [DEBUG] Application booted in 169.842958 ms
2019-03-08 22:18:54.187795-0800 TrafficTix[93730:2365500] [DEBUG] Loading: /Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Bundle/Application/463090AA-E8E0-4110-9798-0C65E6BCB7E0/TrafficTix.app/_app_props_.json, Resource: _app_props__json
2019-03-08 22:18:54.187943-0800 TrafficTix[93730:2365500] [ERROR] Could not load tiapp.xml properties, error was File not found
2019-03-08 22:18:54.644674-0800 TrafficTix[93730:2365500] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/kamrezvani/Library/Developer/CoreSimulator/Devices/B115B8C1-3E00-4897-B2F5-FA830C10F5BD/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-03-08 22:18:54.646402-0800 TrafficTix[93730:2365500] [MC] Reading from private effective user settings.
When I run it through Terminal, I get the following error:
[ERROR] Error: invalid session
at _makeError (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/auth.js:427:14)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/auth.js:270:21
at Request._callback (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:135:11)
at Request.self.callback (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
---------------------------------------------
at Request.init (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/request.js:188:10)
at new Request (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/request.js:127:8)
at request (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/index.js:53:10)
at Function.get (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/request/index.js:61:12)
at _createRequest (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:239:39)
at Object.Appc.createRequest (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/index.js:101:9)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/appc-platform-sdk/lib/auth.js:265:8
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/async/dist/async.js:3888:9
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/appc-cli-titanium/node_modules/async/dist/async.js:473:16
---------------------------------------------
at post (/Users/kamrezvani/Library/Application Support/Titanium/mobilesdk/osx/7.5.1.GA/iphone/cli/hooks/run.js:111:6)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/lib/hook.js:235:13
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9
at replenish (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)
at iterateeCallback (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1015:17)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:988:16
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3850:13
at apply (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:41:25)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:76:12
---------------------------------------------
at Domain.<anonymous> (/Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1505720032/node_modules/liveview/hook/lvhook.js:181:6)
at Domain.run (domain.js:242:14)
at /Applications/Appcelerator Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1505720032/node_modules/liveview/hook/lvhook.js:176:10
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/lib/hook.js:235:13
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:3845:9
at replenish (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1030:17)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1034:9
at eachOfLimit (/Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1061:22)
at /Users/kamrezvani/.appcelerator/install/7.0.9/package/node_modules/titanium/node_modules/async/dist/async.js:1066:16

Related

Unhandled rejection SequelizeConnectionError: Unknown database

This was my full error, I installed all the coorect dependencies but I couldnt figure out why I was still getting this same Error over and over again.
➜ Unsolved git:(main) ✗ node server.js
Unhandled rejection SequelizeConnectionError: Unknown database 'sequelize_library'
at /Users/usersname/Desktop/projects/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/userName/Desktop/projects//node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/Users/userName/Desktop/projects//node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/userName/Desktop/projects/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:461:21)
Getting this erros with all the right depencies installed. What worked for me was
(All commands go in terminal)
going into my sql with /usr/local/mysql/bin/mysql -uroot -p
Entering my password then ran source schema.sql which held my create database code
I quit SQL
& ran node server.js

CypressError: `cy.visit()` failed trying to load: https://dev-eccc.env.xxxx.com/ via Gitlab CI job

I have setup a Gitlab ci/cd job to execute all cypress integration tests. I found that all tests are getting fail due to home URL is getting failed to load by cy.visit().
On my local machine it is working fine.
below is the complete Error trace:
CypressError: `cy.visit()` failed trying to load:
https://dev-eccc.env.ihsmarkit.com/
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
> Error: getaddrinfo ENOTFOUND dev-eccc.env.ihsmarkit.com
Common situations why this would fail:
- you don't have internet access
- you forgot to run / boot your web server
- your web server isn't accessible
- you have weird network configuration settings on your computer
Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Facility Register`
at http://localhost:45271/__cypress/runner/cypress_runner.js:156433:23
at visitFailedByErr (http://localhost:45271/__cypress/runner/cypress_runner.js:155794:12)
at http://localhost:45271/__cypress/runner/cypress_runner.js:156432:11
at tryCatcher (http://localhost:45271/__cypress/runner/cypress_runner.js:10130:23)
at Promise._settlePromiseFromHandler (http://localhost:45271/__cypress/runner/cypress_runner.js:8065:31)
at Promise._settlePromise (http://localhost:45271/__cypress/runner/cypress_runner.js:8122:18)
at Promise._settlePromise0 (http://localhost:45271/__cypress/runner/cypress_runner.js:8167:10)
at Promise._settlePromises (http://localhost:45271/__cypress/runner/cypress_runner.js:8243:18)
at _drainQueueStep (http://localhost:45271/__cypress/runner/cypress_runner.js:4837:12)
at _drainQueue (http://localhost:45271/__cypress/runner/cypress_runner.js:4830:9)
at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues
(http://localhost:45271/__cypress/runner/cypress_runner.js:4846:5)
at Async.drainQueues (http://localhost:45271/__cypress/runner/cypress_runner.js:4716:14)
From Your Spec Code:
at Object.homepage_test (http://localhost:45271/__cypress/tests?p=cypress/integration/eccc-
app-ui-cypress/API/register_api.ts:71:8)
at Context.eval (http://localhost:45271/__cypress/tests?p=cypress/integration/eccc-app-ui-
cypress/API/register_api.ts:13:25)
From Node.js Internals:
Error: getaddrinfo ENOTFOUND dev-eccc.env.ihsmarkit.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)

Onlyoffice integrate into nextcloud. Error while downloading the document file to be converted

I had already looked around, but this couldn't solve my problem. I installed onlyoffice documents on another server.now i would like to use the addon in nextcloud. When I enter the serverip in Nextcloud, I get the following error:
Error while downloading the document file to be converted
in the nextcloud config i also have " 'onlyoffice' =>array (
verify_peer_off' => TRUE,
)
" added.
Called up via healthcheck I get a positive result.
here is an excerpt from the log of the converter:
[2019-08-29T16:29:49.962] [WARN] nodeJS - worker 11687 started.
[2019-08-29T16:29:49.963] [WARN] nodeJS - update cluster with 1 workers
[2019-08-29T16:40:12.293] [ERROR] nodeJS - error downloadFile:url=https://next.mydomain.xx/apps/onlyoffice/empty?doc=eyJ0eXAiOiJxyzv4oPYyTYdvdZNgMz$
Error: Parse Error
at TLSSocket.socketOnData (_http_client.js:454:20)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at TLSSocket.Readable.push (_stream_readable.js:208:10)
at TLSWrap.onread (net.js:601:20)
i am very happy to suggest solutions
The reason is that next.mydomain.xx cannot be validated by DocumentServer.
You can disable certificate verification in DS config
/etc/onlyoffice/documentserver/default.json by setting rejectUnauthorized to false. After that, you need to restart DS services: supervisorctl restart all
If that doesn't help, specify the version, OS and installation type of the DocumentServer.

Why is incorrect URL used for glassfish's security-all jar from Maven repo?

I added the following to build.sbt (doing programmatic login with embedded GlassFish for unit tests):
libraryDependencies += "org.glassfish.main.security" % "security-all" % "4.0"
However sbt seems to try to fetch the wrong URL. It tries to get (note the additional glassfish- in the extension):
http://repo1.maven.org/maven2/org/glassfish/main/security/security-ee/4.0/security-ee-4.0.glassfish-jar
But the actual jar file is at:
http://repo1.maven.org/maven2/org/glassfish/main/security/security-ee/4.0/security-ee-4.0.jar
So instead of using .jar as the extension it appears to be using .glassfish-jar for some reason and am facing the following download failed errors:
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: download failed: org.glassfish.main.security#security;4.0!security.glassfish-jar
[error] download failed: org.glassfish.main.admin#config-api;4.0!config-api.glassfish-jar
[error] download failed: org.glassfish.main.common#common-util;4.0!common-util.glassfish-jar
[error] download failed: org.glassfish.main.common#glassfish-api;4.0!glassfish-api.glassfish-jar
[error] download failed: org.glassfish.main.common#scattered-archive-api;4.0!scattered-archive-api.glassfish-jar
[error] download failed: org.glassfish.main.security#ssl-impl;4.0!ssl-impl.glassfish-jar
[error] download failed: org.glassfish.main.common#internal-api;4.0!internal-api.glassfish-jar
[error] download failed: org.glassfish.main.deployment#deployment-common;4.0!deployment-common.glassfish-jar
[error] download failed: org.glassfish.main.security#security-ee;4.0!security-ee.glassfish-jar
[error] download failed: org.glassfish.main.common#glassfish-ee-api;4.0!glassfish-ee-api.glassfish-jar
[error] download failed: org.glassfish.main.deployment#dol;4.0!dol.glassfish-jar
[error] download failed: org.glassfish.main.common#annotation-framework;4.0!annotation-framework.glassfish-jar
[error] download failed: org.glassfish.main.security#jaspic.provider.framework;4.0!jaspic.provider.framework.glassfish-jar
[error] download failed: org.glassfish.main.ejb#ejb-internal-api;4.0!ejb-internal-api.glassfish-jar
[error] download failed: org.glassfish.main.connectors#connectors-internal-api;4.0!connectors-internal-api.glassfish-jar
[error] download failed: org.glassfish.main.transaction#transaction-internal-api;4.0!transaction-internal-api.glassfish-jar
[error] download failed: org.glassfish.main.admin#admin-util;4.0!admin-util.glassfish-jar
[error] download failed: org.glassfish.main.security#security-services;4.0!security-services.glassfish-jar
[error] download failed: org.glassfish.main.resources#resources-connector;4.0!resources-connector.glassfish-jar
[error] download failed: org.glassfish.main.resourcebase.resources#nucleus-resources;4.0!nucleus-resources.glassfish-jar
[error] download failed: org.glassfish.main.security#inmemory.jacc.provider;4.0!inmemory.jacc.provider.glassfish-jar
I have no idea why or even where to look. I would think it would be something with the pom file, but Netbeans (probably the Maven embedded in Netbeans) did not have any trouble with the same pom.
Also, all the "transitive" jars end up have the wrong URL as well, so they all fail.
I worked around it with this:
libraryDependencies += "org.glassfish.main.security" % "security-ee" % "4.0" from "http://repo1.maven.org/maven2/org/glassfish/main/security/security-ee/4.0/security-ee-4.0.jar" intransitive()
but I would rather not have to do that hoping there is a way to do this properly. My searches for a real solution to this came up empty. Please advise.
The reason for the behaviour is that the module defines the packaging glassfish-jar for some of the transitive dependencies - see inmemory.jacc.provider-4.0.pom and security-4.0.pom:
<packaging>glassfish-jar</packaging>
Run sbt update in the project and open target/resolution-cache/reports/default-glassfish-security_2.10-compile.xml for the resolution report for the Compile (default) configuration.
Use sbt-dependency-graph to visualize your project's dependencies.

iOS Simulator failed to install the application in Titanium

I have created a Titanium ios 3.1.0 app, But now when I am trying to run it is giving me the following error.
[ERROR] : An error occurred running the iOS Simulator
[ERROR] : [DEBUG] Session could not be started:
Error Domain=DTiPhoneSimulatorErrorDomain Code=1
"SpringBoard failed to launch application with error: -3"
UserInfo=0x7fe2b84837c0 {NSLocalizedDescription=SpringBoard failed to
launch application with error: -3, DTiPhoneSimulatorUnderlyingErrorCodeKey=-3}
[ERROR] :
[ERROR] : Project failed to build after 1m 8s 528ms
Currently it shows only black screen
I have no idea what to do next, any help would be appreciated.
Do following and you would be good to go
1)Clean the project
2)Delete the build
3)And final and most important reset the simulator
Thanks