Git Product home page Git Product logo

Comments (13)

Orbiter avatar Orbiter commented on July 16, 2024

Name of the main class is SusiServer, made some fixes here: 2693cc9

I always start Susi just with bin/start.sh

from susi_server.

charany1 avatar charany1 commented on July 16, 2024

@Orbiter , thanks for the fixes , I pulled your latest commit , however problem is still there . Could it be due to the reason that I'm using a Windows machine ?

In bin/start,sh , I've changed ':' to ';' as class path separator , however , it doesn't work.

from susi_server.

Orbiter avatar Orbiter commented on July 16, 2024

it looks like that ps -o does not work on cygwin.

from susi_server.

Orbiter avatar Orbiter commented on July 16, 2024

I dont't have a cygwin development environment because I don't have a windows computer. I would like to hand over this issue to someone with a windows/cygwin development environment

from susi_server.

sudheesh001 avatar sudheesh001 commented on July 16, 2024

@charany1 Can you try this
START java -Xmx4G -Xms1G -server -XX:+AggressiveOpts -XX:NewSize=512M -cp "classes;lib/*" org.loklak.SusiServer

It should open up a new command line instance running java.

from susi_server.

sourabhtk37 avatar sourabhtk37 commented on July 16, 2024

Should I take this up?

from susi_server.

sudheesh001 avatar sudheesh001 commented on July 16, 2024

@sourabhtk37 I am not sure if there's anything in this that needs to be taken up, I am waiting for @charany1 to reply so that we can see what to do next. For me in a cygwin environment it works when I use the command above.

from susi_server.

charany1 avatar charany1 commented on July 16, 2024

@sudheesh001 , I tried your command , it said START command not found , however when I omit START , it opens up a new CMD type window , which closes automatically in a second .

That new CMD window shows some ERROR message , before I can figure out what that is , window closes .

Will check back next Thursday , till then Happy Deepawali :)

from susi_server.

sudheesh001 avatar sudheesh001 commented on July 16, 2024

@charany1 Run the start command from the Command prompt cmd.exe instead of cygwin and can you tell me then what happens ?

from susi_server.

sudheesh001 avatar sudheesh001 commented on July 16, 2024

Or there's another option, if the build seems to work correctly, do this, execute the jar

ant jar
java -jar dist/loklak.jar

That should run it, loklak.jar because this file hasn't been edited. https://github.com/fossasia/susi_server/blob/development/build.xml#L131

from susi_server.

Orbiter avatar Orbiter commented on July 16, 2024

I merged #22 please try again

from susi_server.

charany1 avatar charany1 commented on July 16, 2024

@Orbiter , I pulled code after your merge #22 .

@sudheesh001

  1. On doing

START java -Xmx4G -Xms1G -server -XX:+AggressiveOpts -XX:NewSize=512M -cp "classes;lib/*" org.loklak.SusiServer
from a CMD , a new CMD window opens up with message

` ERROR StatusLogger No log4j2 configuration file found . Using default Configuration : logging only errors to console .

-----plus some other stacktrace which before I can infer , window closes ---------`

  1. On running

`ant jar

java -jar dist/susiserver.jar
`
Terminal Output :

`C:\Users\danchara\work\foss\susi_server>ant jar
Buildfile: C:\Users\danchara\work\foss\susi_server\build.xml

init:

build:
[delete] Deleting directory C:\Users\danchara\work\foss\susi_server\classes
[mkdir] Created dir: C:\Users\danchara\work\foss\susi_server\classes
[echo] loklak: C:\Users\danchara\work\foss\susi_server\build.xml
[javac] Compiling 121 source files to C:\Users\danchara\work\foss\susi_server\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

jar:
[jar] Building jar: C:\Users\danchara\work\foss\susi_server\dist\susiserver.jar

BUILD SUCCESSFUL
Total time: 9 seconds

C:\Users\danchara\work\foss\susi_server>java -jar dist\susiserver.jar
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
java.io.FileNotFoundException: conf\susi\susi_cognition_boilerplate.json.example (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:125)
at com.google.common.io.Files$FileByteSource.openStream(Files.java:115)
at com.google.common.io.ByteSource.copyTo(ByteSource.java:239)
at com.google.common.io.Files.copy(Files.java:305)
at org.loklak.data.DAO.init(DAO.java:105)
at org.loklak.SusiServer.main(SusiServer.java:215)

C:\Users\danchara\work\foss\susi_server>`

from susi_server.

charany1 avatar charany1 commented on July 16, 2024

Okay , so above error happened because I was on developent branch which indeed doesn't have susi_cognition_boilerplate.json.example , when I switched to master , and used

`ant jar

java -jar dist/susiserver.jar`

it worked , so I've server running at

http://127.0.0.1:4000/ .

Thanks @Orbiter , @sudheesh001 .

I'm closing this for now .

from susi_server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.