Troubleshooting
Common issues
Tunnel problems
In order to reach servers started on your local machine, linkup uses a cloudflared tunnel.
Symptoms
Diagnosis
cat ~/.linkup/cloudflared-stderr
will give you more logs from the cloudflared process that might point you in the right direction.
Linkup runs cloudflared tunnel --url http://localhost:9066
to start the tunnel. You can run this command manually to see if it gives you more information.
Solution
- Sometimes, it can be as simple as a network problem. Check your connection and run
linkup reset
to try again. - If the problem persists, cloudflare may be having problems. Check their status page.
- To mitigate the impact of your tunnel being down, you can use
local-dns
to resolve your linkup domains to your local machine. - With
local-dns
installed, you can run linkup without a tunnel by runninglinkup start --no-tunnel
. This will allow you to use your linkup session without a tunnel, but not all use cases will work.
Configuration problems
Linkup needs a configuration file to start a session.
Symptoms
Diagnosis
echo $LINKUP_CONFIG
is empty.
Solution
- You need to provide a linkup configuration file. You can do this by setting the
LINKUP_CONFIG
environment variable to the path of your configuration file, or by providing the path as an argument tolinkup start
. - Add a
export LINKUP_CONFIG=/path/to/linkup-config.yaml
to your.zshrc
or.bashrc
to avoid this problem in the future.