Does any one successfully setup syncthing on AXT-1800?

Afternoon.
At about midnight I gave up and first thing this morning I swapped the usb for a microsd.

At the moment, I have Syncthing running on my router and my tablet. But on the router, it fails to create any folders. I can create them in ssh/SFTP and see them (and add stuff to them) but they are not recognised properly in the router Syncthing gui, it shows:-

I have tried ‘actions’ to set the defaults but no joy.

With regard to the info you need, is the command

‘’‘mount’‘’

etc? (but with back ticks from the terminal keyboard)

root@GL-AXT1800:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock13 43.3M 43.3M 0 100% /rom
tmpfs 209.8M 2.4M 207.5M 1% /tmp
/dev/ubi0_2 53.9M 13.6M 37.5M 27% /overlay
overlayfs:/overlay 53.9M 13.6M 37.5M 27% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mmcblk0 59.5G 87.7M 59.4G 0% /tmp/mountd/disk1_part1
root@GL-AXT1800:~# blkid
/dev/ubi0_1: TYPE=“squashfs”
/dev/ubi0_2: UUID=“023c8564-9b1f-49f9-b8aa-edc33051317d” TYPE=“ubifs”
/dev/mtdblock9: UUID=“434930875” TYPE=“ubi”
/dev/mmcblk0: LABEL=“Network Shares” BLOCK_SIZE=“512” UUID=“01DA4EB2B0C42240” TYPE=“ntfs”
/dev/mtdblock13: TYPE=“squashfs”
root@GL-AXT1800:~# mount
/dev/mtdblock13 on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_2 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=2)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
pstore on /sys/fs/pstore type pstore (rw,noatime)
/dev/mmcblk0 on /tmp/mountd/disk1_part1 type fuseblk (rw,noatime,user_id=0,group_id=0,allow_other,blksize=4096)
root@GL-AXT1800:~#

Sorry, ignore all that.
My Axt1800 locked up with nothing but a blue flashing led. I tried just powering down a few times but eventually had to resort to using the reset button, so now I am back to square one yet again.

My problems seem to be caused by Luci not mounting the device correctly.

I navigate to System/mount points, select the device and then enter /mnt/sda1 in the custom box of the drop down menu.

But then what?
If I “save” then “save&apply”, it doesn’t save the mount point.
I have tried this via Luci on my Android tablet and I have also booted into Linux Mint on my pc but the same thing happens.

There must be something else I need to do at “custom” stage?

Reflash/reset to stock; let OpenWrt first pick up the fact there’s a storage device attached. Then we can check its automatically assigned mount point within LuCI & those three SSH commands.

You’ll still need SFTP. Until you can confirm read, write to the (now SD card) storage device, you can leave Syncthing alone.

(Please use backticks for posting output, the key above Tab, now that you’re at your computer. It really does make things easier to read.)

Let’s start from a ‘clean Slate’… I’ll see myself out.

I really don’t understand the backticks thing?

Imagine trying to read this code section of the following post without using code formatting:

(You’d go near cross-eyed when you stare at code all day… like I do.)

I understand the reason why you want the information presented differently.
What I absolutely don’t understand is what I am supposed to do?
Where do I put the backticks and when?

You simply write
```
your code
```

And it will appear as

your code
1 Like

I still don’t understand where and when I am supposed to use the backticks?

In ssh, do I run the command (eg mount) and then cut’n’paste the output to a text file and the edit that by adding the backticks before cut’n’pasting to here?
Or do I put the backticks somewhere in ssh?
Or do I run the command, cut’n’paste the output directly to here but put the backticks at the start/end of my reply?

We are talking about the formatting here.
So add them before you start posting here. Like this: Creating and highlighting code blocks - GitHub Docs

root@GL-AXT1800:~# df -h
Filesystem                Size      Used Available Use% Mounted on
mtd:ubi_rootfs           41.5M     41.5M         0 100% /rom
tmpfs                   196.4M    364.0K    196.1M   0% /tmp
/dev/ubi0_2              56.1M     14.0M     39.3M  26% /overlay
overlayfs:/overlay       56.1M     14.0M     39.3M  26% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mmcblk0             59.5G     87.7M     59.4G   0% /tmp/mountd/disk1_part1

That doesn’t look any different from a normal cut’n’paste.

Now it does.

1 Like
This is a Test

Reeeeeeeesult!

I was using the wrong ', I finally found ` on my onscreen keyboard.

1 Like

Thanks for that re: formatting.

