Follow

I'm trying to setup with a nginx reverse proxy but api/notes/timeline, /streaming and a bunch of other urls are returning 502.
Any ideas of why?

@jae

What's your nginx config like? Misskey doesn't make it obvious in its docs that you need to do a fairly complex proxy config.

I found a working setup here:

qiita.com/YuzuRyo61/items/7105

@NFG Greetings.
My nginx config looks like this 0x0.st/iTwC.txt

Let me try the one you gave me.

@jae

Well, a 502 error means that nginx is receiving the request but for one reason or another cannot get a useful response from misskey.

This could mean many things:

Misskey isn't running,
or the proxy isn't correct,
or Misskey is misconfigured,
etc.

Maybe show me your current nginx config with the new changes?

@NFG
Here is my Nginx config with the changes: 0x0.st/iTx8.txt
And my misskey config: 0x0.st/iTxK.txt

Also, I am launching misskey with
NODE_ENV=production npm start

I tried to build and init misskey several times but nothing changed.

@jae

Hmm, I'm running it as a service.

Can you verify that it's running?

I notice that you're not using HTTP2 in your nginx config:

listen 443 ssl http2;

^ that's what I have. I also don't set my index filenames, misskey handles that. Not sure if it's related.

@jae

I also don't set a root location in my server block, misskey doesn't need that.

@jae

Just checking, you are reloading nginx after these changes right?

@NFG also, on systemctl misskey status, it returns this:

Mar 08 13:09:05 jaekr.me misskey[26058]: ERR * [core cluster] [3] died :(

@jae

1. You can just reload, it's quicker, but yeah that's just as effective.

2. Here's my config (I removed most commented-out lines):

pastebin.com/UDC3VCc7

Maybe that will help you?

3. When I had trouble running misskey it did give more useful errors than just 'died'... =/

I strongly suspect at some point you've skipped a step or done something wrong in your installation. I don't know what it might be... =/

@NFG Dunno, do you know where I can find a more detailed misskey log?

@jae

I mean, status misskey.service gave three or four lines that detailed -why- it failed. It's working now so I can't really tell you what those errors were... =/

Sign in to participate in the conversation
Mastodon

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