GoAdmio

renew

Extend a hosting account's expiry date by one year from its current expiry date, update its days left, then unsuspend the account and run the SSL step

On this page: Overview · Quick start · Syntax · Options · Output · Examples · Troubleshooting · Details · See also


Overview

Each hosting account has an expiry date. When it passes, the account can be suspended. /go/renew is the one-command way to renew an account for another year. It:

It only renews the hosting date. The domain registration date, which is tracked separately (see expire), is not changed.

[!WARNING] Each run adds another year, and the year is added to the old expiry date, not to today. Running the command twice gives two years. Renewing an account that expired more than a year ago leaves it expired, but it is unsuspended anyway.


Quick start

# Renew example.com for one year
/go/renew example.com

Syntax

/go/renew <domain>
Form Behavior
/go/renew <domain> Adds one year to the account's expiry date and unsuspends it.

There are no --option flags and no way to choose the length. The domain must be the account's primary domain, exactly as it is hosted: full domain, lowercase, without www..


Options

Argument Required Default Notes
<domain> Yes — The primary domain of the account. /home/<domain>/www must exist.

Output

A successful run prints three lines:

Domain: example.com
Expires On: 2026-12-01
Expires On (Renew 1 Year): 2027-12-01 (375 days left)
Outcome What you get
Account renewed The three lines above, then any output from unsuspend and ssl.
Account not found Nothing at all, and exit status 0.
New date still in the past The same lines, with a negative number of days left.

Notes on the output:


Examples

# Renew one account
/go/renew example.com
# Renew, then check the certificate
/go/renew example.com
/go/checkssl

Troubleshooting

Symptom Likely cause Fix
Nothing is printed /home/<domain>/www doesn't exist: a typo, an uppercase or www. domain, or an account that isn't hosted here. Use the exact hosted domain.
The account is suspended again soon after The new date is still in the past, because a year was added to an old date. Commands such as fixquota suspend expired accounts. Run /go/renew again until the date is in the future, or set the date in the database yourself (see below).
The date is two years ahead renew was run twice. Correct ExpiresOn and DaysLeft in the Site table.
The days left are negative The renewed date is still in the past. Same as above.
date: invalid date The stored expiry date isn't in YYYY-MM-DD format. Fix the value in the Site table, then run renew again.
The domain registration still shows as expiring renew only changes the hosting date. See expire for domain registration dates.
The SSL step is slow, fails, or shows rate-limit errors ssl runs on every renew, and the domain's DNS may not point to the server. Fix DNS, then run ssl on its own.

Setting an exact date

renew can't set a chosen date or renew for several years. For a new account, create accepts --expireson (see create). For an existing account, you can update the ExpiresOn and DaysLeft columns of the Site table in /var/lib/sqlite/site.db. Make a copy of that file first, and run unsuspend afterwards if the account was suspended.


Details

What happens on each run

flowchart TD
    A["renew domain"] --> B["Log the call"]
    B --> C{"/home/domain/www exists?"}
    C -- "No" --> X["Do nothing, no message"]
    C -- "Yes" --> D["Read ExpiresOn from the Site table"]
    D --> E["New date = ExpiresOn + 1 year"]
    E --> F["Days left = new date minus today"]
    F --> G["Save ExpiresOn and DaysLeft"]
    G --> H["unsuspend domain"]
    H --> I["ssl domain"]

What changes

Item Change
Site.ExpiresOn Old date plus one year, as YYYY-MM-DD.
Site.DaysLeft Whole days from today to the new date. Negative if the date is in the past.
Suspension unsuspend runs every time, even if the account was not suspended and even if the date is still in the past.
SSL ssl runs every time.
Domain registration date Not changed.

Why the old date is the starting point

Adding the year to the existing expiry date means an on-time renewal never loses days. For a late renewal, the extra year is counted from the missed date, so the account may still be expired afterwards.


See also

Command Description
expire Check every hosted domain's registration and hosting expiry dates, store them, and notify when they're close
unsuspend Unsuspend a GoAdmio account via the command line
suspend Suspend a GoAdmio account via the command line
ssl Install an SSL certificate for a domain
checkssl Audit SSL certificates for all hosted domains and renew those close to expiry
fixquota Recalculate disk and bandwidth usage, block FTP uploads over quota, and suspend expired accounts
create Create a GoAdmio account from the command line