Troubleshooting
Quick diagnosis: the app is not responding
Follow the order below. Each step rules out a common cause and takes less than a minute.
Platform status: check status.zenifra.com. If there is an incident, follow it there.
Project state: in the console, the project must show Project running. If it shows Creating project, Preparing project, or Deploying, wait for the deployment; if it shows Project stopped, see Project states and check the organization credit.
Deploys: on Git projects, did the last build succeed? If it failed, the step and the reason appear in the log. See Build failures.
Application logs (available on every plan): look for errors right after startup, such as a missing variable, a database connection failure, or a module not found.
Port and address: the app must listen on 0.0.0.0 and on the same port as the Port field. This is the most common reason for a URL that does not respond while logs show no error.
Variables: confirm that every required variable exists in the project. Remember that saving variables restarts the instances.
Health check: when enabled, the route must answer 2xx quickly. A slow route or one behind a login makes the instance restart in a loop. See Health checks.
Memory: frequent restarts with memory spikes mean the plan is too small for the app. See High memory usage.
If none of this helps, contact support following the help center.
Build failures on Git projects
On GitHub, GitLab, and Forgejo projects, the build logs, in the Deploys tab, show the output of each project command up to the failure, followed by a final message with the identified cause. Review the logs and the guidance shown in the project first.
When the saved repository access no longer exists, Zenifra attempts to locate and validate the same repository again without changing its organization, name, or branch. If recovery is not possible, use Reconnect repository in the project and then start a new build. This action does not start a build automatically.
Common problems and how to investigate each scenario in the Zenifra console.
Deploy failure
"Build failed"
Check the build logs in the Deploys tab of the project page in the console. If you prefer the terminal, use zenifra deploy watch or zenifra builds logs.
| Error | Fix |
|---|---|
npm ERR! Cannot read properties of undefined | Review package.json and package-lock.json |
Cannot find module | Confirm whether dependencies are declared correctly |
pip install failed | Check requirements.txt |
| Custom build failure | Review the pre-build, build, and start commands configured in the project |
| Build has no useful steps | Confirm start is configured and build is only set when the project really needs it |
The configured root directory does not exist in the repository. | Check the project's Root directory field: the folder must exist on the configured branch, with a path relative to the repository root (for example, backend or apps/api) |
"App crashed on startup"
Check the application logs in the console (available on every plan).
| Error | Fix |
|---|---|
EADDRINUSE | Check whether the application is listening on the expected port |
ECONNREFUSED | Review the database URI or confirm whether the database is accessible |
Cannot find module | Missing dependency in the project |
| Incorrect port | Confirm whether the Port field configured in the project matches the port used by the application |
Important: Zenifra does not define the port automatically. The value configured in the Port field must be the same value your application actually listens on.
Automatic pause of an application that does not start
An application that cannot start keeps restarting: it answers no one and keeps the plan resources busy. For this reason, Zenifra automatically pauses an application project when every instance keeps stopping right after it starts, with none staying up, for 24 hours in a row.
The automatic pause does not happen when:
- at least one instance is up;
- a build or a deploy is in progress, or a deploy succeeded in the last 24 hours;
- a new instance started in the last 24 hours (for example, after changing environment variables);
- the application does not start because its image could not be downloaded (see the section below).
It applies only to application projects. Databases, Jobs, Key Value, Queues, and Object Storage are never paused by this rule.
What happens on the pause
- The project shows the Project stopped status, the same as when you click Pause, and the application address shows the paused application page.
- Nothing is deleted: environment variables, storage, domains, and settings stay as they were.
- While it is paused, running time is not billed (see the notes about Project stopped).
- The organization owner receives a single email with the reason and the last error message from the application. The repeated error alerts for that project stop.
- In the console, the project page shows the Paused automatically: the application did not start for 24 h notice, with the last error message (for members who can read the project logs) and the Resume button.
How to fix and resume
- Read the last error message in the console notice or in the email. The most common causes are the ones in the App crashed on startup table: a missing or wrong environment variable, an unreachable database, and a port different from the one the application listens on.
- Fix the cause. For environment variables and the port, edit the project in the console; for code changes, push the fix to the repository.
- Click Resume on the project page. If the fix was in the code, deploy again after resuming.
- Watch the Logs tab: if the application stops again, the reason shows up there.
The application image could not be downloaded
For projects whose source is an image, Zenifra needs to download the image from its registry before starting the application. When that is not possible, the console shows a warning on the project page with the reason. The warning can appear when the project is created, when the image is changed, on deploy and when instances restart, and it goes away once the image can be downloaded again. While no instance can start, the project shows as unavailable and the instance count shows 0; if a previous version is still live, it keeps serving and the project stays running.
Project creation and image changes can be refused up front when it is already possible to confirm that the image does not exist or cannot be accessed. In that case nothing changes in the project.
Each reason has a stable code, the same in the API and in the console:
| Code | What it means | What to do |
|---|---|---|
IMAGE_NOT_FOUND | The image or the tag does not exist, or the image name is invalid | Check the full image name and the tag (for example, 1.0.0 and v1.0.0 are different tags) and whether the tag was published to the registry. Then fix the project image |
IMAGE_PULL_UNAUTHORIZED | The image is private and the project has no credential, or the credential is invalid, expired or lacks read permission | Make the image public in the registry or configure the credential, as in Private registry. Also check the image name (see the note below) |
IMAGE_PULL_FAILED | The registry did not respond or is unreachable | Check that the registry address is correct and reachable from the internet, then try again |
Important: registries such as GitHub Container Registry and Docker Hub respond the same way for a private image and for a repository that does not exist. Because of that, a mistyped image name can also show up as
IMAGE_PULL_UNAUTHORIZED.
On GitHub Container Registry, the credential must be a token with the read:packages scope. Alternatively, make the package public in its settings on GitHub.
Through the API
GET /v1/project/:idincludes theimage_pull_failurefield withcodeandmessagewhile the problem lasts. See Project information.POST /v1/projectandPATCH /v1/project/:id/imagecan respond400withcodeIMAGE_NOT_FOUNDorIMAGE_PULL_UNAUTHORIZED. See Create a project and Update deploy image.
Database connection problems
"Connection refused"
Check the connection details in the console.
Confirm:
- the database was created in the console
DATABASE_URLwas configured manually in the HTTP project- host, port, username, password, and database name were copied correctly
- the connection uses TLS as in the console string (
sslmode=requirefor PostgreSQL; on MariaDB, the string for your driver in the Driver selector). See how to connect to PostgreSQL and to MariaDB
"Access denied" on MariaDB with the right password
Access denied for user '…' (using password: YES) looks like a wrong password, but, with the right password, the cause is a connection without TLS: MariaDB always requires TLS. In the database's Connection panel, pick your driver in the Driver selector and copy the Connection string for your driver, which already turns TLS on. In PHP (PDO, mysqli, and Laravel), follow the MariaDB examples.
"no encryption" on PostgreSQL
With TLS required, PostgreSQL rejects connections without TLS with an error that contains no encryption. Use the console URI, with ?sslmode=require. If the application builds the connection from separate fields (host, port, user, and password) in node-postgres, postgres.js, or Bun, add ssl: true to the driver configuration or switch to the URI.
"SECURITY WARNING" notice in node-postgres
pg (node-postgres) prints a notice about the meaning of sslmode=require. This is expected: the connection uses TLS normally.
"Too many connections"
Common solutions:
- use connection pooling in the application
- review connection leaks in the code
- analyze whether the current number of database or application instances is adequate
Performance problems
High memory usage
Check:
- memory leaks
- large payloads
- lack of pagination
- a plan below current needs
Slow responses
Check:
- database queries and need for indexes
- lack of cache
- overly large responses
- insufficient number of instances for the current load
Empty logs
Check:
- whether the project shows Project running
- whether the application is writing to
stdoutorstderr - whether the expected message is still in the recent output: in the Recent tab, logs are read live from the instances, with no stored history. With Log history on, look in the History tab, which has up to about 1 hour of delay
Important: application logs and build logs are different flows. the Deploys tab shows the publication of Git projects; the Logs tab shows the application after it starts.
Project states
| Status | Meaning |
|---|---|
| Creating project / Preparing project | Project is being created or prepared for its first deployment |
| Deploying | A new version is being deployed |
| Project running | Project is running normally |
| Project has unavailable instances | One or more instances are not responding; check logs, port, and health check |
| We could not prepare the project | Creation or the build failed; check the Deploys tab |
| Project stopped | No instance is running; project is inaccessible. It may have been paused by a member or automatically |
Notes about Project stopped
- hourly + ephemeral storage: execution billing stops
- hourly + persistent storage: storage billing continues
- monthly/yearly: stopping does not change the final contract value
Free plan limit reached
The free plans (Free, DB-Free, Cache-Free, and Queue-Free) are legacy plans: only organizations that already received the free plans can use them, and other organizations get an error when trying to create a project on them. In that case, choose a paid plan.
When you create a project, the console shows the Free plan limit reached notice once the organization has used its free resources. The message tells you which limit was reached:
| Message | What to do |
|---|---|
| Your organization already uses the 2 Free plan instances. Delete a Free project or choose another plan. | Delete a project on the Free plan or select a paid plan for the new project |
| The Free plan allows only N more instance(s). Reduce the instances or choose another plan. | Lower the number of instances to at most N (the number shown in the notice) or select a paid plan |
| Your organization already uses its 2 free database projects. Delete one of them or choose another plan. | Delete a free database (PostgreSQL or Key-Value) or select a paid plan |
To keep a Free project without deleting another one, open the project and use Move to a paid plan: it moves to the chosen paid plan, without being recreated, and frees the free quota. When you Resume a Free project with the quota full, the warning offers the same shortcut. After the change, you cannot go back to the free plan.
The limits of each free plan are listed in Limits and quotas.
Custom domain does not work
Check:
- whether the domain was added in the Zenifra panel exactly as it will be accessed, for example
www.yourdomain.com.br - whether the subdomain points to the target generated by Zenifra, usually through a
CNAME - whether the apex domain (
yourdomain.com.br) follows Configure an apex domain: a singleArecord on@, with the value shown in the Console - whether all SSL validation TXT records under
_acme-challengewere published - whether DNS has propagated on the domain's authoritative nameservers
To verify a www subdomain, use:
dig www.yourdomain.com.br CNAME
dig _acme-challenge.www.yourdomain.com.br TXT
curl -Iv https://www.yourdomain.com.br/If the Zenifra panel shows two TXT records with the same name, keep both values published at the same time. Do not replace one token with the other while the SSL certificate is pending.
HTTPS fails, but the CNAME is correct
This usually means certificate validation has not finished yet. Check:
- whether all TXT tokens appear in the DNS response
- whether only one token exists when the panel shows two
- whether the DNS provider saved the record under the correct host, such as
_acme-challenge.www - whether the certificate authority has had enough time to process validation
While SSL is pending, the domain may resolve to Zenifra, but the HTTPS handshake can still fail. Wait for certificate issuance after the TXT records are correct.
Apex domain does not work (DNS or secure connection error)
www works, but yourdomain.com.br (without www) shows a DNS or secure connection error. This happens when @ has a CNAME, ALIAS, ANAME, AAAA, copied IPs, or more than one A. None of these setups activate the apex domain.
How to fix:
- open the project and click View DNS setup in the Custom domains section
- create only the
Arecord on@with the value from the Create with value column - delete from
@the rows marked ❌ Remove (AorAAAA) and also anyCNAME,ALIAS, orANAMEon@at the provider, which usually shows up in the table as anotherAmarked ❌ Remove - if the DNS is on Cloudflare, keep the proxy off on the
A(gray cloud, DNS only) - if the status shows We couldn't check right now, try again in a moment with Check now; the window also refreshes on its own every 30 s
- if the table of the apex domain shows a
CNAMErow and the alert This root domain was added before automatic setup, remove the domain under Custom domains and add it again to get theArecord - with the DNS correct, the HTTPS certificate is issued on its own in a few minutes; it is not issued while project access is restricted by IP, that is, with Only trusted IPs can access on in the restricted access of the Protection section
See the cases and examples in Configure an apex domain.
Need more help?
- Help center and support: what to send to get a fast answer
- Platform status
- Email support or WhatsApp +55 (11) 5199-3013
Last updated on
Migrate from Fly.io to Zenifra
Migrate a Fly.io app to Zenifra: translate fly.toml (internal_port, processes, release_command), recover secrets, and copy Postgres, volumes, and Tigris.
Organizations in Zenifra
Understand Zenifra organizations: CPF and CNPJ accounts, the active organization, multiple organizations per user, and Owner, Assistant, and Member roles.