Follow

@zerok I wanted to try webmentiond but ... opened an issue instead

github.com/zerok/webmentiond/i

@hyde
I got an error trying to install it, the database could not be created.

And, I do not fully understand what to put in the secret key variable.

@zerok

@ggarron

As I already wrote you :) Please tell me what setup you have (Docker, binary, ...) and what settings you have specified. Without that it's really hard to find out what's going wrong there.

@hyde

@zerok

Hi, thanks for your time..

I deployed a brand new docker ubuntu with one-click installer at Digital Ocean.

Once in, run this command.

docker run --rm -e "MAIL_USER=myuser@garron.me" -e "MAIL_PORT=465" -e "MAIL_HOST=smpt.gmail.com" -e "MAIL_PASSWORD=mypass" -e "MAIL_FROM=alias@garron.me" -v ${PWD}/data:/data -p 8080:8080 zerok/webmentiond:latest --addr 0.0.0.0:8080 --auth-jwt-secret mitonana --auth-admin-emails myuser@garron.me --allowed-target-domains www.garron.me

@hyde

@zerok

Got these messages

2:23PM INF UI path served from /var/lib/webmentiond/frontend
2:23PM FTL failed to create sqlite3 driver for running migrations: unable to open database file

@hyde

@ggarron @hyde one thing you could try is to give that `${PWD}/data` folder full permissions (`chmod 777 ${PWD}/data`) just to see if that’s the issue 🙂

@zerok

You know, that while writing you the message I though about that... I will try.

@hyde

@zerok

I am running as root, should not be an issue... but let's see.

@hyde

@zerok

Thank you very much.. It is working now...

I just need to learn to use it.

@hyde

@zerok

One more question, what is the endpoint?

https://webmentiond.url/????

thanks.

@ggarron http://localhost:8080/receive for other folks to send you mentions and http://localhost:8080/ui for the admin frontend 🙂 You can find an example on zerokspot.com/weblog/2020/06/1 🙂

@zerok Hi, is there a way to connect to the docker to see any error log?

I am getting 404 now that I have installed on my real server.. .

The difference with the other one is that this is docker.io instead of docker-ce

@zerok

I think I found a problem.

sudo docker run --rm -e "MAIL_USER=myuser@garron.me" -e "MAIL_PORT=465" -e "MAIL_HOST=smpt.gmail.com" -e "MAIL_PASSWORD=mypass" -e "MAIL_FROM=alias@garron.me" -v /tmp/data:/data -p 8282:8080 zerok/webmentiond:latest --addr 0.0.0.0:8080 --auth-jwt-secret mitonana --auth-admin-emails myuser@garron.me --allowed-target-domains www.garron.me --public-url http://127.0.0.1/

It works locally with that command.

@zerok

sudo docker run --rm -e "MAIL_USER=myuser@garron.me" -e "MAIL_PORT=465" -e "MAIL_HOST=smpt.gmail.com" -e "MAIL_PASSWORD=mypass" -e "MAIL_FROM=alias@garron.me" -v /tmp/data:/data -p 8282:8080 zerok/webmentiond:latest --addr 0.0.0.0:8080 --auth-jwt-secret mitonana --auth-admin-emails myuser@garron.me --allowed-target-domains www.garron.me --public-url http://127.0.0.1/web/

but not with that one... once you change the basedirectory you get 404

Hope that is enough information.

@ggarron What URL are you trying to access that returns a 404?

@zerok
Thanks for your reply.
For you to have it easier I have prepared a pastebin

pastebin.com/x54bU431

thanks again.

@ggarron Ah ^_^ Thanks, now I see the problem. The public-url is only there so that things like links in emails are correct (and if you otherwise change the URL for external visitors by using, for instance, a reverse proxy like nginx) :) Please set it to linode.garron.me:8282 and then accessing linode.garron.me:8282/ui should work :)

@zerok thanks.

Un case of nginx

location /webmention/ {
proxy_pass example.com:8282/webmention/;
}

Should that be the correct configuration while using public-url set to example.com/webmention

Or the webmention part should be omitted in the proxy_pass statement.

I will test different scenarios anyway and let you know.

Sign in to participate in the conversation
Lazybear.social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!