GRAKN Server start fails right after install - vaticle-typedb

Installed Grakn-Core as per their instruction on the website via Homebrew (Mac OS). As I am trying to start the Grakn server by executing grakn server start I am consistently getting the following error:
Same goes for any other command argument after grakn server <arg>. Did something change and is not reflected in the documentation or am I missing something obvious?

it looks like you're using the 2.0.0-alpha version of Grakn core, for which the docs live at dev.docs.grakn.ai (as opposed to dev.grakn.ai, which is for the 1.8.4 docs)
The url will be changed to our main docs page once we're out of alpha!

Related

Unable to use graql on commandline

So I am using grakn core 1.5.7 on Ubuntu 18.04.
I want to use graql command.With older versions of grakn it was quite good to have a graql executable available.Here is the command i am using from inside my grakn folder.
graql console --keyspace prec --file ./schema.gql
However in newer versions on and after 1.5.7,I cannot find the same.
I had a look on the bugs section of grakn and i found this to be close but not much related issue. Following which i tried replacing graql to grakn but now i am getting this error
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: session.SessionService/open
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:233)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:214)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:139)
at grakn.protocol.session.SessionServiceGrpc$SessionServiceBlockingStub.open(SessionServiceGrpc.java:273)
at grakn.client.GraknClient$Session.<init>(GraknClient.java:165)
at grakn.client.GraknClient$Session.<init>(GraknClient.java:136)
at grakn.client.GraknClient.session(GraknClient.java:123)
at grakn.core.console.ConsoleSession.<init>(ConsoleSession.java:90)
at grakn.core.console.GraknConsole.run(GraknConsole.java:99)
at grakn.core.console.GraknConsole.main(GraknConsole.java:140)
Cannot understand what is the resolution for the same
So Thanks to help by grakn team , I resolved the issue by doing the following steps:
replace graql with grakn (for versions 1.5 and above)
stop grakn server by ./grakn server stop
run jps on commandline to identify if there are any processes still running for the grakn server
use the process id from step 3 and kill those processes by kill -9
Now do grakn server start
now run your grakn console commands, they will work.
As of Grakn Core 1.5.0, the graql console command has been removed in favor of a combined command: grakn console -k mykeyspace...

Getting auth sign message when connecting cloud server using opencpu

I am trying to expose a sample r model as API so I created R package. In my local machine , I am able to get the output using the command :
curl http://local host/5656/ocpu/library/mypackage/R/tv/json -F "input=#test.csv"
But when I am trying the same in my AWS linux cloud server on CentOS , I am not getting the output. I tried the command :
curl 13.228.109.233:8787/p/5656/ocpu/library/mypackage/R/tv/json -F "input=#test.csv"
and I get the output as
http://13.228.109.233:8787/auth-sign-in?appUr‌​i=%2Fp%2F5656%2Focpu‌​%2Flibrary%2Fmypacka‌​ge%2FR%2Ftv%2Fjson .
The R package is loaded into the my R studio server and I am trying to access it using putty. I installed the open cpu using the command :
yum install opencpu-server
It looks like it is asking for some authentication but I am not able to get what it means. Am I missing something here?
Thanks
If one visits the URL with a browser, one sees the RStudio-Server login screen. And indeed, you are connecting to port 8787, which is the default port for Rstudio Server. Try URLs below http://13.228.109.233/ocpu/ instead.
As Ralf suggests, that was the error , I was giving the wrong URL . Also, whenever we install opencpu in CentOS , just doing a 'yum install opencpu-server' might not be sufficient. We need to execute the entire built script: https://github.com/opencpu/opencpu-server/blob/master/rpm/buildscript.sh
Without executing the build script , I was not able to connect to opencpu server.
Just in case someone gets the same issue.

Install R package on SQL Server 2016

How to install a particular R package on SQL Server 2016.Package like 'ggplot2'.There is the command in R is 'Install.Packages("ggplot2")'.But how we can install this package on SQL Server 2016.
Have a look at the MSDN documentation.
You can also look at a blog post I wrote about how to install Facebook Prophet on SQL Server R Services.
Hope this helps!
Niels
I kept getting errors regarding package management for SQL Server 2017 "Error: The package management feature is not enabled for the current user or not supported on SQL Server version 14".
What finally worked for me was to go to the R version installed with SQL, then install the R packages as I normally would through R, but for the System Library instead of the User Library:
install.packages("tidyverse", lib="C:\\Program Files\\Microsoft SQL Server\\MSSQL14.MSSQLSERVER\\R_SERVICES\\library")
You need to run R as admin to execute the code above, otherwise you will get an error that the folder is not writeable.
If you run in R the command:
.libPaths()
it will show you the user path and the system path. The packages you install normally forces them to go to the user path. I suspect SQL Server can't find it if it's in the user path.

RStudio Server Initialization Error: Status code 500 returned

When I login to RStudio server installed as an Amazon Machine Image, I, I see the message "RStudio Server Initialization Error" and "Status code 500 returned," as in the screenshot. When I click OK, nothing changes.
What does this mean and how can I fix this?
Refer the following link. It will guide you about the complete installation of R-Studio Server along with required dependencies.
Automated Installation of R-Studio Using Shell Script
It would be useful if you could state which version of RStudio Server you are using. Neverthless, you can try the following:
Install the most recent version using: wget http://download2.rstudio.org/rstudio-server-0.98.1103-amd64.deb. If you want 32-bit version wget http://download2.rstudio.org/rstudio-server-0.98.1103-i386.deb.
Delete the startup files (.Rprofile, .Renviron, and .RData) from your initial working directory, which should be user's home.
Check if you can run R from command line and if your are getting any error messages - fix that first

s3cmd: how to use server side encryption?

I'm trying to encrypt some files on Amazon S3 using server side encryption. According to this link
http://s3tools.org/kb/item9.htm
I should only add this flag
--server-side-encryption
on the put or sync command I'm trying to run, but when I do that I get a "s3cmd: error: no such option: --server-side-encryption" message.
How do I run this command to use server side encryption?
s3cmd put file.zip s3://test/file.zip
I'm using ubuntu 14.04 server 64 bits.
You need a more recent version of s3cmd than what is in the ubuntu repositories. Use github.com/s3tools/s3cmd master branch (preferred), or the copy in the Debian experimental repository.
If you've upgraded- make sure you don't have any remnants of the old version. I had this issue because I had installed the first package via the system package handler but when I upgraded I had installed via python. This left me with the impression that I had upgraded- but had not removed the old version.
I discovered this because
dpkg -l s3*
Still lists v 1.1 while
pip list | grep s3
Shows 1.6.1
I fixed the issue by uninstalling the old package using the system package handler.
dpkg -r s3*
Then when the cron job ran, it ran the python package version 1.6.1 and no errors occurred.

Resources