So now that the uSD card is being automatically picked up & mounted, I’d confirm you can write, read to it via SFTP. If so, reboot/power cycle & check df -h again. If the Mounted on is the same, we can move onto configuring the required conf for Syncthing. That’s Step 2 of:

Where I use /mnt/sda you use what is listed under Mounted on (your 59.5G uSD card).

That output above is the old one from yesterday, I was just using it to figure out the backticks business.

I will refresh the firmware shortly and I’ll post the three sets of information that you requested.

OK, completely fresh firmware.
I have done nothing other than install Syncthing and the SFTP server, with a reboot after each.
(something I noticed, just prior to the reset, was that my microsd was showing as completely full in the “external storage” section of the Admin Panel / System / overview (even though it wasn’t). Now it’s showing as empty (apart from some system/reserved space).

root@GL-AXT1800:~# mount
mtd:ubi_rootfs on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_2 on /overlay type ubifs (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
pstore on /sys/fs/pstore type pstore (rw,noatime)
/dev/mmcblk0 on /mnt/mmcblk0 type ext4 (rw,relatime,data=ordered)
/dev/mmcblk0 on /tmp/mountd/disk1_part1 type ext4 (rw,relatime,data=ordered)

root@GL-AXT1800:~# blkid
/dev/ubi0_2: UUID="4e4c7de9-bc35-4957-b508-04a1006d88ee" TYPE="ubifs"
/dev/ubi0_1: TYPE="squashfs"
/dev/mtdblock9: UUID="434930875" TYPE="ubi"
/dev/mmcblk0: UUID="66b5db27-bc55-4cb4-9ca1-2fcd7e57cf8e" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mtdblock13: TYPE="squashfs"

root@GL-AXT1800:~# df -h
Filesystem                Size      Used Available Use% Mounted on
mtd:ubi_rootfs           41.5M     41.5M         0 100% /rom
tmpfs                   196.4M    528.0K    195.9M   0% /tmp
/dev/ubi0_2              56.1M     11.9M     41.3M  22% /overlay
overlayfs:/overlay       56.1M     11.9M     41.3M  22% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mmcblk0             58.3G     52.0M     55.3G   0% /mnt/mmcblk0
/dev/mmcblk0             58.3G     52.0M     55.3G   0% /tmp/mountd/disk1_part1

As you can see, I have reformatted to ext4 (will my Android devices still be able to read from here?).
The mount point currently appears to be rw (a good sign, I think?).

And it looks so much tidier when the info is formatted correctly!

It looks like you’re all set to setup the OpenWrt Syncthing conf if you can read, write to the uSD card via SFTP.

Test SFTP & if so, move to Step 2.

Just be sure to reboot & check over everything works as expect before committing massive amounts of data to be sync’d by Syncthing.

As far as I can tell, Syncthing is running correctly on my Batocera machine (with the shared folder as /userdata/share/saves/snes).
I choose to share to my Axt1800.
I accept the introduction.
But, after a few seconds, I get this:-

2024-01-26 11:57:24: Failed to create folder root directory mkdir /Snes saves: permission denied
2024-01-26 11:57:24: Error on folder "Snes saves" (ztyvm-e9jlr): folder path missing
OK 

And across the top of the gui for my Batocera machine, I have a yellow warning bar :-

I have tried creating the folder manually on the router (by SFTP) and it’s there and accessible but I still get the same error message.
This has disappeared after a reboot.

Is the syntax error here of any significance?

root@GL-AXT1800:~# ps -w | grep syncthing; service | grep syncthing
  621 root      797m SN   syncthing
 4274 root      1176 S    grep syncthing
 5495 syncthin  796m SN   /usr/bin/syncthing -gui-address=http://0.0.0.0:8384 -home=/mnt/mmcblk0/syncthing
-no-browser
 6247 syncthin  798m SN   /usr/bin/syncthing -gui-address=http://0.0.0.0:8384 -home=/mnt/mmcblk0/syncthing
-no-browser
28199 root      796m S    syncthing
/etc/rc.common: /etc/init.d/irq-smp-affinity: line 11: syntax error: unexpected ")" (expecting ";;")
/etc/init.d/syncthing              enabled         running
root@GL-AXT1800:~#

You can’t “grep” for a semicolon that way, because semicolon means “next command”
Try ps -w | grep "syncthing; service" | grep syncthing

(Even if the last grep does not make sense anyway)

I am only following the instructions I have been given.
Perhaps it’s a typo?