PanelAlpha Documentation
Back Home
Live Demo Get Started

Monitoring and logs

Documentation

    # Monitoring and logs

    You can find out whether a site is working, what it is using, and what it printed, without opening a shell inside a container.

    The fastest way is to ask. The assistant reads all of these sources and gives you one answer:

    Is this project up? Read its deploy log and tell me what the site is serving.
    How much CPU and disk is this host using?
    

    Five sources sit behind that answer. Each one answers a different question.

    # 1. The deploy log: "why did it fail?"

    The deploy log records what happened during the last build and start. A failed deploy explains itself here, in a plain sentence when the engine recognises the cause.

    How to read it: Reading errors. Open the address the assistant gave you. If it ends in .local, nobody on the internet can open it: Domains and HTTPS.

    # 2. Is it still serving itself?

    A deploy log describes one moment in the past. It says nothing about the site a month later, after a database filled up, a certificate lapsed or someone deleted the index page over FTP. No deploy log mentions those, because the deploy succeeded.

    Every six hours the engine opens every deployed application and checks whether it still serves itself. You get a list of the ones that do not, with what each serves instead:

    Swept 14 project(s): 2 not serving themselves, 2 reported.
    

    To ask right now instead of waiting:

    Is this project still serving itself correctly?
    

    Or for everything:

    Sweep every project on this engine and tell me which ones are not serving
    themselves properly.
    

    The sweep skips suspended projects and projects you stopped on request, because a site stopped on purpose is not a fault. A project whose container is down without you asking is listed, with stopped as what it serves.

    An application that keeps restarting is reported only once the engine has confirmed the loop. A single restart during a deploy is not reported.

    The check, the six-hourly sweep and the deploy log cover projects that run in their own container. Traditional PHP hosting is not checked this way. Open its address, and read its domain logs and PHP error log (section 3).

    How to read the result: What the engine checks.

    To see whether anything is running on a project right now, such as a deploy, a push or a restore, ask for its tasks:

    Is anything running on tshop right now?
    

    A push counts as a task, so it shows up here too. By default you see the tasks your own token started and the ones the engine started itself. A token limited to some projects sees only those projects.

    # What the engine checks

    The engine asks two separate questions.

    Is it alive? Did anything at all answer.

    Is it serving your application? Is what answered actually your site. A simple up/down check cannot tell, because a placeholder page and your real homepage both return "OK" with a page of content. The engine can tell them apart.

    When the answer is no, the engine names what it found instead. The common ones:

    What the engine reports What is actually happening
    placeholder PanelAlpha's own placeholder page. Your application is not being served. The page answers 404, and the project is reported as not healthy.
    no_application Nothing was deployed into the web directory.
    default_page The webserver's stock "It works!" page.
    framework_default Your framework's blank new-project page. The app runs, but nothing is set up at /.
    missing_entry No front page found: there is no index file, or the webserver cannot read it.
    directory_listing A list of files instead of a page.
    error_page Your application is running and returning an error. This includes an error page of the application's own that answers with status 200: it counts as not serving.
    php_error A fatal PHP error is on the page.
    blank_page Your application answered / with an empty page. In PHP this is usually a fatal error the application hides; its container output or debug mode shows it.
    database_error The application is up but cannot reach its database.
    dev_server A development server is running, not a production build. Fix your start command.
    no_root_route Nothing is set up at /.

    Less often you will also see:

    What the engine reports What is actually happening
    misconfigured_host The application is rejecting the domain it is being served on (Django ALLOWED_HOSTS, or Rails host authorisation).
    dependency_unreachable The application is up but cannot reach a service it depends on, such as a database or cache.
    php_source The browser is being sent PHP source instead of a rendered page. The document root is wrong.
    unclaimed_install The site sends visitors to the application's own installer, and nobody has finished it yet. Whoever opens it first can create the administrator account, so finish it yourself straight after the deploy. The deploy still counts as successful.

    no_root_route is not a fault on a backend API. If your application is only ever called at /api/..., an empty / is a correct observation about a site that works perfectly.

    Ask from chat:

    This site does not open properly. Read the deploy log, check what the site is
    actually serving, and tell me what is wrong.
    

    # 3. Domain logs: "what are visitors doing?"

    Domain logs are the webserver's access and error logs for a hostname. They are not the deploy log. They are the ongoing record of requests that reach the site.

    Show me the error log for shop.example.com.
    

    On a project that runs in its own container, what the application printed is in its container output, for example a stack trace or a worker's errors. Ask for a time window when you know roughly when it went wrong:

    Show me what the app container of shop printed between 14:00 and 14:30 today.
    

    The assistant reads up to 5000 lines at a time. It can limit them to a period such as the last two hours.

    The webserver logs, per domain and the project's own Apache logs, are rotated every month, or sooner when a file grows past 100 MB. The 24 newest older copies are kept, compressed. Copies named by month only (access-2026-09.log.gz) are not part of that count and are never removed. Delete them when you no longer need them.

    PHP errors. On traditional PHP hosting, every project keeps its own PHP error log, one file for all its domains. It holds the last errors your PHP code raised, such as a fatal error behind a blank page.

    Show me the last 100 lines of the PHP error log of tshop.
    

    The assistant can read up to 5000 lines and limit them to a period. The file is also in the list of log files for the project's domains. It is rotated at 10 MB, and the last three older copies are kept.

    On a project in its own container there is no separate file. The assistant gets what the app container printed, as above.

    A project that existed before the update starts writing this log after the update, once its PHP restarts or you change a PHP setting on it.

    Use the webserver logs for 404s and 500s that only some visitors hit. To see how many people came and how much data they transferred, ask for the counts: Visitor statistics. If the assistant cannot read the logs, see Decide what the assistant may do.

    # 4. Usage: "is it running out of something?"

    Usage has two parts: the whole VPS and one project.

    The VPS as a whole:

    How much CPU, memory and disk is this host using?
    

    Samples are kept over several time windows, from the last few minutes up to the last 30 days, so you can tell a spike from a trend. The history comes as averages (metrics_history):

    • per minute over the last hour
    • per 10 minutes over 24 hours
    • per hour over 7 days
    • per 6 hours over 30 days

    It includes disk use of /home, where the projects live. system_info names the host itself: host name, operating system, kernel, uptime, CPU cores, total memory, the data disk's size and the main IPv4 address. A token limited to some projects does not get these.

    How has this server's CPU and memory looked over the last 7 days?
    

    One project's CPU and memory:

    How much CPU and memory has tshop used over the last 24 hours? Which of its
    containers uses the most?
    

    Every minute the engine measures each project, its own Docker included, and every container inside it. CPU is a percentage where one core is 100. Memory leaves out cache the system can free.

    The project list carries each project's latest reading as usage, so one list shows them all. project_metrics_history gives the project over 1 hour, 24 hours, 7 days or 30 days. container_metrics gives each container now, or over one of those ranges.

    Minute readings are kept 48 hours and hourly averages 30 days. The server operator can change that in /opt/panelalpha/shared-hosting/.env-core with PROJECT_METRICS_RAW_HOURS (at least 2) and PROJECT_METRICS_LIMIT_DAYS (at least 1).

    One project against its plan:

    How close is this project to its limits?
    

    The answer covers storage, the disk its container logs take, domains, subdomains, FTP and SFTP accounts and databases.

    • This month's transfer is also on every project in the project list (bandwidth, updated every hour), with its limit. -1 is unlimited and null means no limit was set.
    • Storage counts the project's files and also its own Docker data (images, build cache and database data), which is often the larger part.
    • Disk use is measured in the background every 15 minutes, so a file you just added can take up to that long to show. Before the first measurement, it is measured when you ask.

    To change a limit: Limits.

    From inside a project. If you run a monitoring app or agent in a project (Zabbix, Netdata, node_exporter and the like), two files in it describe the whole server, not the project:

    File Inside a project it shows
    /proc/meminfo the server's total memory, not the project's limit
    /proc/loadavg the server's load, which includes every other project

    Linux does not limit these two files to a container, so an agent that reads them reports the server's numbers as the project's. The project's own figures are in its cgroup files. Point the agent at these:

    File What it is
    /sys/fs/cgroup/memory.max the memory limit, in bytes
    /sys/fs/cgroup/memory.current the memory in use now, in bytes
    /sys/fs/cgroup/cpu.stat CPU time used (usage_usec)

    In an app container, memory.max is that service's own limit. The container's memory limit in the project's metrics is the lower of the container's own limit and the project's. A limit above the project's is lowered to fit inside it when the project deploys. A service that sets only a reservation reads max. The project's plan limit still applies to it.

    # 5. Lighthouse: "is it fast?"

    Lighthouse is an optional performance and quality report for a site the engine hosts. It accepts only the engine's own domains, their aliases and tunnel hostnames. Any other address, including an IP address, is refused. If the site redirects to a domain that is not one of those, no report comes back.

    Run a Lighthouse report on this site.
    

    A report is separate from deploying. A deploy never waits for one. If the assistant cannot run one, see Decide what the assistant may do.

    # Troubleshooting

    The deploy log is empty. The project is probably still being created. Wait a minute. If the log stays empty, ask for an older deploy by its ID.

    The health check reports nothing, but I know sites are broken. It reports only applications it could reach. It skips suspended projects and projects it cannot open instead of reporting them. Ask about the specific project directly. The answer says why it was skipped.

    A site is fine in my browser but reported as not serving itself. The engine checks from inside the account, so it may see something you do not. Often your browser shows a cached page, or the proxy serves something different from what the application returns. Trust the engine's answer and ask what failed.

    # More requests to try

    Mode is the lowest permission mode that allows the request: read, modify or full (Decide what the assistant may do). The examples assume a project named tshop.

    The server

    How is this server doing? Give me CPU, memory and disk now, the last five
    minutes, the last hour and the last 12 hours, and the hourly averages.
    

    Mode: read. Tools: metrics_latest, metrics_current, metrics_last_5_minutes, metrics_last_hour, metrics_last_12_hours, metrics_last_hour_averages, metrics_history, system_info. Check: the numbers are consistent between views, and the memory budget is shown. metrics_latest has CPU, RAM, swap, disk I/O and network I/O but no disk use. Disk use comes from metrics_current (and metrics_history for /home over time). A project's own disk use is in project_usage.

    One site, is it itself?

    Is tshop serving the application itself, or something else?
    

    Mode: read. Tools: app_health_check with timeout and attempts. Check: the answer separates "something answers" from "it is the application", and says what to do when it is not.

    Everything at once

    Sweep every project on this engine and tell me which ones are not serving
    themselves properly.
    

    Mode: read. Tools: project_list_summary, app_health_check per project. Check: a suspended project is skipped, and each failure is paired with what it serves instead.

    Web logs

    List the log files of shop.example.com on tshop, then show me the end of the
    error log.
    

    Mode: read. Tools: domain_log_list, domain_log_download with offset and length. Check: the answer is an excerpt, not the whole file, and the log is the site's, not the deploy log.

    PHP errors

    Show the last 50 lines of the PHP error log of tshop, only from the last hour.
    

    Mode: read. Tools: php_error_log_get with lines (up to 5000) and since. Check: on traditional PHP hosting the lines come from the project's own log, for all its domains. On a container project the same request returns the app container output.

    What the app printed

    Show what the app container of tshop printed between 14:00 and 14:30 today, at
    most 200 lines.
    

    Mode: read. Tools: container_list, container_service_logs with since, until, lines. Check: the lines are inside the window and the service name comes from container_list.

    Restart pieces

    Restart only the app service of tshop. Then stop the whole project and start it
    again.
    

    Mode: modify. Tools: container_service_action, container_project_action, container_list. Check: after each action the containers are running again, and the site answers.

    Is it fast?

    Run a Lighthouse report on https://shop.example.com/ for desktop, summary only.
    Then try https://example.org/.
    

    Mode: read. Tools: lighthouse_report_create with desktop_preset, summary. Check: the first returns scores. The second is refused, because only the engine's own domains, aliases and tunnel hostnames are accepted. An IP address is refused the same way.

    Report a problem

    File a bug report about tshop: the site shows a blank page after deploy.
    Severity: medium. Attach the deploy log and health, and show me the report
    that was filed.
    

    Mode: modify. Tools: bug_report_create with attach_log and attach_health. Check: the answer carries the redacted report that was queued (there is no preview before it is filed), no .env values or tokens are in it, and the status says accepted and queued, not delivered.

    What is running

    List the tasks that are running on tshop. Then list the latest ten, newest first.
    

    Mode: read. Tools: task_list with name, status active, since, task_get. Check: only tasks of tshop come back, a push appears as a task, and a token limited to some projects cannot ask for every project's tasks.

    Tasks

    List the log lines of the latest task for tshop after the last line you saw.
    

    Mode: read. Tools: task_get with after_id, task_log_list with since. Check: only newer lines come back, even when several share one second.

    # From the server

    Deploy logs, health checks and site logs as pae commands: CLI commands. The sweep of section 2 runs on demand with pae project:health:report.