Map locatie

I don’t think the odroid has a desktop. I am accessing the odroid via ssh terminal. The odroid is connected to the same network. The odroid only says open media vault.

This is what happens when I start Syncthing from terminal.

edwin@odroidxu4:~$ syncthing [start] 2022/11/19 15:32:52 INFO: syncthing v1.22.2-rc.2 “Fermium Flea” (go1.19.2 linux-arm) deb@build.syncthing.net 2022-11-11 10:49 :15 UTC [noupgrade] [start] 2022/11/19 15:32:52 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?) [monitor] 2022/11/19 15:32:52 INFO: Syncthing exited: exit status 1 [start] 2022/11/19 15:32:53 INFO: syncthing v1.22.2-rc.2 “Fermium Flea” (go1.19.2 linux-arm) deb@build.syncthing.net 2022-11-11 10:49 :15 UTC [noupgrade] [start] 2022/11/19 15:32:53 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?) [monitor] 2022/11/19 15:32:53 INFO: Syncthing exited: exit status 1 [start] 2022/11/19 15:32:54 INFO: syncthing v1.22.2-rc.2 “Fermium Flea” (go1.19.2 linux-arm) deb@build.syncthing.net 2022-11-11 10:49 :15 UTC [noupgrade] [start] 2022/11/19 15:32:54 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?) [monitor] 2022/11/19 15:32:54 INFO: Syncthing exited: exit status 1 [start] 2022/11/19 15:32:55 INFO: syncthing v1.22.2-rc.2 “Fermium Flea” (go1.19.2 linux-arm) deb@build.syncthing.net 2022-11-11 10:49 :15 UTC [noupgrade] [start] 2022/11/19 15:32:55 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?) [monitor] 2022/11/19 15:32:55 INFO: Syncthing exited: exit status 1 [monitor] 2022/11/19 15:32:56 WARNING: 4 restarts in 4.425154837s; not retrying further

I can’t get anything out of this text. I don’t understand these terms. I also tried to re-install syncthing in docker, but it didn’t work. Get lots of error messages. There is probably something else in syncthing’s docker somewhere.

