Git Product home page Git Product logo

Comments (7)

Hermsi1337 avatar Hermsi1337 commented on June 25, 2024 1

Oh sorry @lalop !!
Yeah, I finally solved it. There was another container named application in my nginx-proxy-network.
I fixed it by adding an alias to the the fpm-php container for default network.

Sorry for not closing this issue!

from dockerfiles.

ghhv avatar ghhv commented on June 25, 2024

Hi,
I wish I'd seen this 6 days ago. I too have had this problem trying to move two Ninja installations to a new server under Docker. I couldn't even get a fresh install happening.

After going crazy thinking it was an Nginx/Proxy/Let's Encrypt issue like I'm sure you did, I discovered tonight that the Docker container with the database is not being seeded and nothing works. There's nothing in any logs anywhere to indicate such an error.

If you want to prove the same thing to yourself, connect to your DB container via
docker exec -it container_db bash
connect to mysql with
mysql -u username -p ninja it will prompt for password.. change username and database name to suit.

type show tables; and you will probably find like I did, that it's empty.

The other option which I didn't try yet is dropping back to a previous image version other than latest.

Mega-frustrating.

from dockerfiles.

Hermsi1337 avatar Hermsi1337 commented on June 25, 2024

Hey @ghhv

many thanks for your thoughts. But unfortunately the database-container is running very well.
I guess that my problem is located at the network-layer. As soon as I remove the nginx-proxy-network from webserver-networks, everything's working smoothly.

TBH:
I have absolutely no idea how to solve this one. For me, invoice-ninja is the only image that runs into this error. I will investigate this further and hopefully I will find a solution.

from dockerfiles.

ghhv avatar ghhv commented on June 25, 2024

Doh.. that's a shame.. so weird on my end.

As for your Docker-Compose.YML file, you're missing the - VIRTUAL_NETWORK= which should be set to ${NGINXPROXYNETWORK} in the WEB container.

Hopefully that fixes it.

Cheers,

from dockerfiles.

ghhv avatar ghhv commented on June 25, 2024

I also have the web port set to something different so that the external proxy port 80 redirects to it. Which will be needed for multiple end points on the same Docker server.

ports:
- 8000:8083
environment:
- VIRTUAL_NETWORK=xxx
- VIRTUAL_PORT=8083

The error you're getting normally means something is not listening at the port expected. See how those changes go.

from dockerfiles.

hillelcoren avatar hillelcoren commented on June 25, 2024

Maybe adding TRUSTED_PROXIES to the .env file will help.

http://docs.invoiceninja.com/en/latest/configure.html#using-a-proxy

from dockerfiles.

lalop avatar lalop commented on June 25, 2024

@Hermsi1337 do you solved your issue ? Can we close this one ?

from dockerfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.