Skip to content

docs: rewrite self-host Troubleshooting page - #209

Closed
shalomleib wants to merge 33 commits into
invoiceninja:v5-reworkfrom
shalomleib:cursor/user-guide-batch18
Closed

shalomleib wants to merge 33 commits into
invoiceninja:v5-reworkfrom
shalomleib:cursor/user-guide-batch18

Conversation

@shalomleib

Copy link
Copy Markdown
Collaborator

This PR rewrites the Self Host Troubleshooting page so it is easier to skim and friendlier to read. The page now has a task-style title, a one-line intro, question headings where they help, numbered steps, a meta description and alt text. Commands, env keys, the /update and /webcron routes, cron behaviour, mail settings and PDF engines were checked against the public Invoice Ninja source on the v5-stable branch (15ea35e) and the official dockerfiles repository (debian branch 84cc592) on 24 November 2026, and anything outdated was corrected (listed below). Self-host pages cannot be checked in the hosted app.

This builds on #192 through #207, and should be stacked on cursor/user-guide-batch17 at 199072b, so until those PRs are merged this PR also shows their changes.

Original heading slugs are kept as explicit ids, including {#cron-not-running--queue-not-running}, {#email-not-sending}, {#pdf-conversion-issues}, {#phantom-js}, {#hosted-invoice-ninja-pdf-generation}, {#sqlstate42s22-column-not-found}, {#webcron-configuration} and {#nginx-413--request-entity-too-large}. The cron section keeps its link to Self Host Installation {#cron-configuration-1}. scripts/check-search.cjs does not assert heading titles on this page, so that script does not need a change.

The Invoice Ninja source is described as source-available under the Elastic License (ELv2).

Corrections against the self-host source

  1. After cron is working, the app sets the scheduler-running flag every five minutes. The old page said the red warning triangle could take up to an hour to clear and that opening /update?secret= forced a cron recheck. The /update route still clears caches and runs migrations, but it does not itself flip that flag.
  2. Recover from a failed update (and from a 500 error on login or company details) with the official invoiceninja.tar release, then php artisan ninja:post-update or the /update?secret= route. The old 500-error section told readers to overlay the generic "Source code" zip and to delete migration files until migrate succeeded. That conflicts with the official tarball and is not the supported recovery path.
  3. The default PDF engine in the current .env example is hosted_ninja. The old page also called PhantomJS Cloud the default. Official Debian and Octane Docker images use PDF_GENERATOR=snappdf with the image's Chrome or Chromium binary. PDF_GENERATOR also accepts gotenberg and simulator. PHANTOMJS_PDF_GENERATION is still read, but PDF_GENERATOR=phantom is the clearer setting.
  4. Google no longer offers the "less secure apps" setting. Gmail SMTP users should use an app password. The old hardcoded Gmail SMTP relay IP list is not restated; allow outbound access to Google's relay hosts and set MAIL_EHLO_DOMAIN to a real hostname.
  5. Subdirectory installs are not a supported setup (same as the Installation page). The old Troubleshooting page presented an Apache .htaccess rewrite as if a subdirectory install was supported. The rewrite is mentioned only as an unofficial workaround.
  6. For an endless setup loop, run php artisan migrate --seed if the accounts table was never created. Do not run php artisan migrate:fresh --seed on a database that already has data. The old page used migrate:fresh and blamed a missing mysql-client library, which the current setup code does not check (it uses PDO).
  7. Downgrading by overlaying an older invoiceninja.tar does not roll back database migrations. Restore the database backup taken before the upgrade if the schema changed. Links to Installation now use the current docs path, including #cron-configuration-1.
  8. MAIL_MAILER is described against the current app (Laravel 12), not Laravel 9. Mail diagnostics point to storage/logs/laravel.log and to System Logs under Advanced Settings. LOCAL_DOWNLOAD=true embeds the logo in PDFs. WEBCRON_SECRET and GET /webcron?secret= are unchanged and confirmed in code.

cursoragent and others added 30 commits November 23, 2026 07:19
…lity

Replace the four guides with task-style pages checked against the live app, and point existing links and search fixtures at the renamed headings.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Vendors have archive and delete only. Invoice actions now include Reverse, Run Template, and Download E-Invoice when they apply. CSV import still maps columns, without a saved-template step.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
…for readability

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
…for readability

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
… for readability

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
… readability

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
The payments guide still anchors refunds at #refunds. The heading and passage titles are now "How do I refund a payment?".

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
…or readability

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
DocuNinja works only inside Invoice Ninja today. Signing is optional, and a required invoice signature comes before the payment page.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Ticking it applies the design to existing records. Leaving it unticked applies the design only to records created from then on.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Set a tax-exempt product on the product or in Tax Settings. The email-record schedule steps no longer say the invoice starts blank.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
The invoice, quote, credit and purchase order definition heading keeps the slug the table links already use.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
cursoragent and others added 3 commits November 24, 2026 10:38
…te Labeling pages

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Invoice Ninja <shalom@invoiceninja.com>
@turbo124 turbo124 closed this Nov 24, 2026
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

Successfully merging this pull request may close these issues.

3 participants