Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Troubleshooting

A mistake in a declaration refuses the mount with a message naming it; Mount errors lists each one. This chapter covers what goes wrong once the panel mounts.

Startup

SymptomCauseFix
cargo run stops with an error about a missing asset bundleAssetBundle::load() reads assets/ beside the executable, which cargo build does not writerun the app with topcoat dev, or topcoat asset bundle first; see Deployment
the build script fails fetching Tailwindtablo_build::tailwind() downloads the Tailwind CLI on its first runbuild once with network access; the CLI stays in Topcoat’s cache

Pages

SymptomCauseFix
pages render unstyled, and delete confirmations do not openthe router has no asset bundle, or the panel no shell_assetsinstall both: Assets
a Tailwind class in your own page has no styleTablo’s prebuilt stylesheet holds only Tablo’s classes, and an app’s own scans only the sources styles.css namesbuild the app’s own stylesheet (The stylesheet), and add an @source line for them
a page renders a document inside a documentthe app declares its own #[layout] at the panel prefixdrop it, and frame pages with Panel::layout
a resource is missing from the sidebarits policy does not allow ViewAny for this userallow ViewAny; see Policy
no Create button, or the create page answers 403the policy does not allow Create, or the resource’s Form is NoFormallow Create and name a record form
a record’s detail page answers 404the resource declares without_page(ResourcePage::View)drop it, and declare a detail if the default lists no column
`Post` declares no default columnsthe resource’s model does not implement PanelModeladd #[derive(tablo::PanelModel)] to the model
a tenant-owned resource answers 403 everywherethe request has no tenant: the user has no membership, and the shipped AdminUser has nonesign in your own user table, whose PanelUser::tenants lists memberships
the export answers 413the search and filters match more rows than the export writesnarrow the list before exporting

Signing in and forms

SymptomCauseFix
every form POST answers 403 off localhostthe session and CSRF cookies are Secure, so the browser drops them over plain HTTPserve the app over HTTPS
the browser bounces between the app’s login page and {prefix}/loginExternalAuth::current_user answers None on panel requests for a user the app signed inread the same session the login page writes; install the app’s cookies and sessions
the browser bounces the same way, with a new auth_sessions row each timethe browser refuses __Host-tablo_session_{prefix}, which needs HTTPS or localhostserve the panel over HTTPS
global search and the notification bell answer 401 for a user signed in to two panelsa proxy strips the Referer or cuts it to the origin, so the request names no panel and two sessions dispute itkeep the Referer’s path on same-origin requests
a live shard answers 500 and the log says a runtime socket opened outside Tablo’s stampthe app adds a RuntimeLayer after .panel()add it first, or leave it to the panel
a user signs in and gets 403the user has no panel access: AdminUser.active is false, or your PanelUser denies itactivate the user
sign-ins answer the wrong-password message for a correct passwordthe throttle allows five attempts a minute per login and address, and Auth::account_throttle, when set, counts per login across addresses; behind a proxy every client shares the proxy’s addresswait out the window; install TrustedProxies on the router
a form POST answers 400it carries a key the form does not declare: a custom control posting an extra input, or a hand-built requestpost only the record form’s keys
a route you added under the prefix redirects to the login page or answers 401the auth gate covers every path under the panel prefixsign in, or move a public route outside the prefix