Urbit Docs
  • What is Urbit?
  • Get on Urbit
  • Build on Urbit
    • Contents
    • Environment Setup
    • Hoon School
      • 1. Hoon Syntax
      • 2. Azimuth (Urbit ID)
      • 3. Gates (Functions)
      • 4. Molds (Types)
      • 5. Cores
      • 6. Trees and Addressing
      • 7. Libraries
      • 8. Testing Code
      • 9. Text Processing I
      • 10. Cores and Doors
      • 11. Data Structures
      • 12. Type Checking
      • 13. Conditional Logic
      • 14. Subject-Oriented Programming
      • 15. Text Processing II
      • 16. Functional Programming
      • 17. Text Processing III
      • 18. Generic and Variant Cores
      • 19. Mathematics
    • App School I
      • 1. Arvo
      • 2. The Agent Core
      • 3. Imports and Aliases
      • 4. Lifecycle
      • 5. Cards
      • 6. Pokes
      • 7. Structures and Marks
      • 8. Subscriptions
      • 9. Vanes
      • 10. Scries
      • 11. Failure
      • 12. Next Steps
      • Appendix: Types
    • App School II (Full-Stack)
      • 1. Types
      • 2. Agent
      • 3. JSON
      • 4. Marks
      • 5. Eyre
      • 6. React app setup
      • 7. React app logic
      • 8. Desk and glob
      • 9. Summary
    • Core Academy
      • 1. Evaluating Nock
      • 2. Building Hoon
      • 3. The Core Stack
      • 4. Arvo I: The Main Sequence
      • 5. Arvo II: The Boot Sequence
      • 6. Vere I: u3 and the Serf
      • 7. Vere II: The Loom
      • 8. Vanes I: Behn, Dill, Kahn, Lick
      • 9. Vanes II: Ames
      • 10. Vanes III: Eyre, Iris
      • 11. Vanes IV: Clay
      • 12. Vanes V: Gall and Userspace
      • 13. Vanes VI: Khan, Lick
      • 14. Vanes VII: Jael, Azimuth
    • Runtime
      • U3
      • Conn.c Guide
      • How to Write a Jet
      • API Overview by Prefix
      • C in Urbit
      • Cryptography
      • Land of Nouns
    • Tools
      • Useful Links
      • JS Libraries
        • HTTP API
      • Docs App
        • File Format
        • Index File
        • Suggested Structure
    • Userspace
      • Command-Line App Tutorial
      • Remote Scry
      • Unit Tests
      • Software Distribution
        • Software Distribution Guide
        • Docket File
        • Glob
      • Examples
        • Building a CLI App
        • Debugging Wrapper
        • Host a Website
        • Serving a JS Game
        • Ship Monitoring
        • Styled Text
  • Urbit ID
    • What is Urbit ID?
    • Azimuth Data Flow
    • Life and Rift
    • Urbit HD Wallet
    • Advanced Azimuth Tools
    • Custom Roller Tutorial
    • Azimuth.eth Reference
    • Ecliptic.eth Reference
    • Layer 2
      • L2 Actions
      • L2 Rollers
      • L2 Roller HTTP RPC-API
      • L2 Transaction Format
  • Urbit OS
    • What is Urbit OS?
    • Base
      • Hood
      • Threads
        • Basics Tutorial
          • Bind
          • Fundamentals
          • Input
          • Output
          • Summary
        • HTTP API Guide
        • Spider API Reference
        • Strandio Reference
        • Examples
          • Child Thread
          • Fetch JSON
          • Gall
            • Poke Thread
            • Start Thread
            • Stop Thread
            • Take Facts
            • Take Result
          • Main-loop
          • Poke Agent
          • Scry
          • Take Fact
    • Kernel
      • Arvo
        • Cryptography
        • Move Trace
        • Scries
        • Subscriptions
      • Ames
        • Ames API Reference
        • Ames Cryptography
        • Ames Data Types
        • Ames Scry Reference
      • Behn
        • Behn API Reference
        • Behn Examples
        • Behn Scry Reference
      • Clay
        • Clay API Reference
        • Clay Architecture
        • Clay Data Types
        • Clay Examples
        • Clay Scry Reference
        • Filesystem Hierarchy
        • Marks
          • Mark Examples
          • Using Marks
          • Writing Marks
        • Using Clay
      • Dill
        • Dill API Reference
        • Dill Data Types
        • Dill Scry Reference
      • Eyre
        • EAuth
        • Eyre Data Types
        • Eyre External API
        • Eyre Internal API
        • Eyre Scry Reference
        • Low-Level Eyre Guide
        • Noun channels
      • Gall
        • Gall API Reference
        • Gall Data Types
        • Gall Scry Reference
      • Iris
        • Iris API Reference
        • Iris Data Types
        • Iris Example
      • Jael
        • Jael API Reference
        • Jael Data Types
        • Jael Examples
        • Jael Scry Reference
      • Khan
        • Khan API Reference
        • Khan Data Types
        • Khan Example
      • Lick
        • Lick API Reference
        • Lick Guide
        • Lick Examples
        • Lick Scry Reference
  • Hoon
    • Why Hoon?
    • Advanced Types
    • Arvo
    • Auras
    • Basic Types
    • Cheat Sheet
    • Cryptography
    • Examples
      • ABC Blocks
      • Competitive Programming
      • Emirp
      • Gleichniszahlenreihe
      • Islands
      • Luhn Number
      • Minimum Path Sum
      • Phone Letters
      • Restore IP
      • Rhonda Numbers
      • Roman Numerals
      • Solitaire Cipher
      • Water Towers
    • Generators
    • Hoon Errors
    • Hoon Style Guide
    • Implementing an Aura
    • Irregular forms
    • JSON
    • Limbs and wings
      • Limbs
      • Wings
    • Mips (Maps of Maps)
    • Parsing Text
    • Runes
      • | bar · Cores
      • $ buc · Structures
      • % cen · Calls
      • : col · Cells
      • . dot · Nock
      • / fas · Imports
      • ^ ket · Casts
      • + lus · Arms
      • ; mic · Make
      • ~ sig · Hints
      • = tis · Subject
      • ? wut · Conditionals
      • ! zap · Wild
      • Constants (Atoms and Strings)
      • --, == · Terminators
    • Sail (HTML)
    • Serialization
    • Sets
    • Standard Library
      • 1a: Basic Arithmetic
      • 1b: Tree Addressing
      • 1c: Molds and Mold-Builders
      • 2a: Unit Logic
      • 2b: List Logic
      • 2c: Bit Arithmetic
      • 2d: Bit Logic
      • 2e: Insecure Hashing
      • 2f: Noun Ordering
      • 2g: Unsigned Powers
      • 2h: Set Logic
      • 2i: Map Logic
      • 2j: Jar and Jug Logic
      • 2k: Queue Logic
      • 2l: Container from Container
      • 2m: Container from Noun
      • 2n: Functional Hacks
      • 2o: Normalizing Containers
      • 2p: Serialization
      • 2q: Molds and Mold-Builders
      • 3a: Modular and Signed Ints
      • 3b: Floating Point
      • 3c: Urbit Time
      • 3d: SHA Hash Family
      • 3e: AES encryption (Removed)
      • 3f: Scrambling
      • 3g: Molds and Mold-Builders
      • 4a: Exotic Bases
      • 4b: Text Processing
      • 4c: Tank Printer
      • 4d: Parsing (Tracing)
      • 4e: Parsing (Combinators)
      • 4f: Parsing (Rule-Builders)
      • 4g: Parsing (Outside Caller)
      • 4h: Parsing (ASCII Glyphs)
      • 4i: Parsing (Useful Idioms)
      • 4j: Parsing (Bases and Base Digits)
      • 4k: Atom Printing
      • 4l: Atom Parsing
      • 4m: Formatting Functions
      • 4n: Virtualization
      • 4o: Molds
      • 5a: Compiler Utilities
      • 5b: Macro Expansion
      • 5c: Compiler Backend & Prettyprinter
      • 5d: Parser
      • 5e: Molds and mold builders
      • 5f: Profiling support
    • Strings
    • The Engine Pattern
    • Udon (Markdown-esque)
    • Vases
    • Zuse
      • 2d(1-5): To JSON, Wains
      • 2d(6): From JSON
      • 2d(7): From JSON (unit)
      • 2e(2-3): Print & Parse JSON
      • 2m: Ordered Maps
  • Nock
    • What is Nock?
    • Decrement
    • Definition
    • Fast Hints and Jets
    • Implementations
    • Specification
  • User Manual
    • Contents
    • Running Urbit
      • Cloud Hosting
      • Home Servers
      • Runtime Reference
      • Self-hosting S3 Storage with MinIO
    • Urbit ID
      • Bridge Troubleshooting
      • Creating an Invite Pool
      • Get an Urbit ID
      • Guide to Factory Resets
      • HD Wallet (Master Ticket)
      • Layer 2 for planets
      • Layer 2 for stars
      • Proxies
      • Using Bridge
    • Urbit OS
      • Basics
      • Configuring S3 Storage
      • Dojo Tools
      • Filesystem
      • Shell
      • Ship Troubleshooting
      • Star and Galaxy Operations
      • Updates
Powered by GitBook

GitHub

  • Urbit ID
  • Urbit OS
  • Runtime

Resources

  • YouTube
  • Whitepaper
  • Awesome Urbit

Contact

  • X
  • Email
  • Gather
On this page
  • Table of Contents
  • Best Practices
  • Only initialize your ship once
  • Do not delete your pier
  • Keep track of the directory that you put your ship in
  • Keep up-to-date builds
  • |hi your star to see if you're connected
  • Turn your ship off and on again
  • Use the |knob command to customize your error messages
  • Perform a factory reset.
  • Reset +code
  • Operation Issues
  • My urbit is frozen
  • When I try to type into the Dojo, it prints %dy-edit-busy or %dy-no-prompt
  • My ship doesn't recognize file changes that I make in my pier
  • Connectivity Issues
  • I can't communicate with anyone
  • I don't have the latest OTA
  • I keep getting an ames error stack-trace
  • I can talk to some ships, but I can't talk to my sponsor and some other ships
  • Booting Issues
  • My ship booted for the first time, but it turned into a comet instead of my planet or star
  • My development ship ("fakezod") gets a boot: malformed failure
  • Crashing Issues
  • I got a bail error and my ship crashed
  • My ship crashed with a bail: meme error.
  • My ship crashed with a bail: oops error
  • My ship crashed with an pier: work error error
Edit on GitHub
  1. User Manual
  2. Urbit OS

Ship Troubleshooting

Urbit is still in the development stage, so there's a chance that your ship won't start properly, or will stop working properly when you're running it. That's ok! This document is intended to help you in such an event.

This page contains resolutions to many of the most commonly encountered issues. If your issue is not covered here, please check out our Troubleshooting Knowledgebase.

Table of Contents

  • Best practices

  • Operation issues

  • Connectivity issues

  • Booting issues

  • Crashing issues

Best Practices

An ounce of prevention is worth a pound of cure, so let's first go over some best practices to keep your ship in working order.

Only initialize your ship once

Once your ship has been initialized (with the -w variation of the ./urbit command), you should never do so a second time. If you do initialize it anew without special measures, you will experience trouble communicating with ships on the network you had talked to before.

If you accidentally did this a second time, or want to intentionally start fresh, you need to perform a factory reset, which is explained in the next section.

Do not delete your pier

Urbit is stateful, meaning that it needs to hold onto all your data. If you delete your pier and start your ship again, you won't be able to talk to any ship you've talked to before. The only solution to this is performing a factory reset.

Keep track of the directory that you put your ship in

When you first start your ship, you should make sure you put it a place where you can find it again and where it won't get accidentally deleted.

Keep up-to-date builds

Check for latest Urbit version at https://github.com/urbit/urbit/releases. If you're behind, update using this guide.

|hi your star to see if you're connected

Find out who your star is by running (sein:title our now our) in the Dojo. Then, run |hi ~star, where ~star is the star's name, and if things are working properly, you should get the message hi ~star successful. It could also be helpful to use |hi to check connectivity with ~zod or another planet that you're in a Chat channel with.

Turn your ship off and on again

Use ctrl-d to gracefully exit your ship, and then start it again. This can solve many issues.

Use the |knob command to customize your error messages

Error messages can be by overwhelming, so the |knob command is intended to remedy this. It's used to silence errors that aren't important.

The command takes two arguments, and comes in the form of |knob %error-tag %level.

%error-tag is the name of the error in question. It's usually printed at the top of the stack trace, such as in crud: %hole event failed -- %hole here is an example of an error tag.

%level determines how much you will see of errors with your chosen %error-tag. There are three levels:

  • %hush: no output.

  • %soft: one line of output, just containing the error tag.

  • %loud: full output.

So for example, to silence all Ames packet-related errors, try |knob %hole %hush.

Perform a factory reset.

A factory reset is when a ship tells the rest of the network to treat it as though the ship was just started for the first time again. Any ongoing or outstanding communication is forgotten and connections are reestablished from scratch.

Factory resets often fix connectivity issues, but should only be used as a last resort. To find out how to perform a factory reset, check out our Guide to Factory Resets. Before taking such a drastic measure, try other methods in this guide. You can also ask for help on in the Help channel in the Urbit Community group at ~bitbet-bolbel/urbit-community.

Reset +code

WARNING: Do not reset your +code if you are using a hosted ship. You will be locked out. Please contact your hosting provider for more information.

You login to Landscape using the camel-case phrase obtained from dojo by entering +code. For security reasons you may wish to change this code regularly. You may do so by entering |code %reset into dojo. Doing this will prevent Bridge from being able to derive your code, meaning you will only be able to check it from dojo in the future.

Operation Issues

My urbit is frozen

Sometimes this happens if you're processing a very large event, or if you're in an infinite loop, or for a variety of other reasons.

Before doing anything, try waiting for a minute: an event might finish processing. If it doesn't clear up, then use the Unix kill-command, ctrl-z, to end your ship's process. Then restart your ship.

When I try to type into the Dojo, it prints %dy-edit-busy or %dy-no-prompt

This happens when your Dojo is waiting on a request, such as an HTTP request. You can fix it simply by typing backspace or (delete on Mac).

My ship doesn't recognize file changes that I make in my pier

Since version 0.8.0, changes no longer automatically sync between the Unix side (your pier) and your ship. To sync your file changes, you must run |commit %desk in your Dojo, where %desk is the desk you'd like to sync.

Connectivity Issues

I can't communicate with anyone

Maybe you booted your ship twice, or ran it using old files. If this is the case, you must perform a factory reset.

I don't have the latest OTA

You can check what build your ship is on by entering +trouble into dojo and reading the %base hash. If this does not match the latest hash published in the urbit-dev mailing list, you are behind.

Your sponsor may just be lagging behind, so sometimes this will resolve on its own with patience. Otherwise, try the procedure outlined here.

I keep getting an ames error stack-trace

You may see a message like this one: /~zod/base/~2019.7.22..18.55.46..83a3/sys/vane/ames:<[line column].[line column]>. This is a clay path to a Hoon file, pointing to the line and column where an expression crashed. This kind of error might be accompanied by a crud message.

This means that another ship is sending invalid packets to you. This could be because one of the ships has not updated the other ship's "rift number", which is the number that starts at one and increments every time that ship performs a factory reset.

This can happen if they have the wrong keys of yours, or if you have the wrong keys of theirs. You can figure out who has the wrong keys by running this scry command in your dojo: .^(* %j /=life=/shipname), where shipname is the other ship's name. Save that information. Then, go to the Azimuth contract on Etherscan, scroll down to 32. points, and put in the hexadecimal representation of the other ship's @p. You can find the hexadecimal representation by running ...

`@ux`~sampel-palnet

... in the Dojo, where ~sampel-palnet is the other ship's name. Then, compare it to the scry information that you saved. If that information matches up, it means that the other ship is the problem. If it doesn't match up, your ship has wrong information about the other ship. If you have such wrong information, you can fix this by running:

:azimuth-tracker|listen ~ %app %azimuth-tracker

The last line above syncs from an Ethereum node for all ships on the network. If you only wanted to sync with certain ships, run:

:azimuth-tracker|listen ~[~sampel-palnet ~zod ~marzod] %app %azimuth-tracker

~sampel-palnet ~zod ~marzod are example ship-names; replace these with any number of desired ship-names.

The above commands work if you have the wrong keys of other ships. If other ships have wrong keys of yours, you need to somehow ask them to to run such a command.

I can talk to some ships, but I can't talk to my sponsor and some other ships

This is usually the result of deleting your pier and starting your ship again. To fix this, you must perform a factory reset.

Booting Issues

My ship booted for the first time, but it turned into a comet instead of my planet or star

You may have used the wrong arguments when booting your ship for the first time. Delete this comet and try again.

My development ship ("fakezod") gets a boot: malformed failure

This means that you gave your development ship an invalid @p. So, you will get this error if you write, for example, urbit -F zodzod instead of urbit -F zod.

Crashing Issues

I got a bail error and my ship crashed

Try bringing it back up; it will often start working just fine again.

However, if you get a bail error again, this is a serious issue and should be reported (see below). It's advised to keep the old files around to assist issue research. If you want to get back on the network immediately, you might want to perform a factory reset.

Making a GitHub issue out of your bail

You can get help with you problem by creating an issue at github.com/urbit/urbit. But to make a good issue, you need to include some information.

When your urbit crashes with a bail, you'll probably get a core dump, which is a file that contains the program state of your urbit when it crashed. On Mac, core dumps can be found in /cores. On Linux, cores can often be found in /var/crash, or the home directory.

Navigate to the folder containing your core dumps. Find the most recent core dump by looking at the dates after you run ls -l. Then lldb -c <corename>. Once that loads, you'll be at an (lldb) prompt; type bt at this prompt. This will create a stack trace that looks like this:

(lldb) bt
* thread #1, stop reason = signal SIGSTOP
  * frame #0: 0x000000010583d871 urbit`_box_free + 17
    frame #1: 0x0000000105845ee6 urbit`u3j_boot + 182
    frame #2: 0x000000010584d1f9 urbit`u3m_boot + 89
    frame #3: 0x000000010583d15d urbit`main + 2765
    frame #4: 0x00007fff75cb83d5 libdyld.dylib`start + 1
(lldb)

Copy this stack trace and include it in your GitHub issue.

My ship crashed with a bail: meme error.

This means that your ship ran out of memory.

  1. Make sure you are running the latest binary if you are not already on it.

  2. Restart your ship. If you don't crash again, everything may be fine.

  3. If you do crash again, try running the following after your ship has shut down: ./urbit-worker meld your-ship (Replacing your-ship with the name/directory of your ship.) This will attempt to compact the memory of your ship. Note that this may use large amounts of memory on the machine you are running it on, and will be very slow if the machine has little memory available.

  4. If the above succeeds, but you still get bail: meme immediately, or after running for a little while, please file an issue. If you can, run |mass and share its output.

  5. As a last resort, you may perform a factory reset.

My ship crashed with a bail: oops error

Restart your ship. These issues often just go away on their own. If this error repeats after restart two or more times, post the messages in an issue at github.com/urbit/urbit.

This same error might also appear with a message like Assertion '0'.

My ship crashed with an pier: work error error

This means that the Urbit worker process has shut down for one reason or another. Just restart your ship; this is not a notable or reportable error.

PreviousShellNextStar and Galaxy Operations

Last updated 1 day ago