How do I set up Acralyzer?

I installed Acralyzer using this tutorial and got the following options to integrate Acra into my Android app:

httpMethod = Method.PUT,
reportType = Type.JSON,
formUri = "http://localhost:5984/acra-myap/_design/acra-storage/_update/report",
formUriBasicAuthLogin = "myap-reporter",
formUriBasicAuthPassword = "a11youneedisl0v3"

      

Before installing Acralyzer, I ran

ssh -L5984:127.0.0.1:5984 user@AAA.BBB.CCC.DDD

      

(establishes a tunnel to CouchDB running at AAA.BBB.CCC.DDD

), where AAA.BBB.CCC.DDD

is the address of my DigitalOcean instance.

Smart as me, after installing Acralyzer, I killed the ssh process and tried to open the url http://AAA.BBB.CCC.DDD:5984/acra-myap/_design/acra-storage/_update/report

.

I couldn't connect to it from my browser, which means the Android app won't be able to send crash reports to Acralyzer.

What can I do to make the Acralyzer ( http://AAA.BBB.CCC.DDD:5984/acra-myap/_design/acra-storage/_update/report

) url accessible without ssh tunnel?

+3


source to share


2 answers


It seems that the port you are trying to communicate with is not open. You have to tell iptables

(linux firewall) to accept incoming traffic on port 5984:

sudo iptables -A INPUT -p tcp --dport 5984 -j ACCEPT

      



You can find more information on how to create iptables rules and how to save them here .

Digital Ocean may have a firewall that will block you until it reaches your server, but it is worth trying to open a port on your instance.

+2


source


By default, the firewall on DigitalOcean computers is configured to accept all traffic, so the iptables rule should not be necessary. The problem is most likely that couchdb bind_address is still set to the default value "127.0.0.1" - that is, localhost. After defining an administrator account, you can set bind_address to "0.0.0.0" in the configuration in the Futon dashboard, which will make it listen on all IP addresses or some other specific address.



+1


source







All Articles