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

Cannot start Invoiceninja - MySQL connection refused #11

Open
flyguy729 opened this issue Jun 29, 2024 · 1 comment
Open

Cannot start Invoiceninja - MySQL connection refused #11

flyguy729 opened this issue Jun 29, 2024 · 1 comment

Comments

@flyguy729
Copy link

Hello. After installing InvoiceNinja, the docker does not start. So i changed the UnraidIP:port manually because it doesnt start, to my physical unraid IP for the DB and App_URL and then it starts. However, webui doesnt work. LOG has this sql error connection refused.

How do i solve this? Thank you!

text error warn system array login

2024-06-27T16:53:25Z [INFO] [Entrypoint]: Initialising Invoice Ninja...

INFO Configuration cached successfully.

INFO Caching framework bootstrap, configuration, and metadata.

config ........................................................ 46.07ms DONE
events ......................................................... 1.96ms DONE
routes ........................................................ 98.90ms DONE
views .............................................................. 1s DONE

INFO Discovering packages.

imdhemy/laravel-purchases ............................................. DONE
intervention/image .................................................... DONE
invoiceninja/inspector ................................................ DONE
laravel/slack-notification-channel .................................... DONE
laravel/socialite ..................................................... DONE
laravel/tinker ........................................................ DONE
laravel/ui ............................................................ DONE
livewire/livewire ..................................................... DONE
nesbot/carbon ......................................................... DONE
nunomaduro/termwind ................................................... DONE
nwidart/laravel-modules ............................................... DONE
sentry/sentry-laravel ................................................. DONE
socialiteproviders/manager ............................................ DONE
turbo124/beacon ....................................................... DONE

In Connection.php line 813:

SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select t
able_name as name, (data_length + index_length) as size, table_comment
as comment, engine as engine, table_collation as collation from infor
mation_schema.tables where table_schema = 'ninja' and table_type in ('BASE
TABLE', 'SYSTEM VERSIONED') order by table_name)

In Connector.php line 65:

SQLSTATE[HY000] [2002] Connection refused

I've enable this in Docker settings as well but still connection refused :

Host access to custom networks:

@flyguy729 flyguy729 changed the title Cannot start Invoiceninja - unraidIP:port doesnt work Cannot start Invoiceninja - MySQL connection refused Jun 29, 2024
@kiwimato
Copy link
Owner

@flyguy729 this container does not have MySQL built in, you have to point it to another container where MySQL runs and provide the IP, port & credentials. Did you already do that?

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