invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
399 stars 263 forks source link

Instructions on docker hub are broken! #498

Open ashishbhatiya18 opened 1 year ago

ashishbhatiya18 commented 1 year ago

Setup information

docker run \ -v /app/public:/var/app/public \ -v /app/storage:/var/app/storage \ -e APP_ENV='production' \ -e APP_DEBUG=0 \ -e APP_URL='XXXX' \ -e APP_KEY='XXXX' \ -e APP_CIPHER='AES-256-CBC' \ -e DB_TYPE='mysql' \ -e DB_STRICT='false' \ -e DB_HOST='mysql' \ -e DB_DATABASE='invoiceninja' \ -e DB_USERNAME='ninja' \ -e DB_PASSWORD='ninja' \ -p '8080:80' \ invoiceninja/invoiceninja:5.5.70

Describe the bug Nothing erroneous is printed on the log. However UI is not coming up!

To reproduce Steps to reproduce the behavior:

  1. Go to 'https://hub.docker.com/r/invoiceninja/invoiceninja'
  2. Follow instructions mentioned there to run using the above setup command
  3. See error

Expected behavior The WebUI should be coming up.

Screenshots/logs

2023-02-15T07:00:21Z [INFO] [Entrypoint]: Initialising Invoice Ninja...

   INFO  Configuration cached successfully.

   INFO  Caching the framework bootstrap files.

  config .......................................................... 100ms DONE
  routes .......................................................... 223ms DONE

   INFO  Nothing to migrate.

2023-02-15 07:00:28,678 WARN For [program:php-fpm], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
2023-02-15 07:00:28,678 WARN For [program:scheduler], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
2023-02-15 07:00:28,678 WARN For [program:queue-worker], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
2023-02-15 07:00:28,678 WARN For [program:queue-worker], redirect_stderr=true but stderr_logfile has also been set to a filename, the filename has been ignored
2023-02-15 07:00:28,684 INFO supervisord started with pid 1
2023-02-15 07:00:29,689 INFO spawned: 'shutdown' with pid 55
2023-02-15 07:00:29,696 INFO spawned: 'php-fpm' with pid 56
2023-02-15 07:00:29,703 INFO spawned: 'queue-worker_00' with pid 57
2023-02-15 07:00:29,709 INFO spawned: 'queue-worker_01' with pid 58
2023-02-15 07:00:29,716 INFO spawned: 'scheduler' with pid 59
READY
[15-Feb-2023 07:00:29] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[15-Feb-2023 07:00:29] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[15-Feb-2023 07:00:29] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[15-Feb-2023 07:00:29] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[15-Feb-2023 07:00:29] NOTICE: fpm is running, pid 56
[15-Feb-2023 07:00:29] NOTICE: ready to handle connections
2023-02-15 07:00:31,001 INFO success: shutdown entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-02-15 07:00:31,001 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-02-15 07:00:31,003 INFO success: queue-worker_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-02-15 07:00:31,003 INFO success: queue-worker_01 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-02-15 07:00:31,003 INFO success: scheduler entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
   INFO  No scheduled commands are ready to run.

   INFO  No scheduled commands are ready to run.

   INFO  No scheduled commands are ready to run.

   INFO  No scheduled commands are ready to run.
None

Docker/Kubernetes/Helm:

Server: Docker Engine - Community Engine: Version: 23.0.1 API version: 1.42 (minimum version 1.12) Go version: go1.19.5 Git commit: bc3805a Built: Thu Feb 9 19:46:54 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.16 GitCommit: 31aa4358a36870b21a992d3ad2bef29e1d693bec runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0

<!-- Additional info if using helm on k8s, add the info below -->
<!-- Delete this block if not applicable -->
- Output of `helm version`:

NA

- Output of `kubectl version`:

NA


<!-- End Additional info if using helm on k8s -->

**Additional context**
NA
Quinferris commented 1 year ago

I am facing the same issue. Have you found any resolution? I am also running into issues when trying docker-compose route with permission errors on the directories but permissions are all set..

dwain-lab commented 1 year ago

Did anyone end up solving this issue? I am having the same problem.

shurushetr commented 1 year ago

You guys don't really provide a good info to help you. Use https://invoiceninja.github.io/en/self-host-installation/ docker section to follow the install. I run it with docker-compose.yml behind Caddy. Adopted configs from https://github.com/invoiceninja/dockerfiles It works but there are issues with file upload to tasks and uploading a logo breaks invoice previews in settings.