[root@dns323]# syncthing
[monitor] 21:01:36 INFO: Starting syncthing
[NNZJ5] 21:01:37 INFO: syncthing v0.13.9 "Copper Cockroach" (go1.6.2 linux-arm) unknow...@lx-buildslave.syncthing.net 2016-06-26 13:40:51 UTC
[NNZJ5] 21:01:37 INFO: My ID: NNZJ5XG-7ISRJEJ-EYMAAJK-76ASECK-KDDGTT3-K76D3VN-YDO7G5A-35RO3AY
[NNZJ5] 21:01:37 INFO: Single thread hash performance is ~2.8 MB/s
[NNZJ5] 21:01:37 INFO: Error loading config file; using defaults for now
[NNZJ5] 21:01:37 INFO: Default folder created and/or linked to new config
[NNZJ5] 21:01:37 INFO: Defaults saved. Edit /root/.config/syncthing/config.xml to taste or use the GUI
[NNZJ5] 21:01:37 FATAL: Cannot open database: readdirent: input/output error - Is another copy of Syncthing already running?
[monitor] 21:01:37 INFO: Syncthing exited: exit status 1
Hi,Finally i decided to get the new version of Alt F, as I use the Alt-F-0.1RC4.1 frimware currently. Before flashing it I tried the new frimware out using the TryIt button. After that I installed and upgraded the Syncthing package
to version 1.3.4. the program worked well,
untill I realized that the syncthing default folder was created in the /root folder,
so after uploading a few files, I got the error message int the ssh terminal that there is not enough space on the device. I thought Syncthing started to fill up the flash memory with files but I am not sure about that. I checked the root directory on ftp and found the .config/syncthing folder, but that does not contain any files. Howewer I am not able to delete or replace the folder. my problem is that I can not start syncthing via the webUI or SSH, a just get the message above:[root@dns323]# syncthing
[monitor] 21:01:36 INFO: Starting syncthing
[NNZJ5] 21:01:37 INFO: syncthing v0.13.9 "Copper Cockroach" (go1.6.2 linux-arm) unknown-user@lx-buildslave.syncthing.net 2016-06-26 13:40:51 UTC
[NNZJ5] 21:01:37 INFO: My ID: NNZJ5XG-7ISRJEJ-EYMAAJK-76ASECK-KDDGTT3-K76D3VN-YDO7G5A-35RO3AY
[NNZJ5] 21:01:37 INFO: Single thread hash performance is ~2.8 MB/s
[NNZJ5] 21:01:37 INFO: Error loading config file; using defaults for now
[NNZJ5] 21:01:37 INFO: Default folder created and/or linked to new config
[NNZJ5] 21:01:37 INFO: Defaults saved. Edit /root/.config/syncthing/config.xml to taste or use the GUI
[NNZJ5] 21:01:37 FATAL: Cannot open database: readdirent: input/output error - Is another copy of Syncthing already running?
[monitor] 21:01:37 INFO: Syncthing exited: exit status 1i tried uninstall and then reinstall the package several times, but nothing changed. Actually, it seems that the setup can not create its own config.xml and database file in that folder. Now I am be afraid of doing anything(especially flashing) with this as it can probably causes problems at flashing the new frimware.
On Friday, March 13, 2020 at 9:33:58 PM UTC, Sámuel Földi wrote:Hi,Finally i decided to get the new version of Alt F, as I use the Alt-F-0.1RC4.1 frimware currently. Before flashing it I tried the new frimware out using the TryIt button. After that I installed and upgraded the Syncthing packageUsing the webUI?
to version 1.3.4. the program worked well,How did you start it? Using the webUI?
untill I realized that the syncthing default folder was created in the /root folder,So you started if from the command line. You should use the webUI or, from the command line use the 'rcsyncthing start|stop|status|...' command, that is a shortcut to the script /etc/init.d/S81syncthing that sets everything needed to properly run the program.Once some files exists, it is assumed that it was the user who knows what he is doing that created them and they will not be re-created.As the pkg is installed on disk, newly created files are not removed when uninstalling or reinstalling the pkg. The configuration file is created the first time the program runs, so it is on disk.so after uploading a few files, I got the error message int the ssh terminal that there is not enough space on the device. I thought Syncthing started to fill up the flash memory with files but I am not sure about that. I checked the root directory on ftp and found the .config/syncthing folder, but that does not contain any files. Howewer I am not able to delete or replace the folder. my problem is that I can not start syncthing via the webUI or SSH, a just get the message above:[root@dns323]# syncthingNO! [deleted as I was not being kind]When I don't know what a program does or what options it needs or accepts, I use to invoke it using the --help or -h options, or even given a stupid argument to it so it does not recognize it and prints some help, e.g. 'ls -foobar'stop the program, uninstall the pkg, then use the commandrm -rf /var/lib/syncthingreinstall the pkg, configure it using the webUI, Services->User,syncthing,ConfigureThat will create the user syncthing and its home folder at /var/lib/syncthing, and the group sync, run syncthing in a special mode in order to generate its configuration file at /var/lib/syncthing/config.xml, create its cryptographic keys, etc, etc.Hope that you don't have a folder named 'root' under the /Alt-F folder. Please read /Alt-F/README.txt
[monitor] 21:01:36 INFO: Starting syncthing
[NNZJ5] 21:01:37 INFO: syncthing v0.13.9 "Copper Cockroach" (go1.6.2 linux-arm) unknow...@lx-buildslave.syncthing.net 2016-06-26 13:40:51 UTC
[NNZJ5] 21:01:37 INFO: My ID: NNZJ5XG-7ISRJEJ-EYMAAJK-76ASECK-KDDGTT3-K76D3VN-YDO7G5A-35RO3AY
[NNZJ5] 21:01:37 INFO: Single thread hash performance is ~2.8 MB/s
[NNZJ5] 21:01:37 INFO: Error loading config file; using defaults for now
[NNZJ5] 21:01:37 INFO: Default folder created and/or linked to new config
[NNZJ5] 21:01:37 INFO: Defaults saved. Edit /root/.config/syncthing/config.xml to taste or use the GUI
[NNZJ5] 21:01:37 FATAL: Cannot open database: readdirent: input/output error - Is another copy of Syncthing already running?
[monitor] 21:01:37 INFO: Syncthing exited: exit status 1i tried uninstall and then reinstall the package several times, but nothing changed. Actually, it seems that the setup can not create its own config.xml and database file in that folder. Now I am be afraid of doing anything(especially flashing) with this as it can probably causes problems at flashing the new frimware.I don't foresee issues except if the folder /Alt-F/root exists, but it wise to solve problems and have a stable environment before flashing.Could somebody help with this problem? I would be grateful for that!ThanksSam
Is this normal? After uninstalling the pkg , running the command you wrote and reinstalling the pkg I still can not reach the GUI within the Alt-F after hitting the "Configure button"
What I am thinking about is doing a "clean installation"(first deleting everything related to syncthing and then reinstall it properly), if it is possible. I know I am not a linux guru so I would like to ask for your advice about installing and configuring/upgrading syncthing properly.
Thanks a lot for your previous answer!!
Best,
Sam
2020. március 14., szombat 4:18:47 UTC+1 időpontban Joao Cardoso a következőt írta:
On Friday, March 13, 2020 at 9:33:58 PM UTC, Sámuel Földi wrote:Hi,Finally i decided to get the new version of Alt F, as I use the Alt-F-0.1RC4.1 frimware currently. Before flashing it I tried the new frimware out using the TryIt button. After that I installed and upgraded the Syncthing packageUsing the webUI?I installed the package using the webUI, but I can not configure the program using the GUI on the Alt F platform as every time I hit the "Configure button" there was a login window saying "my connection to the website is not private"
and asking for a username&password.
to version 1.3.4. the program worked well,How did you start it? Using the webUI?As couldnt open the syncthing webui from browser within the Alt-F, I folowed the instructions written int his post: "[Solved] Syncthing fails to connect to relays after upgrading to v1.1.0" . After updating the newest version (from command line using syncthing -upgrade), and changing the config.xml file in order to acces the GUI from browser, I was able to work with the syncthing GUI as well.
Now i have the folllowing files in several folders :
Is this normal? After uninstalling the pkg , running the command you wrote and reinstalling the pkg I still can not reach the GUI within the Alt-F after hitting the "Configure button"
What I am thinking about is doing a "clean installation"
(first deleting everything related to syncthing and then reinstall it properly), if it is possible.
I know I am not a linux guru so I would like to ask for your advice about installing and configuring/upgrading syncthing properly.
Thanks a lot for your previous answer!!
Best,
Sam
On Saturday, 14 March 2020 12:34:33 UTC, Sámuel Földi wrote:
2020. március 14., szombat 4:18:47 UTC+1 időpontban Joao Cardoso a következőt írta:
On Friday, March 13, 2020 at 9:33:58 PM UTC, Sámuel Földi wrote:Hi,Finally i decided to get the new version of Alt F, as I use the Alt-F-0.1RC4.1 frimware currently. Before flashing it I tried the new frimware out using the TryIt button. After that I installed and upgraded the Syncthing packageUsing the webUI?I installed the package using the webUI, but I can not configure the program using the GUI on the Alt F platform as every time I hit the "Configure button" there was a login window saying "my connection to the website is not private"You should not use https for the Alt-F webUI, as the syncthing webpage is http and mixing both is not allowed. When Alt-F tries to embed syncthing on it the conflict arises
and asking for a username&password.A username and password are only asked for syncthing *after* you set password on it. So either you have done that or syncthing is using a non-Alt-F generated configuration file (a leftover of your previous attempts).
to version 1.3.4. the program worked well,How did you start it? Using the webUI?As couldnt open the syncthing webui from browser within the Alt-F, I folowed the instructions written int his post: "[Solved] Syncthing fails to connect to relays after upgrading to v1.1.0" . After updating the newest version (from command line using syncthing -upgrade), and changing the config.xml file in order to acces the GUI from browser, I was able to work with the syncthing GUI as well.Well, if you are using someone else conflicting instructions...syncthing should be upgraded from its own webUI, not from the command line. You have to install first the Alt-F version, put it running, then upgrade it from within itself. If you use the command line to do whatever you have to give it arguments to tell where its configuration files are.
The syncthing program itself is installed under /opt/syncthingNow i have the folllowing files in several folders :
That's OK, that's syncthing home folder, used for its own data and configuration files
How are you able to see what's inside /root using a UI browser? Using what program? That should not be possible!
Is this normal? After uninstalling the pkg , running the command you wrote and reinstalling the pkg I still can not reach the GUI within the Alt-F after hitting the "Configure button"
http (syncthing by default uses that) within https (Alt-F webUI?) is not possible.
What I am thinking about is doing a "clean installation"
(first deleting everything related to syncthing and then reinstall it properly), if it is possible.
-verify that /Alt-F/root does not exists:-Packages->Alt-F, Packages Installed on section, notice where it is installed under the FS column, e.g., sda2 or md0
-Setup->Folders and browse to that location, does a 'root' folder exists? if it exists, STOP
-Uninstall the syncthing package using the webUI, Packages->Alt-F. That will stop syncthing first (if launched by Alt-F!), remove the syncthing user and its installation folder, /opt/syncthing. Verify that it was indeed stopped using System->Utilities,View Logs, Running Processes. If it is listed as running, STOP.-remove /var/lib/syncthing, the pkg uninstall will not touch that, as it might contain user data-remove /root/* nothing has to be there, /root is in memory and must be empty -- but don't remove /root, if you do and then recreate it it will go to disk!
-use http to access Alt-F webUI-install the syncthing pkg-configure it but don't set a password nor enable https. Mostly, do nothing-after verifying that is is working, stop it and start it, and verify that it is still working-upgrade it within its own webUI. That will stop if, perform the upgrade and eventually, can't remember, start it.
I know I am not a linux guru so I would like to ask for your advice about installing and configuring/upgrading syncthing properly.
Thanks a lot for your previous answer!!
Best,
The main problem when following other people posts is to know if the environment and pre-conditions are the same, and frequently they are not. For example, do you have a folder called root within /Alt-F(No have not)? Are you using https to access the Alt-F webUI?(I believe I am not.) What program are you using to see the /root contents? (WinSCP with root authority)
Sam
Are you using https to access the Alt-F webUI?(I believe I am not.)
What program are you using to see the /root contents? (WinSCP with root authority)
Sam
To summarize:- verify that /Alt-F/root does not exist ----> done-uninstall the syncthing pkg using the webUI-it removes /opt/syncthing- check if the syncthing process is still running-remove /var/lib/syncthing-remove all contents stored in the /root folder, but not the folder itself
Question: I should not remove any other file belonging to syncthing e.g.:/etc/init.d/S81syncthing,shouldn't I?
-istall syncthing pkg within the webUI (using http) and configure it using it's own GUI
-NOT use the command line to do anything
-upgrade syncthing using its own GUI
I am very appreciating your help!. I hope it will finally work well. I only want to ask now, whether my Summary is correct or not.