I am trying to mount a remote drive to copy few files. I was originally doing this using a shell script. This is working fine and I was able to copy files.
Now I wrote a GUI tool using swift , Inside the mac osx app I load the shell script and run it using Process. The script is loading fine and its receiving the arguments I pass and also it rans. But when it tries to execute this like it errors,
mount_smbfs $path ~/buildboxshare/
mount_smbfs $destpath ~/internalsiteshare
where path is,
//user#ob1-server/Share/ios/DEV/build/Version_4.0.23.0
I am getting this error back,
2018-11-27 17:12:01.912649+0000 mount_smbfs[60333:30411307]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
2018-11-27 17:12:02.917815+0000 mount_smbfs[60333:30411307]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-11-27 17:12:03.920862+0000 mount_smbfs[60333:30411307]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-11-27 17:12:04.922161+0000 mount_smbfs[60333:30411307]
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:4 Err:-1 Errno:1 Operation not
permitted mount_smbfs: server connection failed: No route to host
Related
Hi guys I attempts to make RESTful call when toolbar item is click.
then it fails to connect to the internet with the following error in log.
[default] Unable to load Info.plist exceptions (eGPUOverrides)
The extension's toolbar item was clicked
dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:5 Err:-1 Errno:1 Operation not permitted
Error: Optional(Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x600003e3c4b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, NSErrorFailingURLStringKey=https://some_valid_url, NSErrorFailingURLKey=https://some_valid_url, _kCFStreamErrorDomainKey=10, _kCFStreamErrorCodeKey=-72000, NSLocalizedDescription=A server with the specified hostname could not be found.})
[] nw_resolver_create_dns_service_locked [C1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
TIC TCP Conn Failed [1:0x60000051d200]: 10:-72000 Err(-65563)
Task <D9356F42-2832-426A-9FE6-C37C0A22F954>.<1> HTTP load failed (error code: -1003 [10:-72000])
Task <D9356F42-2832-426A-9FE6-C37C0A22F954>.<1> finished with error - code: -1003
Program ended with exit code: 0
So then I tried:
Turn on App sandbox and tick both incoming and outgoing connection
Does not work, same error
Turn off App sandbox
Extension disappears in safari preferences
No response when I click "Open in Safari Extensions Preferences"
My config:
Xcode: Version 10.1 (10B61)
Mac: Mojave 10.14.2(18C54)
Safari: 12.0.2(14606.3.4)
Any ideas?
You may need to enable Incoming and Outgoing connections on the app Sandbox to let your requests go thru.
I am trying to connect into realm object server from an app developed with swift on macos
When I try to connect, I get this error "Network connection was lost", but I can open the realm server from the browser without a problem.. btw, this problem happened recently, it was working correctly few weeks ago
let credentials = SyncCredentials.usernamePassword(username: username, password: password)
SyncUser.logIn(with: credentials, server: serverurl) {
user, error in
if let u = user {
onCompletion(syncUser: u, error: nil)
} else if let error = error {
onCompletion(syncUser: nil, error: error)
} else {
onCompletion(syncUser: nil, error: nil)
}
}
Here, user is always nil and the error description is Network connection was lost
This happens with both a local server and one hosted on digitalocean
Server version 1.8.3
xcode console log
2018-01-15 12:46:07.077741+0300 Oncobase[8138:9497304]
ApplePersistence=NO 2018-01-15 12:46:07.207859+0300
Oncobase[8138:9497813] dnssd_clientstub ConnectToServer: connect()->
No of tries: 1 2018-01-15 12:46:08.218889+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-01-15 12:46:09.228932+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-01-15 12:46:10.239595+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect() failed
path:/var/run/mDNSResponder Socket:16 Err:-1 Errno:1 Operation not
permitted 2018-01-15 12:46:10.239850+0300 Oncobase[8138:9497813] []
nw_resolver_create_dns_service_locked
DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
2018-01-15 12:46:10.240322+0300 Oncobase[8138:9497813] TIC TCP Conn
Failed [1:0x600000163300]: 10:-72000 Err(-65563) 2018-01-15
12:46:10.257327+0300 Oncobase[8138:9497796] Task
.<1> HTTP load failed (error
code: -1003 [10:-72000]) 2018-01-15 12:46:10.257548+0300
Oncobase[8138:9497796] Task .<1>
finished with error - code: -1003 2018-01-15 12:46:23.852072+0300
Oncobase[8138:9497838] [] nw_socket_connect connectx failed (fd 16,
127.0.0.1:9080 stream, pid: 8138, sanitized url: http://127.0.0.1:9080/auth): [1] Operation not permitted 2018-01-15
12:46:23.852142+0300 Oncobase[8138:9497838] []
nw_socket_get_input_frames recvmsg(fd 16, 1024 bytes): [57] Socket is
not connected 2018-01-15 12:46:23.852284+0300 Oncobase[8138:9497838]
TIC TCP Conn Failed [2:0x600000169b40]: 1:57 Err(57) 2018-01-15
12:46:23.852618+0300 Oncobase[8138:9497838] Task
<91597B31-6AB4-41BB-A5A6-C32525BC8A67>.<2> HTTP load failed (error
code: -1005 [1:57]) 2018-01-15 12:46:23.853839+0300
Oncobase[8138:9497798] Task <91597B31-6AB4-41BB-A5A6-C32525BC8A67>.<2>
finished with error - code: -1005
Edit 1: I have just enabled sandboxing to be able to upload the app into apple app store.. could this be the issue? any workaround?
It seems sandboxing was the real problem
I had to enable Ingoing Connections and Outgoing Connections with sandboxing for this to work
You have to off the "App Sandbox".
Go to: xcode Project-> Capabilities -> App SandBoxScreenShot
When I run ionic serve, it builds the app but the server isn't run. Here's the trail:
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729
--dev-logger-port 53703 --nobrowser - Ctrl+C to cancel
[17:55:35] watch started ...
[17:55:35] build dev started ...
[17:55:36] clean started ...
[17:55:36] clean finished in 2 ms
[17:55:36] copy started ...
[17:55:36] deeplinks started ...
[17:55:37] deeplinks finished in 589 ms
[17:55:37] transpile started ...
[17:55:44] transpile finished in 7.38 s
[17:55:44] preprocess started ...
[17:55:44] copy finished in 8.56 s
[17:55:44] preprocess finished in 206 ms
[17:55:44] webpack started ...
After webpack started the cli just exits and i see the normal terminal prompt.
Trying out the npm run ionic:serve command instead results into this error:
TypeError: Cannot read property 'substr' of undefined
So far I've re-installed ionic, same result. A bit unsure how to deal with this one...
It turns out that this is caused when creating multiple component classes in one ts file. Splitting those classes each into their own file solves the problem.
Related to this https://github.com/ionic-team/ionic-app-scripts/issues/796
When I use http/https communication from integration tests (unit test bundle) it's working. However when I use the same code in UI test bundle, I've got the following error trace:
Request Content:
XCTRunner[6389:1020209] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
XCTRunner[6389:1020209] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
XCTRunner[6389:1020209] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
XCTRunner[6389:1020209] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:8 Err:-1 Errno:1 Operation not permitted
XCTRunner[6389:1020209] [] nw_resolver_create_dns_service_on_queue DNSServiceCreateConnection failed: ServiceNotRunning(-65563)
XCTRunner[6389:1020209] [] __nw_connection_get_connected_socket_block_invoke 2 Connection has no connected handler
XCTRunner[6389:1020207] PAC stream failed with
XCTRunner[6389:1020208] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: kCFErrorDomainCFNetwork: -72000
XCTRunner[6389:1020208] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
XCTRunner[6389:1020208] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
XCTRunner[6389:1020208] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
XCTRunner[6389:1020208] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:7 Err:-1 Errno:1 Operation not permitted
XCTRunner[6389:1020208] [] nw_resolver_create_dns_service_on_queue DNSServiceCreateConnection failed: ServiceNotRunning(-65563)
I have opened a Technical Support Incident at Apple and they answered that this is a bug from their side.
Kindly asked me to open a ticket in their bug report system.
The ticket is opened since 20-Dec-2016. Hopefully they will solve it as soon as possible.
Meanwhile I found a workaround for this.
I've put:
#if DEBUG
// cleaning server configuration
#endif
in the production code and I'm doing there the necessary cleaning operations. This code will translated in the production code if it's built in debug mode.
After upgrading CDH5.3.2 to CDH5.3.5, zookeeper start failed, I got
Command aborted because of exception: Command timed-out after 150 seconds
in cloudera manager, and I got this error code in log file
2015-07-20 19:45:50,771 ERROR org.apache.zookeeper.server.NIOServerCnxn: Unexpected Exception:
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77)
at org.apache.zookeeper.server.NIOServerCnxn.sendBuffer(NIOServerCnxn.java:153)
at org.apache.zookeeper.server.NIOServerCnxn.sendResponse(NIOServerCnxn.java:1075)
at org.apache.zookeeper.server.NIOServerCnxn.process(NIOServerCnxn.java:1112)
at org.apache.zookeeper.server.WatchManager.triggerWatch(WatchManager.java:120)
at org.apache.zookeeper.server.WatchManager.triggerWatch(WatchManager.java:92)
at org.apache.zookeeper.server.DataTree.deleteNode(DataTree.java:594)
at org.apache.zookeeper.server.DataTree.killSession(DataTree.java:966)
at org.apache.zookeeper.server.DataTree.processTxn(DataTree.java:818)
at org.apache.zookeeper.server.ZKDatabase.processTxn(ZKDatabase.java:329)
at org.apache.zookeeper.server.ZooKeeperServer.processTxn(ZooKeeperServer.java:965)
at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:116)
at org.apache.zookeeper.server.quorum.Leader$ToBeAppliedRequestProcessor.processRequest(Leader.java:634)
at org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:74)
what should I do to get zookeeper start successful? thanks very much