I am newbie using thinger.
I already successfully installed MongoDB and Thinger on my Ubuntu 16.04 server.
I tried to follow the instruction on the server deployment.
I also configured the config.json file according to my server IP address.
Then, i’ve checked the status of MongoDB and snap.thinger in console : ~# sudo service mongodb status
● mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-09-15 09:34:07 UTC; 6 days ago
Main PID: 7175 (mongod)
CGroup: /system.slice/mongodb.service
└─7175 /usr/bin/mongod --quiet --config /etc/mongod.conf
Sep 15 09:34:07 : Started High-performance, schema-free document-oriented database.
Sep 22 07:19:53 : Started High-performance, schema-free document-oriented database.
~# sudo service snap.thinger-maker-server.thingerd status
● snap.thinger-maker-server.thingerd.service - Service for snap application thinger-maker-server.thingerd
Loaded: loaded (/etc/systemd/system/snap.thinger-maker-server.thingerd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-09-20 09:38:50 UTC; 1 day 21h ago
Main PID: 18893 (thingerd)
CGroup: /system.slice/snap.thinger-maker-server.thingerd.service
└─18893 thingerd --fork --runpath=/var/snap/thinger-maker-server/common
Sep 20 09:38:50 : Starting Service for snap application thinger-maker-server.thingerd…
Sep 20 09:38:50 : cmd.go:81: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Sep 20 09:38:50 : Started Service for snap application thinger-maker-server.thingerd.
Everything looks fine, but when i try to open the address in browser, Thinger seems cannot work.
It shows “404 Not Found” error code.
Is there something i missed with the configuration?
Can you please post the log generated by the server? The config.json file would be useful also if you made any change.
You should not touch the server IP address in the config.json file, as it will change the network interface where it listen to receive new connections (unless you have a server with different interfaces and want to only provide thinner.io service from one of them). So, if you just want your server to be reachable from any interface, just keep it 0.0.0.0.
I already restore config.json file to the original using 0.0.0.0 as server IP address.
Here is the syslog that i found on my server:
Oct 25 16:58:04 envinix-512mb-sgp1-01 systemd[1]: Stopping Service for snap application thinger-maker-server.thingerd…
Oct 25 16:58:04 envinix-512mb-sgp1-01 systemd[1]: Stopped Service for snap application thinger-maker-server.thingerd.
Oct 25 16:58:04 envinix-512mb-sgp1-01 systemd[1]: Starting Service for snap application thinger-maker-server.thingerd…
Oct 25 16:58:04 envinix-512mb-sgp1-01 /usr/bin/snap[18452]: cmd.go:81: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Oct 25 16:58:04 envinix-512mb-sgp1-01 systemd[1]: Started Service for snap application thinger-maker-server.thingerd.
Oct 25 16:58:21 envinix-512mb-sgp1-01 systemd[1]: Stopping High-performance, schema-free document-oriented database…
Oct 25 16:58:21 envinix-512mb-sgp1-01 systemd[1]: Stopped High-performance, schema-free document-oriented database.
Oct 25 16:58:22 envinix-512mb-sgp1-01 systemd[1]: Started High-performance, schema-free document-oriented database.
Oct 25 17:00:05 envinix-512mb-sgp1-01 systemd[1]: Starting Automatically refresh installed snaps…
Oct 25 17:00:06 envinix-512mb-sgp1-01 /usr/bin/snap[18505]: cmd.go:81: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Oct 25 17:00:07 envinix-512mb-sgp1-01 snap[18505]: #015#033[KAll snaps up to date.
Oct 25 17:00:07 envinix-512mb-sgp1-01 systemd[1]: Started Automatically refresh installed snaps.
Oct 25 17:00:07 envinix-512mb-sgp1-01 systemd[1]: snapd.refresh.timer: Adding 2h 28min 32.139638s random time.
Oct 25 17:00:07 envinix-512mb-sgp1-01 systemd[1]: snapd.refresh.timer: Adding 1h 26min 8.354819s random time.
I restarted thinger.io and mongodb to refresh the system, but didn’t make any difference. Thinger.io still cannot be accessed via browser.
Update:
There is my mistake that i’ve also installed Apache webserver on my own VPS. I just realize that thingerio has its own webserver. So, i uninstalled apache then thingerio works like a charm.