-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[error] Failed to initiate database #1
Comments
Currently box only supports sqlite, and to use sqlite you need disk write access which heroku doesn't provide. I will add support for mysql and postgres next week |
Yeah, but this isn't ain't Heroku. I have disk access. And glad to hear MySQL support info :) |
Oh sorry! It happens when the data directory does not exist. You can solve it by running |
Thanks, that seems fixed the issue. BTW sorry it sounds dumb, I'm just noob :D, what should be LISTEN_ADDRESS value. I just put 0.0.0.0:3000, what should I enter "Server URL" in the app? |
127.0.0.1 will listen the server on the loopback only, so you need a reverse proxy if you are accessing it outside localhost. If you want to access if from outside without a reverse proxy, you can listen on 0.0.0.0:5000. The server URL in that case would be your_server_ip:5000. So if your server's IP is 1.2.3.4, the Server URL will be 1.2.3.4:5000. PS: Running without a reverse proxy is not recommended outside local networks as you need a reverse proxy to add HTTPS. |
You need to put it as http://ip:5000. That was a mistake on my side. I will fix it in the next release |
Current validator requires explicit mentioning of the protocol, be http or https |
Can I give you any logs or something for more info? |
Yep the IP should be that. But did you check if your server allows port 5000 through its firewall.
A logcat dump using adb would be useful |
|
I see you are using azure. Azure's firewall blocks 5000 by default. You would need to allow 5000 through the firewall. |
I'm using this https://github.com/Area69Lab/Ubuntu-SSH for testing purpose |
Ah I am suspecting that incoming traffic on port 5000 is blocked as I can't reach it |
I followed this and tried, still the same. |
ufw is a firewall tied to the VM, but they can still block ports at the network level using hardware firewalls or routers or stuff like that. in most cases, ufw isn't even activated by default as hardware firewall does the job |
Oh. Then I might gonna wait till you implement Heroku deployment, hopefully looking forward it :) |
By this repo which helps to host Bit Warden_rs instance into Heroku https://github.com/davidjameshowell/bitwarden_rs_heroku |
Closing this issue as
|
I'm trying to host passed server for testing purpose, so if I could, I would try to make Heroku deployment. But it returns this error, can you help me on that? How do I set up a local database and I'm also thinking of trying this https://stackoverflow.com/questions/23550453/golang-how-to-open-a-remote-mysql-connection for Heroku as it needs separate DB
The text was updated successfully, but these errors were encountered: