Firetool says in plain words what went wrong, and most messages come with a button for the next step. This page collects the common ones in one place. If yours isn't here, Help → Report a problem… reaches us.
Signing in
- "Tick the Google Cloud box." Google's sign-in page lists Google Cloud access with its box unticked, and without it Firetool can't list your projects. Choose Try again and tick See, edit, configure and delete your Google Cloud data before choosing Continue.
- "Your Google sign-in has expired or was revoked." Choose Continue with Google and sign in again. Your projects, tabs and settings stay as they were.
- "No projects found." The account can't list any projects. Right-click the account, choose Add project… and enter the project ID, or sign in with an account that has access.
- "That isn't a service account key." Use the JSON file from Generate new private key in the Firebase console's Service accounts page, not
google-services.jsonor another config file. - A gcloud sign-in isn't used. Firetool asks once before it uses the sign-in made with
gcloud auth application-default login. To use it later, open Add account and choose the Google Cloud CLI.
Permission denied
Google refused the request because the account you connected with doesn't have the role for it. Firetool shows Google's refusal and, where it knows, the role that's missing. Ask the project's owner to add that role to your account (in the Google Cloud console, IAM), or connect with a service account that has it.
- Reading and writing documents: Cloud Datastore User (or Cloud Datastore Viewer to read only).
- Listing indexes: Cloud Datastore Index Viewer; creating them: Cloud Datastore Index Admin.
- Authentication users, Storage files, security rules and the Services pages each need their own Firebase or Google Cloud role; the message names the one that's missing.
These are Google's permissions. Firetool's own roles and production rules (below) can only add limits on top of them, never give more access.
A query needs an index
Firestore answers "The query requires an index" when a filter and sort together need a composite index. Firetool shows Couldn't run this query with a Create the index for this query… button, which opens Indexes with that index filled in. Creating an index needs Pro and the Index Admin role; Firestore then builds it, which can take a few minutes. Choose Try again once it's ready.
- Explain this query (Actions ▾) shows which index a query uses and how many documents it reads.
- Index advice… in a project's menu, or on Home, lists indexes your saved and recent queries are missing, and ones that duplicate another.
Network and proxy
- "Couldn't reach … Check your internet connection or proxy." Firetool talks to Google directly. Open Tools → Diagnostics: it shows the proxy in use and whether Firestore, Google sign-in and Authentication can be reached.
- On an office network, set the proxy in Settings → Network proxy… (for example
proxy.company.com:8080). Firetool uses the system's proxy by itself when there is one. - A long job stopped when the connection dropped. Copies, imports and backups can be resumed: Tasks lists them, and Unfinished copies… picks a copy up where it stopped.
The emulator
- Can't connect. Start the emulators first with
firebase emulators:start, then use File → Connect to emulator… with the addresses the Firebase CLI printed (Firestore and, if you use it, Authentication). - The data is gone after a restart. The emulators start empty unless given saved data. Use Save emulator data… before stopping them and start with
--import, or Load into the emulator… after starting. See the emulator page. - Save emulator data… refuses a folder. The Firebase emulators empty the folder they save to, so Firetool only saves into a new folder, an empty one, or one it saved before.
Services that are turned off
On the Services page (Functions, Logs, Hosting, Pub/Sub, Queues, Remote Config), a card marked Not turned on means the project doesn't have that Google Cloud API enabled, and opening it says "… isn't turned on in <project>. Turn it on in the Google Cloud console, then try again." with a link to the right page. Not checked means the account can't see which services are on, which is usually a missing role.
Blocked or asked by policy
- A change is refused by policy, or a project is shown with a lock: the project or database is read-only, your role is Viewer, or a rule stops this change (the message says which). The audit log lists it as Blocked by policy. See Tools → Policy and roles; an IT-managed policy can only be changed by your IT team.
- "Type the project ID to confirm." The project is marked as production. Deletes, scripts and changes to many documents at once ask for its ID. How many documents count as "many" is set per project in Policy and roles.
- "Give a reason." The project, or its environment label, asks for a reason for every change; it's kept in the audit log. A project labelled Production asks by default; untick it in Tools → Policy and roles → Environment rules to turn that off.
- "Needs a second person's approval." Choose Send for approval; a colleague approves it from their own Firetool, then you run it once.
- "Read … documents?" Exports, copies, compares and backups count first and ask above 10,000 documents, with the cost. Change the number in Settings → General → Big reads.
Licence and trial
- "This licence is already on 2 computers." A licence works on two computers of yours. Deactivate it on one (Help → Licence there), or choose Move it to this computer, which stops it on the one you used longest ago (3 moves a year).
- "Firetool couldn't check your licence for 7 days." The licence works offline for 7 days after the last check. Connect to the internet and choose Check now in Help → Licence.
- "Your computer's date and time are behind." Set the clock right (or turn on automatic time); Firetool doesn't accept a clock turned back.
- Lost the key? In Help → Licence, enter the licence's email and choose Email me my key; it goes only to that address.
- The trial ended. Firetool keeps working as the Free edition: browsing, filtering, queries and reading users. Enter a licence key to turn Pro back on; nothing you set up is lost.
Still stuck
Choose Help → Report a problem…. You see what's sent before you send it: your message, and if you choose, the diagnostics and the end of Firetool's log with keys, tokens and passwords blanked out. You can also email support@firetool.in.
Questions
Where does Firetool keep its log?
In the .firetool folder in your home folder (studio.log, and studio.prev.log for the session before). Settings → General → Open folder opens it. Keys, tokens and passwords are blanked out on every line.
Firetool says a document was changed by someone else. What happened?
Someone or something else saved it in the meantime. Firetool sends changes only if the document is still as you read it, so nothing was overwritten. Open it again to see the new version, then make your change.
Related
- Connect to Firestore: every way to sign in, and the roles an account needs.
- Roles and production safety: read-only, production, reasons and approvals.
- The Firestore emulator: connect, save, load and clear emulator data.