Kiru is a user on waifu.one. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Kiru @kiru

Hi,

I'm trying to setup a pleroma instance. I'm using the @angristan Docker image (github.com/Angristan/dockerfil) and using the basic nginx config (git.pleroma.social/pleroma/ple) by @quad
But I got this Phoenix.Socket error. I'm trying to access to the instance from localhost so I don't think the error message is useful...

Can someone help me please?

@quad

· Web · 1 · 1
@kiru @quad @angristan Change host from localhost to 127.0.0.1 on line two of the config.

Also https probably won't work unless you give it some kind of valid certificate. I recommend just leaving it at http then putting nginx in front of it. Also by default on most Linux distros, non-root users can't bind to ports below 1024 in most situations. So try setting the port to something higher than that.

@quad Thanks for your help. It's always borked..

@kiru @quad @quad @angristan did you run the configuration script? the secrets file has to be named dev.secret.exs or prod.secret.exs, depending on your environment. do not change the url settings in the secrets file, they are correct as generated from the script.
@lain @kiru @quad @angristan He uses a docker file. Said docker file seems to just copy the config/secret.exs file and give it a new name.

@lain Which URL settings are you talking about? And yes, is doing copying the file under config/prod.secret.exs (github.com/Angristan/dockerfil). Which configuration script are you talking about? 😰

@kiru sorry, the docker install seems to work very differently from the normal one. I have no idea how this is supposed to work.

@lain I guess I'll just go to the normal install.

@lain I always have this error with the normal installation.

@kiru weird, but i can't help you right now because it's too late.
@kiru @kaniini did you change the shceme? please set it back to https. do you still get the error then?

@lain Yes, I always get the error with https or http. Even if I try to change the port.

@kiru don't change anything there. Is something already running on your port 4000? I've never seen that error.
@kiru what os is this? What Erlang version? What elixir version?

@lain

OS: Debian 9.4 (Kernel: 4.15.17-2-pve)

Erlang Version: 20

Elixir version: Elixir 1.6.5

@kiru weird... Many run exactly this... I'm not at the PC anymore, but I can try to help you tomorrow, if nobody else can. You might want to ask in #pleroma on freenode

@lain there is 182 peoples on the irc but no one is talking :(

@Sir_Boops It's not fixing anyways... :awooangery:

@kiru is this still the file you wrote yourself? please run the generator.

@lain I used `mix generate_config`.

@lain @quad @quad @angristan News:

I changed the port to 4009 on prod.exs, and no error comes up. waifu.social/ is not loading tho...

@kiru @quad @quad @angristan I think that config file is supposed to have been copied to either prod.secret.exs or dev.secret.exs
@anarchosaurus @kiru @quad @angristan Oh. I didn't notice he printed the secret.exs file.

The docker file should've already copied it to a prod.config.exs file. Figure out where that file is located and edit that instead