The errors mean that Syncthing is already running. I would try to shut Syncthing down first (e.g. by literally killing the process), then navigate to $HOME/.config/syncthing (see https://docs.syncthing.net/users/config.html), then use any CLI text editor (e.g. vi) to edit config.xml, changing <address> under <gui> from 127.0.0.1:8384 to :8384, save the changes, then start Syncthing again and try to access it remotely using a web browser on another computer (e.g. if the odroid IP is 192.168.0.2, then try to navigate to 192.168.0.2:8384). This assumes that there’s no firewall on odroid that will block the remote access.

Hi tomasz86 I don’t understand your explanation. How do I stop syncthing? And where do I find $HOME/.config/syncthing I don’t see this anywhere in the odroid terminal. The explanation you give is not clear to me. I am not very familiar with difficult English terms.

At this point, this seems more like a “how to use Linux from the command line” problem rather than something related strictly to Syncthing, but assuming that you are at the machine through SSH, you could try typing the following commands.

killall -9 syncthing
cd "$HOME/.config/syncthing"
sed -i "/<address>127.0.0.1:8384<\/address>/ s//<address>:8384<\/address>/" ./config.xml
syncthing

The first command will force stop the currently running Syncthing processes, the second will move you to the Syncthing config folder, the third will replace the 127.0.0.1:8384 address with :8384 to allow remote access, and the last one will start Syncthing again. If you go this route, please make sure to type everything exactly as written above. If you see any errors, please stop, then copy and paste the command line output here. Also, the first killall command may need to be run as root (e.g. with sudo as sudo killall -9 syncthing).

Hello, As I said the folder syncthing does not exist. When I want to go here I get the message No such file or directory Syncthing has stopped. I came across the command “top”. Never heard of it, but saw it come by this afternoon when I was looking to stop a program. I can’t find syncthing in the root either. The only folder there is is “Sync” This folder is empty. I also reinstalled Syncthing, but still get an empty folder. Maybe we should just leave it at that. Syncthing is now on 2 PCs and they see each other. The Odroid would have been nice if it worked. But if it doesn’t work, then it won’t work. I am not a programmer, just a very simple beginner. For my age of almost 60 I don’t think it’s going bad.

Thank you very much for thinking along though. Could help with some explanation.

I see, okay. So the default desktop for Armbian was replaced with OpenMediaVault.

I’ve been using OpenMediaVault for several years so I’m quite familiar with it.

At this point, with all of the things that you have already tried, it’s possible you have Syncthing installed from https://apt.syncthing.net/, Syncthing in a Docker container, or the Syncthing plug-in from https://omv-extras.org/ for OpenMediaVault (or perhaps even all three).

If you want to find out which one is running, use the following command:

ps -ef | grep syncthing

If you don’t understand the output from the command, that’s okay. Post it here and we’ll decipher it.

Hello, I don’t think I did the explanation of tomasz86 properly. I had only entered /.config/syncthing after the prompt because I thought $HOME was the initial prompt with it. Now cd “$HOME/.config/syncthing” entered Then the rest. Syncthing starts but see different http numbers appear. I have tried all of these but do not see a Syncthing appear. This was yesterday. Tried again today, but don’t see any http number now when starting up syncthing. Probably because syncthing is already running. I think I have to stop syncthing again. I have installed Syncthing so many times that I don’t remember which website it went through. It’s happened in so many different ways that I’m lost myself. If I do ps -ef | grep syncthing in typing I see this.

edwin@odroidxu4:~$ ps -ef | grep syncthing edwin 2778 1 0 Nov19 ? 00:00:02 syncthing edwin 6156 2778 0 Nov19 ? 00:05:00 /usr/bin/syncthing edwin 15942 15892 0 11:20 pts/0 00:00:00 grep syncthing

I don’t know what it means.

Not all that simple Linux, though

So many commands and typing text.

I used to have Windows, but my system often crashed on it.

With Linux I’ve only had it 3 times in 5 yrs

Linux doesn’t have to be all about the command line, but without a monitor connected and a normal desktop environment installed, this is all we can work with here :sweat_smile:.

Coming back to the topic, it’s always helpful if you copy and paste full output of the commands that you type in the terminal, especially if there are any obvious errors there. Just a quick tip, when pasting code on the forum, please try to embed it with ``` before and after, so that it becomes easier to read.

Hi tomasz86

I only took a picture of the data. The English translator cannot handle that many characters.

Syncthing I stopped again with kill. Then restarted and now see different http numbers. None of these work. AdBlocker is off. I know this experience.

Syncthing installed from APT seems to start normally, but the different GUI port is used likely because you’ve got another instance already running (maybe inside Docker?). You need to make sure that only one type of Syncthing installation is present, i.e. if you want to use the one from APT, you should uninstall everything else (which, judging by what has been going on in this topic, is likely Docker).

Nevertheless, you should still be able to access the Web GUI even right now by going to <odroid-IP-address>:37391 in a web browser on another computer. Again, this is assuming that there is no firewall on odroid blocking the remote access.

Indeed there was a Syncthing in docker. This one was on exited. Deleted and also deleted an images.

Closed Syncthing in terminal and restarted. I think the same text appears. To odroid http nr:37391 Unfortunately no Syncthing

I don’t see Syncthing in docker images in terminal.

I would like to thank everyone again for the help that has been provided. I’ll leave it at that for myself. Maybe I’ll try putting Syncthing in docker again. A lot of information has come my way so far. If you’re busy with it, it often doesn’t go well. If I try it in a while, I have a good chance that it will work automatically. Thanks everyone

Hi Edwin,

Based on what I’ve seen you’ve accomplished so far – 3 different Linux distributions on a SBC (Single Board Computer) and two laptops… OpenMediaVault… Syncthing… and according to your latest desktop screenshot… Tailscale! – you need to give yourself a lot more credit, you’re no Linux newbie. :grinning:

Keep at it and it’ll get easier. You’re just missing some connections to help piece together all of the various bits of knowledge you’ve already accumulated.

I’ve worked with people who are the polar opposite. Pretending as though they know everything about Linux but in reality know next to nothing.

Quick tip…

Replace the ssh command you use to log onto your ODROID with the following modification (substitute an IP address instead of “odroidxu4” if that’s what you normally use):

ssh -L 37391:127.0.0.1:37391 edwin@odroidxu4

Start Syncthing on your ODROID as before, then point Firefox at http://127.0.0.1:37391/ and you’ll see Syncthing’s web GUI from your ODROID.

The ssh command above forwards port 37391 on your ODROID back through the SSH terminal connection to your Ubuntu PC. This is called “port forwarding” with “SSH tunneling”.

The exit port number doesn’t have to match the source…

ssh -L 1234:127.0.0.1:37391 edwin@odroidxu4

… adjusting the URL to http://127.0.0.1:1234/.

However, you wouldn’t want to use port 8384 because it’s already in use by the local Syncthing running on your Ubuntu PC.

Hi Gadget,

Followed your explanation exactly. I come up with “ssh -L 37391:127.0.0.1:37391 edwin@odroidxu4” on the home screen of the Odroid (terminal) Then typed Syncthing Syncthing starts Then to Firefox and to http://127.0.0.1:37391/

No Syncthing’s web GUI

This does not work.

Well seen from the screenshot. I can do something, but sometimes it takes weeks to get something done.

I also have an Odroid with Zoneminder on it for my Foscam camera. Foscam is only for Windows or Mac. Managed to get this working. Took some time, but it works.

Most things I follow using YouTube. Usually don’t understand it but can follow it.

Because I’ve been working on Syncthing lately, but I’m recording every day with Timeshift. If things don’t go well, I can always put a recording back.

But I can’t get Syncthing on the browser yet.

You’re almost there! :grinning:

According to the terminal screenshot, all of the shell commands worked fine.

For the Firefox screenshot, I recognized the error even though I don’t read/speak Dutch.

Firefox said that the connection had been reset instead of “Unable to connect”. That’s good. It confirms that the port forwarding worked and that there was something listening on the other end of the connection.

The question now is why Syncthing reset the HTTP connection. Repeat the earlier steps logging onto your ODROID and starting Syncthing, but instead of Firefox, open another terminal and run the following command:

curl -I http://127.0.0.1:37391/

Please let me know what the output is.

Hi, This is what I get now after entering your data.

Excellent! :grinning:

image

The “bind: Address already in use” error near the top of your screenshot can be safely ignored. It means the earlier SSH session you made is still open so it is already using local network port 37391.

OpenSSH could not open a second parallel connection to port 37391 so it simply continued with the login into a shell.

The second part of the screenshot is also very promising. Note how probing http://127.0.0.1:37391/ while logged onto your ODROID returned a positive response. Syncthing on your ODROID returned its device ID and version:

Now repeat the curl -I http://127.0.0.1:37391/ command on your Ubuntu/Aspire computer in another terminal window that is not logged onto your ODROID so that we can confirm that the SSH port forward is working. Or in other words, the screenshot of the results from this:

image

Hi, Logged in with ssh -L 37391:127.0.0.1:37391 edwin@odroidxu4

Then syncthing started.

Then open a new window and type curl -I http://127.0.0.1:37391.

Does not work. It gets pretty complicated with all that info. But maybe I’m not doing something right?

Interesting… Syncthing dropped the connection. Let’s add a -v (–verbose) to get more details:

curl -v -I http://127.0.0.1:37391/