schollz / kiki

An experimental social network that works offline.
https://kiki.network
MIT License
46 stars 6 forks source link

Is this in working order? #5

Open prologic opened 5 years ago

prologic commented 5 years ago

Hi, Love the ideas behind this project! Looks interesting and promising!

Is this in current working order? I'm running into some basic issues follow the docs on the website and getting started guide:

prologic@Jamess-MacBook
Fri Dec 21 00:07:02
~
 0
$ docker run --user `id -u` --rm -it -p 8003:8003 -v /tmp/kiki:/data -t schollz/kiki
Unable to find image 'schollz/kiki:latest' locally
latest: Pulling from schollz/kiki
605ce1bd3f31: Pull complete
d1e3a1512603: Pull complete
64455c1aaa47: Pull complete
cdc57526dc05: Pull complete
92b355b184ea: Pull complete
5c5463f1346a: Pull complete
59f863538f6c: Pull complete
51c3b2c2c002: Pull complete
a1a602228512: Pull complete
200ed34b218c: Pull complete
eb719d29ad3b: Pull complete
9b04e0784e54: Pull complete
dc6d27f3c3e8: Pull complete
65b2d9f367c0: Pull complete
Digest: sha256:efbbe0a925213a1353a19830421dfca6b4878db8c2448a9667a734d6cd412c1f
Status: Downloaded newer image for schollz/kiki:latest
2018-12-20 14:10:49 [INFO] [PID-1] main.go main:88 kiki version 0.1.0
2018-12-20 14:10:49 [INFO] [PID-1] feed.go New:72 feed located at: '/data/keys/default.json'
2018-12-20 14:10:49 [INFO] [PID-1] feed.go New:75 generating new feed
2018-12-20 14:10:49 [INFO] [PID-1] feed.go Save:175 wrote file: '/data/keys/default.json'
2018-12-20 14:10:50 [INFO] [PID-1] server.go Run:69 Region public: 4NfD9kWESGycUdbhbrFygNDjFun6NPk6utpkviyE1Ai6
2018-12-20 14:10:50 [INFO] [PID-1] server.go Run:70 Region private: btbsjnjTtgi3aL9z2X8bqb1URVnCo3zqg4fC4co2JEu
2018-12-20 14:10:50 [INFO] [PID-1] feed.go Save:175 wrote file: '/data/keys/default.json'
2018-12-20 14:10:50 [INFO] [PID-1] server.go Run:190 Running private router on localhost:8003
2018-12-20 14:10:50 [INFO] [PID-1] server.go func9:181 Running public router on 0.0.0.0:8004
2018-12-20 14:13:11 [INFO] [PID-1] feed.go Cleanup:183 cleaning up...

prologic@Jamess-MacBook
Fri Dec 21 00:13:12
~
 0
$ docker run --user `id -u` --rm -it -p 8003:8003 -v /tmp/kiki:/data -t schollz/kiki
2018-12-20 14:15:01 [INFO] [PID-1] main.go main:88 kiki version 0.1.0
2018-12-20 14:15:01 [INFO] [PID-1] feed.go New:72 feed located at: '/data/keys/default.json'
2018-12-20 14:15:01 [INFO] [PID-1] feed.go Save:175 wrote file: '/data/keys/default.json'
2018-12-20 14:15:01 [INFO] [PID-1] server.go Run:69 Region public: 4NfD9kWESGycUdbhbrFygNDjFun6NPk6utpkviyE1Ai6
2018-12-20 14:15:01 [INFO] [PID-1] server.go Run:70 Region private: btbsjnjTtgi3aL9z2X8bqb1URVnCo3zqg4fC4co2JEu
2018-12-20 14:15:01 [INFO] [PID-1] server.go Run:190 Running private router on localhost:8003
2018-12-20 14:15:01 [INFO] [PID-1] feed.go Save:175 wrote file: '/data/keys/default.json'
2018-12-20 14:15:01 [INFO] [PID-1] server.go func9:181 Running public router on 0.0.0.0:8004
2018-12-20 14:15:24 [INFO] [PID-1] feed.go Sync:1000 syncing with https://kiki.network
2018-12-20 14:15:25 [ERROR] [PID-1] routes.go handleSync:176 json: cannot unmarshal number into Go value of type feed.Response
2018-12-20 14:15:25 [ERROR] [PID-1] server.go respondWithJSON:205 172.17.0.1:48328 POST /sync [500]
2018-12-20 14:15:25 [WARN] [PID-1] server.go respondWithJSON:206 json: cannot unmarshal number into Go value of type feed.Response
2018-12-20 14:15:57 [INFO] [PID-1] feed.go Cleanup:183 cleaning up...

The instance seems to crash when adding a server?

prologic commented 5 years ago

https://kiki.network/ is also reporting a 502 Bad Gateway -- Maybe a possible cause?

schollz commented 5 years ago

Yeah server is up now

prologic commented 5 years ago

I've been playing with this thing all night and set-up a new federation of my own. I assume https://kiki.network/ is the default federation/region? How do I follow/friend you? :)

schollz commented 5 years ago

Yeah, the network was down, but now it is up.

If you click the pencil and then click "public" you should see a public feed. Then you can click on anyones name and follow them.

prologic commented 5 years ago

My question is however; if you setup your own region how do you follow someone from another region? :)

James Mills / prologic

E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au

On Sun, Dec 23, 2018 at 1:15 AM Zack notifications@github.com wrote:

Yeah, the network was down, but now it is up.

If you click the pencil and then click "public" you should see a public feed. Then you can click on anyones name and follow them.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/schollz/kiki/issues/5#issuecomment-449577149, or mute the thread https://github.com/notifications/unsubscribe-auth/ABOv-h3aMN6FVy2lXhA_bHhij5LB0cQRks5u7kyLgaJpZM4ZcRw6 .

prologic commented 5 years ago

Your server is down again :)