Added Invoice Ninja to BigBearCasaOS

About

Invoice Ninja is a free and open-source invoice and expense management system. It is a web-based application that allows you to create, manage, and track invoices and expenses.

App Store

Instructions

Before Install:

bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/setup-invoice-ninja-for-casaos-step-1/run.sh)"

After Install and make sure the login shows before running:

bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/setup-invoice-ninja-for-casaos-step-2/run.sh)"

Setup screen

DB Host: big-bear-invoice-ninja-db
Database Name: ninja

Fill out your account details after clicking test.

3 Likes

Thanks for this. Which terminal do I run the script in? I’m running casaOS on
proxmox

SSH into your CasaOS server either through the casaos ui or from your computer terminal and run the script.

1 Like

Thanks - the Casa UI terminal login fails. What userID so I use? Sorry complete casa n00b :frowning:
Can I use the proxmox shell for casaos?

That seemed to work. Was already logged in as root

1 Like

You would need to go into the LXC or VM. Don’t use the shell on the server.

1 Like

I believe that’s where I was. Console for the casaos container.
Next question: the second script failed because it cannot find php. Is there a path I can add to a local copy of the script?

image

Sorry for multiple posts. Besides that php error, when I try to launch the app, I’m taken to a IN setup page and when I click Test COnnection, I get this error: SQLSTATE[HY000] [2002] No such file or directory

Hi, I also seem to be facing some issues when running the second command. Getting this error:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/big-bear-invoice-ninja/json”: dial unix /var/run/docker.sock: connect: permission denied
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/big-bear-invoice-ninja/json”: dial unix /var/run/docker.sock: connect: permission denied

Try with sudo at the beginning of the script.

1 Like

worked! Thanks mate appreciate the help

1 Like

Hi, how can I completely uninstall this please. What did the commands that I put in the shell do.

I have installed and it works, but I just want to uninstall it and remove all traces of it please.

To remove user data, you must ensure that you uninstall from CasaOS and that the checkbox is checked.

Hi, thanks for the scripts!

In step 2 I’m getting the following error after all migrations have been run:

Could not open input file: artisan

When trying to rerun the script it breaks on creating the migration table. Any clue what’s going wrong?

Have invoice Ninja setup and I am unable to view or print PDF’s or even access the client portal due to the url for the client portal defaulting to big bear default url. As for the viewing and printing I am unsure. This is CasaOS on a Zimaboard.

Follow the instructions to install and run, it runs but with these issues at the moment.

I keep getting the error message after trying to install the app: “container big-bear-invoice-ninja-init exited (0)”

I did run the first script as advised, using sudo.

Same here, step 2 after running as sudo:

Database\Seeders\DesignSeeder … 275 ms DONE

bash: line 26: php: command not found

App launches but I get a login screen, without the option to create an account

1 Like

I get the same error after seeing the login screen and running the 2nd command.

bash: line 26: php: command not found

Thank you for making this install. One part of the app is broken: the logo (I find reading in Invoice Ninja forums that this often happens for a range of reasons). However in the case of this install it seams to be broken by this Environment Variable:
APP_URL = http://big-bear-invoice-ninja-web

When a logo is uploaded it gets put in a directory like this as seen from developer tools:
http://big-bear-invoice-ninja-web/storage/QzJUGXwI3h2u4gB23J0wYsTa4U3efOGz/qJQhmMDS9cbZYKSFGzZCZNsg8qDQDIG5johm1tk1.png

If you take this url and put it into a web browser it fails to load. If you however change the Ural to the CasaOS IP address and Invoice Ninja port, the url works:
http://192.168.1.174:8080/storage/QzJUGXwI3h2u4gB23J0wYsTa4U3efOGz/qJQhmMDS9cbZYKSFGzZCZNsg8qDQDIG5johm1tk1.png
(This loads the logo image just fine. Also the logo gets loaded properly when creating PDF’s.)

The problem is that the Environment Variable APP_URL dose not seam to work with a port number. I can change it to the CasaOS IP but if the port is added it fails.

Anyone know a fix? (I also have an external url to access this software) I tried changing the APP_URL to the external address, but that did not fix the issue.

Hello guys, I am getting the following error when running the second script from the casaOS terminal. Am I doing something wrong?

Error response from daemon: Container 7d31e22824e21cf83ddcc097d2644a4baa48fd5becf79528f871704c6c314b22 is restarting, wait until the container is running
Error response from daemon: Container 7d31e22824e21cf83ddcc097d2644a4baa48fd5becf79528f871704c6c314b22 is restarting, wait until the container is running
2 Likes