Git Product home page Git Product logo

Comments (3)

schollz avatar schollz commented on June 10, 2024

What is hostname:port ?

Can you just use localIP:port?

from find3.

mstormi avatar mstormi commented on June 10, 2024

What is hostname:port ?

a local DNS (resolvable) or IP, I tried both. Port is 8005 (where server is started on).
Below is the log of a fresh start, at 00:35:20 I've started learning on the app, that made it crash.
Now that I was able to reproduce it I believe it was because of file access rights to the DB files in data/*.
Deleted those and started again as root, now it's no longer crashing.

So much for that one, BUT...
... now it's running but does not generating any DB data. I see HTTP requests going only when I start/restart learning via app,
there's no data files to appear in data/*

[00:35:07] openhabian@devpi:~/go/src/github.com/schollz/find3/server/main$ ./main -debug -port 8005
2020-07-16 00:35:11 [DEBUG] [PID-14652] mode.go Run:61 current families: [diestorms]
2020-07-16 00:35:11 [INFO] [PID-14652] server.go Run:579 Running on 0.0.0.0:8005
2020-07-16 00:35:20 [INFO] [PID-14652] server.go func1:1360 192.168.178.43:56608 GET /ws?family=diestorms&device=myprism 504.071ยตs
2020-07-16 00:35:20 [DEBUG] [PID-14652] db.go getRows:1055 getting columns
2020-07-16 00:35:20 [DEBUG] [PID-14652] db.go getRows:1062 getting sensorstringsizer
2020-07-16 00:35:20 [DEBUG] [PID-14652] db.go getRows:1079 getting locations
2020-07-16 00:35:20 [DEBUG] [PID-14652] db.go getRows:1085 got locations
panic: interface conversion: interface {} is string, not []uint8

goroutine 51 [running]:
github.com/schollz/find3/server/main/src/database.(*Database).getRows(0x2036020, 0x2518370, 0x2518370, 0x1, 0x2518370, 0x0, 0x0)
/home/openhabian/go/src/github.com/schollz/find3/server/main/src/database/db.go:1097 +0xbcc
github.com/schollz/find3/server/main/src/database.(*Database).GetAllFromPreparedQuery(0x2036020, 0x769b90, 0x46, 0x1c41e6c, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
/home/openhabian/go/src/github.com/schollz/find3/server/main/src/database/db.go:1044 +0x10c
github.com/schollz/find3/server/main/src/database.(*Database).GetLatest(0x2036020, 0x24fcec0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/openhabian/go/src/github.com/schollz/find3/server/main/src/database/db.go:641 +0xcc
github.com/schollz/find3/server/main/src/server.sendOutLocation(0x24fceaf, 0x9, 0x24fcec0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/openhabian/go/src/github.com/schollz/find3/server/main/src/server/server.go:870 +0x98
created by github.com/schollz/find3/server/main/src/server.wshandler
/home/openhabian/go/src/github.com/schollz/find3/server/main/src/server/websockets.go:66 +0x318

from find3.

mstormi avatar mstormi commented on June 10, 2024

fixed after reinstall although cannot tell for sure what it was

from find3.

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.