Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-hosted mygpo getting error 500 #815

Open
mhay10 opened this issue Feb 28, 2023 · 3 comments
Open

Self-hosted mygpo getting error 500 #815

mhay10 opened this issue Feb 28, 2023 · 3 comments

Comments

@mhay10
Copy link

mhay10 commented Feb 28, 2023

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
@Ryochan7
Copy link
Contributor

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

@mhay10
Copy link
Author

mhay10 commented Mar 1, 2023

Would probably have to pull the feedservice as well.

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

@Ryochan7
Copy link
Contributor

Ryochan7 commented Mar 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants