error: unknown host service when reinstall_apps in calabash-android - calabash

I tried to install test.apk with calabash-android but always failed with following reason.
Following are my steps:
Calabash-android resign test.apk
calabash-android build test.apk
calabash-android gen
calabash-android console test.apk
reinstall_apps
and met following errors, can anyone help a guide where is the problem? THanks.
irb(main):001:0> reinstall_apps
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
error: unknown host service
NoMethodError: undefined method `chomp' for nil:NilClass
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:333:in `install_app'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:309:in `reinstall_apps'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/calabash-android-0.7.3/lib/c
alabash-android/operations.rb:106:in `reinstall_apps'
from (irb):1
from C:/Ruby23-x64/bin/irb.cmd:19:in `<main>'
irb(main):002:0>

Its unclear exactly what you are trying to do or your understanding of calabash. Here is an intro guide to help you get set up
https://www.youtube.com/watch?v=bslZMzEkPeU&list=PLInoIpH9dfLyvdaOjozON9QnQP1pK30y-
If you are past all of this, sorry for the inconvenience.

Just figured out that the reason is that Android studio occupy port "5037" that blocks calabash-android's operation.
Just end of the process which take port 5037 works.
THanks all.

Related

Anchor Problem Deploying NFT Program to Devnet

Error: Deploying program failed: Error processing Instruction 1: custom program error: 0x1
There was a problem deploying: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "" }.
What is this error about? How do I fix it?
I have set the config url to the devnet, and I have already airdropped into my wallet sufficient funds to deploy on the devnet.
Found out that the "custom program error: 0x1" error message is another variation of the Insufficient Funds error. Solved this by airdropping my wallet significantly more SOL. To deploy an NFT with Metadata (using Anchor and Metaplex) my transaction used ~4 SOL, far more than I expected.

SBT buid error:[error] Server access Error: Received fatal alert: access_denied

I have been getting server access denied error.Unable to find the fix.Investigated through web.But none of them worked well.I am using windows7.
C:\Users\thathine>sbt
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
[info] Loading project definition from C:\Users\thathine\project
[info] Updating {file:/C:/Users/thathine/project/}thathine-build...
[info] Resolving org.scala-lang#scala-library;2.11.8 ...
[error] Server access Error: Received fatal alert: access_denied url=https://rep
o.typesafe.com/typesafe/ivy-releases/org.scala-lang/scala-library/2.11.8/ivys/iv
y.xml
[error] Server access Error: Received fatal alert: access_denied url=https://rep
o.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-lang/scala-library/2.11.8
/ivys/ivy.xml
my buld.sbtis as follows:
name := "spark_codebase"
version := "1.0"
scalaVersion := "2.11.8"
I am in need to fix this as soon as possible. Please suggest any solution.Thanks in advance.
Please find the versions of scala, java, sbt:
C:\Users\thathine>javac -version
javac 1.8.0_131
C:\Users\thathine>scala -version
Scala code runner version 2.11.8 -- Copyright 2002-2016, LAMP/EPFL
and sbt version is sbt-0.13.15.
After some struggle, found that this issue is because of our company network used some proxy to give restricted access to employees like a firewall. As i was behind a proxy, Maven would fail to download any dependencies.
I got the proxy setings from my companie's IT helpdesk. After using them, It worked finally.I am using windows 7.use the following command line options before using sbt for that session,by replacing [your-ProxyServer] and <port-number> with your actual proxy server and port details.
set JAVA_OPTS=-Dhttp.proxySet=true -Dhttp.proxyHost=[your-ProxyServer] -Dhttp.proxyPort=<port-number> -Dhttps.proxyHost=[your-ProxyServer] -Dhttps.proxyPort=<port-number> -Dftp.proxyHost=[your-ProxyServer] -Dftp.proxyPort=<port-number>
If you are using IDE like IntelliJ or Eclipse:
use the same options under -VM parameters while creating/importing the project.

Rails 4 fails to load assets in dev

In production all works fine. I am using a Mac Book Pro as dev env.
In development I am getting these (several) errors:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
When trying to load from http://localhosts:8080/assets ...
Not sure why rails is not loading from public/assets?
What is wrong here?
And after restarting the server I am getting this error:
Errno::EINVAL
Invalid argument
connection.connect_unix(config[:path], connect_timeout)
else
connection.connect(config[:host], config[:port], connect_timeout)
end
instance = new(connection)
What is wrong with my dev env?
I uninstalled the rack-cors gem.
Problem solved.

Deploying Django with Mezzanine on FastCGI

I'm in the middle of trying to deploy a Django project on Subsys.no, Who uses FastCGI. I have never deployed a project before and have been trying for 3 days straight.
I have made a virtualenv on the server and installed all the packages I need.
I have uploaded (FTP) the project I have onto the server (in the correct place)
I have tired using Fabrics "fab all" command on the server and locally. The server gave this response:
--
all
---
-------
install
-------
$ cat /etc/default/locale ->
Fatal error: Low level socket error connecting to host subsys.no on port 22: Connection refused (tried 1 time)
Underlying exception:
Connection refused
Aborting.
The local gave the same answer but with one twist:
Fatal error: Timed out trying to connect to subsys.no (tried 1 time)
Underlying exception:
timed out
I'm not sure if the error lie here or here on the site. It gives out alot that I dont understand.
All help is greatly appreciated and thanks in advance!

I got some errors when install single node mode

log:
error : gnutls_handshake() failed : a TLS packet with unexpected length was received .
while accessing https://github.com/cloudfoundry/vcap/info/refs
fatal: http request failed
.. unable to clone cloudfoundry vcap repo
What can I do?
Thanks tt64
are you behind a firewall? Are you using vcap dev_setup to install your CF instance? If you are make sure you are not behind any sort of firewalls that would block your execution from grabbing anything it needs from the net.