Hubs-Foundation / reticulum

Phoenix web server for Hubs
Mozilla Public License 2.0
449 stars 180 forks source link

Not sure how to setup postgREST for dev environment #468

Open jabe-dot-com opened 3 years ago

jabe-dot-com commented 3 years ago

Hello! I've been having a bit of a hard time trying to get a local dev instance of Reticulum running, as described in this repo's Readme.

I followed the Readme to setup a Reticulum development environment, started the reticulum instance with iex -S mix phx.server, and am able to have Reticulum serve me the static client and admin page content, both of which are being hosted using the local dev webpack server included for the Hubs client and Admin page. I was also able to sign in and assign my user as an admin.

Because I couldn't join a room successfully, (I imagine due to there being no scenes in the database), I went to the admin page to try to add a scene and an Avatar as well. Unfortunately, going to any of the tabs under "Content" besides "Import Content" gives an "Internal Server Error" at the bottom of the page and an error in the reticulum console. Additionally, trying to import content through .pack links on the "Import Content" tab leads to an infinite loading spiral under the .pack URL textbox and no additional output in the console. Internal Server Error Admin Internal Server Error Console I eventually came across a page in the hubs-ops wiki that describes the importance and steps towards running postgREST for certain features in the admin console, and I noticed that the error I've been getting in the console is related to a GET request to postgREST. After following the hubs-ops page on getting it running, the same issue still happens.

I'm not sure if I'm just missing something obvious, or if I've run out of documentation to lead towards having a working instance. Would love to have some guidance either way.

Thank you!

jabe-dot-com commented 3 years ago

I just renamed the issue to more closely relate the title with the direct problem that I'm having.

bipinparajuli commented 3 years ago

HI, did you resolve this issue. I have same problem please help

monudev commented 1 year ago

Hi

Has anyone resolved this issue? I have the same problem on localhost. Now my local hub admin is not working.

Thanks

bryanenders commented 1 year ago

Please reference Hubs Compose for a working PostgREST setup. Note that some values are specific to Hubs Compose and will need to be adjusted for a bare-metal install.