# Read-only instance only updating in "sync" mode

**URL:** https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226
**Category:** v1: Troubleshooting (legacy)
**Created:** [November 6, 2024, 12:37am UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226 "2024-11-06T00:37:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![thecandlestick](https://community.silverbullet.md/user_avatar/community.silverbullet.md/thecandlestick/32/610_2.png) [@thecandlestick](https://community.silverbullet.md/u/thecandlestick)
#### Post date: [November 6, 2024, 12:37am UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/1 "2024-11-06T00:37:26Z")

</div>

I maintain a public-facing copy of my space to share my notes with others over the internet, and I’m trying to migrate to a simple “read-only” instance similar to [https://silverbullet.md](https://silverbullet.md)

The problem that I’m encountering is that when I push changes to the site (add new files to the sb space folder), the read-only SB instance doesn’t update. If I switch from “online” mode to “sync” mode, then the changes appear, but they disappear again if I switch back to “online” mode.

Is this the intended behavior? I noticed that [https://silverbullet.md](https://silverbullet.md) operates in online mode by default, so maybe I’m just doing something wrong. I’d prefer not to have to use “sync” mode because the people accessing my site are not SB users and find the long initial “sync” process confusing and annoying.

---

<div class="post-metadata">

### Author: ![bent0n](https://community.silverbullet.md/user_avatar/community.silverbullet.md/bent0n/32/604_2.png) [@bent0n](https://community.silverbullet.md/u/bent0n)
#### Post date: [November 6, 2024, 5:24am UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/2 "2024-11-06T05:24:58Z")

</div>

Do you use a second “admin” instance of SilverBullet to make your changes? Do they share the same space?

SB creates a database in the root of the space. If two instances share this db it will lead to [conflicts](https://community.silverbullet.md/t/live-updates-to-a-read-only-instance/1065).

---

<div class="post-metadata">

### Author: ![thecandlestick](https://community.silverbullet.md/user_avatar/community.silverbullet.md/thecandlestick/32/610_2.png) [@thecandlestick](https://community.silverbullet.md/u/thecandlestick)
#### Post date: [November 6, 2024, 5:21pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/3 "2024-11-06T17:21:54Z")

</div>

No, I am not pointing multiple sb instances to the same space. My “read-only” instance is running on my raspberry pi and my “read-write” instance is running on my local device. I have a git repository for my space, and when I want to update the “read-only” version I push to the repo cloned on my pi where a git hook takes over and copies the changes from the repo to the space folder.

My setup is inspired by this blog post: [here](https://toroid.org/git-website-howto)

That said, I’m open to changing my setup if necessary since it’s not quite working the way I want.

---

<div class="post-metadata">

### Author: ![dklawren](https://community.silverbullet.md/user_avatar/community.silverbullet.md/dklawren/32/14_2.png) [@dklawren](https://community.silverbullet.md/u/dklawren)
#### Post date: [November 6, 2024, 5:47pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/4 "2024-11-06T17:47:05Z")

</div>

You can automate the syncing by following the guide at [Backup your space to Github](https://community.silverbullet.md/t/backup-your-space-to-github/798)

---

<div class="post-metadata">

### Author: ![bent0n](https://community.silverbullet.md/user_avatar/community.silverbullet.md/bent0n/32/604_2.png) [@bent0n](https://community.silverbullet.md/u/bent0n)
#### Post date: [November 6, 2024, 6:20pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/5 "2024-11-06T18:20:19Z")

</div>

And SilverBullet has the permission required to access the files?

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [November 7, 2024, 8:16pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/6 "2024-11-07T20:16:37Z")

</div>

Yes, this is a limitation of read-only mode right now. It indexes your space only upon boot, then it switches all syscalls to read-only mode only and no changes are picked up. What I do on [silverbullet.md](http://silverbullet.md) is to restart the instance on every content update, this takes a little time, but it works.

---

<div class="post-metadata">

### Author: ![thecandlestick](https://community.silverbullet.md/user_avatar/community.silverbullet.md/thecandlestick/32/610_2.png) [@thecandlestick](https://community.silverbullet.md/u/thecandlestick)
#### Post date: [November 7, 2024, 9:11pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/7 "2024-11-07T21:11:36Z")

</div>

I see. For my specific use-case I need to update the read-only site very often (multiple times a day). I suppose I could use a git hook or cron job to just rebuild the whole docker container (I’m using docker). Is that the best way, or is there a more convenient/faster method of triggering a restart of the instance?

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [November 7, 2024, 9:26pm UTC](https://community.silverbullet.md/t/read-only-instance-only-updating-in-sync-mode/1226/8 "2024-11-07T21:26:21Z")

</div>

I would imagine a simple `docker restart` of the container would be sufficient.
