Hey all, I’ve been trying to get up and running with Friendica in a docker container behind Nginx Proxy Manager and connected to a separate MariaDB container.

The scenario that I have is that the only combination I’ve gotten to work to connect to Friendica is to use the alpine docker image with the complete web server, as putting configs into separate nginx instances wasn’t getting me anywhere. However, using the full image, I can get to the UI and do the install to set things that I already set in env variables(?) whatever.

But what happens is that when it goes to save, it fails to save to the DB and maria db says that it rejected the connection for unauthenticated user and unknown host (implying to me that it rejected the connection before it even pulled this info). But the thing is that I’ve been able to shell into the friendica container and connect to the MariaDB. I can use adminer and log in as the friendica user to the friendica db that I created. Has anyone run in to this?

I’m starting to wonder if I need to use actual MySQL, maybe? This is a very strange issue as I’ve been able to create the database, user with privileges, and log in as that user. The host name for the user is ‘%’, so ‘friendica’@‘%’.

I’d appreciate any help that I could get there.

  • RagingHungryPanda@lemm.eeOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    It didn’t really change when I put the db in the same compose file. I have them on the same docker network, so any container can reference any other container by its name, in this case mariadb and access any ports, not just the ones that are exposed.

    Evidence for this working is that MariaDB is logging the rejected connection attempts.

      • RagingHungryPanda@lemm.eeOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Unfortunately no, it’s just one log line over and over. At some point it did have the username and IP, but it usually contains neither.