daypress
admin routedaypress reset-password · doctor
doc versionv1.0.4
reading time6 min read
section group32 · Hosting, Security & Ops
Docs/Hosting, Security & Ops
daypress reset-password · doctor6 min readv1.0.4

Operational Troubleshooting, CLI Recovery & FAQ

Fast answers and deterministic CLI recovery procedures for locked-out administrator accounts, reverse-proxy headers, MCP authentication, email delivery retries, and OS binary verification.

Emergency CLI password & 2FA recovery

Locked out of /login because of a forgotten password, a lost TOTP authenticator phone, or a compromised laptop? Run daypress reset-password directly on the host machine—it updates the Argon2id hash in SQLite WAL mode safely even while the web server is running:

bash
# Generate a fresh strong password, revoke all active browser/JWT sessions, and clear TOTP 2FA
./daypress reset-password admin \
  --db data/daypress.sqlite \
  --sign-out-everyone \
  --disable-2fa

# Or supply a specific password via stdin / flag for automated recovery scripts
./daypress reset-password admin --db data/daypress.sqlite --password "NewStrongPassword2026!"

Common operational diagnostics

SymptomRoot Cause & Resolution
401 / 403 on POST /mcp or REST v2Remote HTTP MCP and REST write routes require an Application Password (not your interactive login password when 2FA is active) belonging to an Administrator/Editor. Mint a fresh token in /d-admin/getting-started or /d-admin/profile.
Redirect loop or insecure cookies behind Nginx/Caddy/CloudflareSet DAYPRESS_TRUST_PROXY=true and forward X-Forwarded-Proto: https + Host, and confirm siteurl / home in /d-admin/options-general start with https://.
FormStudio entry shows email_status = not_sentYour submission is safely stored in SQLite! Configure SMTP credentials in /d-admin/options-general, send a test email, then click Retry Email inside /d-admin/forms.
macOS Gatekeeper / Windows SmartScreen warningVerify the archive checksum with sha256sum --check --ignore-missing SHA256SUMS; on macOS clear quarantine once via xattr -d com.apple.quarantine daypress.
Page edits don't appear immediately on public URLCheck whether you saved a Scheduled Revision (future publish timestamp) rather than publishing live, or inspect X-Daypress-Cache and purge via /d-admin/daypress-engine if an upstream CDN (e.g. Cloudflare proxy) cached HTML.

Frequently asked questions

Can I back up data/daypress.sqlite while Daypress is serving traffic?

Yes—use Tools → Hot Backups (/d-admin/backups), which executes SQLite's online VACUUM INTO command to produce a consistent single-file snapshot with zero reader/writer downtime, or enable continuous S3/Cloudflare R2 replica streaming in /d-admin/options-media.

Does Daypress execute WordPress .php plugins or themes?

No, by design. Daypress eliminates the PHP runtime entirely so PHP remote-code-execution vulnerabilities cannot exist. Instead, the 9 most common WordPress plugin categories (page builders, ACF/CPTs, forms, SEO/redirects, analytics, newsletters, search, multilingual, and caching) are built into the Rust binary, and custom code runs inside sandboxed .wasm extensions.

What happens when upgrading an older Neopress v0.1 database?

On startup, Daypress automatically migrates legacy neopress_* option keys, layout JSON schemas, and REST namespaces (/wp-json/neopress/v1/* and /n-admin/* redirects) up to locked SQLite Schema Contract v100. Always create a backup first.

How much RAM and CPU does Daypress need in production?

An idle Daypress instance uses roughly 24–30 MB of resident memory (RSS) and serves pre-compressed Gzip SSR pages in <50 µs. Even the smallest 512 MB–1 GB Linux VPS comfortably handles high-traffic sites and spikes.

Can I use Daypress purely locally and deploy for free?

Yes! Run Daypress on your laptop, design with DayStudio or your favorite MCP AI agent, and click Publish in Static Edge Publisher (/d-admin/publish) to push a static build to Cloudflare Pages or Netlify's free tier.