mygpo icon indicating copy to clipboard operation
mygpo copied to clipboard

Self-hosted mygpo getting error 500

Open mhay10 opened this issue 2 years ago • 3 comments

I am getting an error 500 when trying to register an account on a self-hosted gpodder instance. It this normal?

Here is my Docker file for mygpo and nginx reverse proxy

mygpo:

FROM python:3.9-alpine as server

RUN apk add --no-cache \
    git \
    gcc \
    python3-dev \
    py3-pip \
    postgresql-dev \
    musl-dev \
    libffi-dev \
    zlib-dev \
    libpq \
    libwebp \
    libjpeg

RUN git clone -b  https://github.com/gpodder/mygpo.git
WORKDIR /mygpo

RUN pip install -r requirements.txt
RUN pip install gunicorn celery django-celery-beat

EXPOSE 8000
CMD [ "gunicorn", "-b", ":8000", "mygpo.wsgi" ]

nginx:

FROM nginx:alpine

COPY default.conf /etc/nginx/conf.d/default.conf

mhay10 avatar Feb 28 '23 20:02 mhay10

For this code base, the answer is yes. You might have better luck if you pull from my old fork and try it instead. Would probably have to pull the feedservice as well.

https://github.com/Ryochan7/alphagpo https://github.com/Ryochan7/alphagpo-feedservice

Ryochan7 avatar Feb 28 '23 22:02 Ryochan7

Would probably have to pull the feedservice as well.

Would the feedservice go in the same or different container as the main server?

mhay10 avatar Mar 01 '23 00:03 mhay10

You could put the feedservice project in a separate container and be fine; I had both Django projects hosted on a single Linode VPS running Debian with no use of containers. mygpo uses a web API for the feedservice to grab feeds and return a JSON object with relevant information. My custom version has a few tweaks that I needed when I was running a public mygpo instance. Using the original feedservice from gpodder.net might work mostly but I remember the server being pretty slow with responses and I think it would occasionally error out.

Ryochan7 avatar Mar 01 '23 23:03 Ryochan7