Yacy service failed Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
omavoss
Posts: 43
Joined: Thu Sep 24, 2020 11:08 pm

Yacy service failed

Post by omavoss »

Hello,
I have to notice that the Yacy service is not running after a few hours. I restart this service, but after a few hours the service crashes again. This has been happening again and again for a few days. Yacy is unusable in this form.

What can be done?
Many kind regards.

Code: Select all

  Please select an option or program:                                          │
│                                                                              │
│                         ●─ Single Service Options ─────────────●             │
│            avahi-daemon : active | Affinity 0-3                              │
│            mariadb      : active | Affinity 0-3                              │
│            php7.3-fpm   : active | Affinity 0-3                              │
│            lighttpd     : active | Affinity 0-3                              │
│            yacy         : failed | Affinity 0-3                              │
│            cron         : active | Affinity 0-3                              │
│            ssh          : active | Affinity 0-3                              │
│            fail2ban     : active | Affinity 0-3                              │
│            openvpn      : active | Affinity 0-3                              │
│            Add          : Add missing service to DietPi-Services             │
│                         ●─ Global Service Options ─────────────●             │
│            Stop         : Stop ALL above services                            │
│            Restart      : Start/restart ALL above services                   │
│                                                                              │
│                                                                              │
│                     <Ok>                         <Exit>            

Code: Select all

  Please select an option for yacy:                                                                                    │
│                                                                                                                      │
│                                               ●─ Service Control ───────────────────────────●                        │
│                       State                   : [failed]                                                             │
│                       Mode                    : [DietPi controlled]                                                  │
│                       Include/Exclude         : [included]                                                           │
│                       Status                  : Display systemd status log                                           │
│                       Edit                    : [/etc/systemd/system/yacy.service]                                   │
│                                               ●─ Process Tool ──────────────────────────────●                        │
│                       CPU Affinity            : [0-3]                                                                │
│                       CPU Scheduling Policy   : [other]                                                              │
│                       CPU Nice                : [19]                                                                 │
│                       I/O Scheduling Class    : [best-effort]                                                        │
│                       I/O Scheduling Priority : [7]                                                                  │
│                                               ●─ Presets ───────────────────────────────────●                        │
│                       Reset                   : Resets all CPU/IO settings to system defaults                        │
│                       Highest Priority        : Highest priority realtime CPU/IO preset                              │
│                       High Priority           : High priority CPU/IO preset                                          │
│                       Low Priority            : Low priority CPU/IO preset                                           │
│                       Lowest Priority         : Lowest priority background CPU/IO preset                             │
│                                                                                                                      │
│                                                                                                                      │
│                                  <Ok>                                      <Back>                       
I restart this service:

Code: Select all

  Please select an option for yacy:                                                                                    │
│                                                                                                                      │
│                                               ●─ Service Control ───────────────────────────●                        │
│                       State                   : [active]                                                             │
│                       Mode                    : [DietPi controlled]                                                  │
│                       Include/Exclude         : [included]                                                           │
│                       Status                  : Display systemd status log                                           │
│                       Edit                    : [/etc/systemd/system/yacy.service]                                   │
│                                               ●─ Process Tool ──────────────────────────────●                        │
│                       CPU Affinity            : [0-3]                                                                │
│                       CPU Scheduling Policy   : [other]                                                              │
│                       CPU Nice                : [19]                                                                 │
│                       I/O Scheduling Class    : [best-effort]                                                        │
│                       I/O Scheduling Priority : [7]                                                                  │
│                                               ●─ Presets ───────────────────────────────────●                        │
│                       Reset                   : Resets all CPU/IO settings to system defaults                        │
│                       Highest Priority        : Highest priority realtime CPU/IO preset                              │
│                       High Priority           : High priority CPU/IO preset                                          │
│                       Low Priority            : Low priority CPU/IO preset                                           │
│                       Lowest Priority         : Lowest priority background CPU/IO preset                             │
│                                                                                                                      │
│                                                                                                                      │
│                                  <Ok>                                      <Back>                            



   root@DietPi:~# dietpi-services
[  OK  ] DietPi-Services | restart : yacy
[  OK  ] DietPi-Services | stop : yacy
[  OK  ] DietPi-Services | restart : yacy
root@DietPi:~#
As soon as I try to access Yacy with the browser, the service crashes:

Code: Select all

  ● yacy.service - YaCy (DietPi)                                                                                       │
│    Loaded: loaded (/etc/systemd/system/yacy.service; disabled; vendor preset: enabled)                               │
│    Active: failed (Result: signal) since Tue 2021-03-23 18:36:31 CET; 27s ago                                        │
│   Process: 2591 ExecStart=/etc/yacy/startYACY.sh (code=exited, status=0/SUCCESS)                                     │
│  Main PID: 2615 (code=killed, signal=ABRT)                                                                           │
│                                                                                                                      │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]: **** (C) by Michael Peter Christen, usage granted under the GPL Version 2 │
│ ****                                                                                                                 │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]: ****   USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/  │
│ ****                                                                                                                 │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]: **  LOG of       YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log)             │
│ **                                                                                                                   │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]: **  STOP         YaCy: execute stopYACY.sh and wait some seconds          │
│ **                                                                                                                   │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]: **  GET HELP for YaCy: join our community at https://searchlab.eu         │
│ **                                                                                                                   │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]:                                                                           │
│ *******************************************************************************                                      │
│ Mar 23 18:36:10 DietPi startYACY.sh[2591]:  >> YaCy started as daemon process. Administration at                     │
│ http://localhost:8090 <<                                                                                             │
│ Mar 23 18:36:10 DietPi systemd[1]: Started YaCy (DietPi).                                                            │
│ Mar 23 18:36:31 DietPi systemd[1]: yacy.service: Main process exited, code=killed, status=6/ABRT                     │
│ Mar 23 18:36:31 DietPi systemd[1]: yacy.service: Failed with result 'signal'.                                        │
│                                                                                                                      │
│                                                        <Ok>
Yacy uninstall and reinstall was unsuccessful, the service still crashes.
User avatar
Joulinar
Posts: 4249
Joined: Sat Nov 16, 2019 12:49 am

Re: Yacy service failed

Post by Joulinar »

Hi,

you could have a look to the log file if there is anything stated about the crash

Code: Select all

cat /etc/yacy/DATA/LOG/yacy00.log
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 43
Joined: Thu Sep 24, 2020 11:08 pm

Re: Yacy service failed

Post by omavoss »

Hey @Joulinar; it's a very big file:

root@DietPi:~# dietpi-services
[ OK ] DietPi-Services | restart : yacy
[ OK ] DietPi-Services | stop : yacy
[ OK ] DietPi-Services | restart : yacy
root@DietPi:~# cat /etc/yacy/DATA/LOG/yacy00.log
I 2021/03/24 20:15:22 UPNP no device found
I 2021/03/24 20:15:25 Domain Init local host address: fe80:0:0:0:cf11:1766:b70b:55b6 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fe80::cf11:1766:b70b:55b6 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 127.0.1.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 127.0.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 0::1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 0:0:0:0:0:0:0:1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 2001:16b8:556d:cc00:ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: 192.168.115.30 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 10.9.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 10.8.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fd00:0:0:0:ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: fd00::ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: fe80:0:0:0:ba27:ebff:fecd:ec9 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fe80::ba27:ebff:fecd:ec9 (local)
I 2021/03/24 20:15:25 HeapReader generating index for /etc/yacy/DATA/WORK/stats.bheap, 0 MB. Please wait.
I 2021/03/24 20:15:25 HeapReader finished index generation for /etc/yacy/DATA/WORK/stats.bheap, 1 entries, 0 gaps.
I 2021/03/24 20:15:25 Heap initializing heap /etc/yacy/DATA/WORK/stats.bheap
I 2021/03/24 20:15:25 HeapReader generating index for /etc/yacy/DATA/WORK/api.bheap, 0 MB. Please wait.
I 2021/03/24 20:15:25 HeapReader finished index generation for /etc/yacy/DATA/WORK/api.bheap, 2 entries, 0 gaps.
I 2021/03/24 20:15:25 Heap initializing heap /etc/yacy/DATA/WORK/api.bheap
I 2021/03/24 20:15:27 Word hashCache.size = 20000
I 2021/03/24 20:15:27 SWITCHBOARD Initializing Segment '/etc/yacy/DATA/INDEX/freeworld/SEGMENTS.
I 2021/03/24 20:15:28 org.apache.solr.core.SolrXmlConfig Loading container configuration from /etc/yacy/defaults/solr/solr.xml
I 2021/03/24 20:15:29 org.apache.solr.update.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
I 2021/03/24 20:15:30 org.apache.solr.core.CorePropertiesLocator Found 2 core definitions underneath /etc/yacy/DATA/INDEX/freeworld/SEGMENTS/solr_6_6
I 2021/03/24 20:15:30 org.apache.solr.core.CorePropertiesLocator Cores are: [collection1, webgraph]
I 2021/03/24 20:15:30 org.apache.solr.core.TransientSolrCoreCacheDefault Allocating transient cache for 2147483647 transient cores
root@DietPi:~#

Yacy after crash:

root@DietPi:~# cat /etc/yacy/DATA/LOG/yacy00.log
I 2021/03/24 20:15:22 UPNP no device found
I 2021/03/24 20:15:25 Domain Init local host address: fe80:0:0:0:cf11:1766:b70b:55b6 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fe80::cf11:1766:b70b:55b6 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 127.0.1.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 127.0.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 0::1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 0:0:0:0:0:0:0:1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 2001:16b8:556d:cc00:ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: 192.168.115.30 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 10.9.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: 10.8.0.1 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fd00:0:0:0:ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: fd00::ba27:ebff:fecd:ec9 (public)
I 2021/03/24 20:15:25 Domain Init local host address: fe80:0:0:0:ba27:ebff:fecd:ec9 (local)
I 2021/03/24 20:15:25 Domain Init local host address: fe80::ba27:ebff:fecd:ec9 (local)
I 2021/03/24 20:15:25 HeapReader generating index for /etc/yacy/DATA/WORK/stats.bheap, 0 MB. Please wait.
I 2021/03/24 20:15:25 HeapReader finished index generation for /etc/yacy/DATA/WORK/stats.bheap, 1 entries, 0 gaps.
I 2021/03/24 20:15:25 Heap initializing heap /etc/yacy/DATA/WORK/stats.bheap
I 2021/03/24 20:15:25 HeapReader generating index for /etc/yacy/DATA/WORK/api.bheap, 0 MB. Please wait.
I 2021/03/24 20:15:25 HeapReader finished index generation for /etc/yacy/DATA/WORK/api.bheap, 2 entries, 0 gaps.
I 2021/03/24 20:15:25 Heap initializing heap /etc/yacy/DATA/WORK/api.bheap
I 2021/03/24 20:15:27 Word hashCache.size = 20000
I 2021/03/24 20:15:27 SWITCHBOARD Initializing Segment '/etc/yacy/DATA/INDEX/freeworld/SEGMENTS.
I 2021/03/24 20:15:28 org.apache.solr.core.SolrXmlConfig Loading container configuration from /etc/yacy/defaults/solr/solr.xml
I 2021/03/24 20:15:29 org.apache.solr.update.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=600000&connTimeout=60000&retry=true
I 2021/03/24 20:15:30 org.apache.solr.core.CorePropertiesLocator Found 2 core definitions underneath /etc/yacy/DATA/INDEX/freeworld/SEGMENTS/solr_6_6
I 2021/03/24 20:15:30 org.apache.solr.core.CorePropertiesLocator Cores are: [collection1, webgraph]
I 2021/03/24 20:15:30 org.apache.solr.core.TransientSolrCoreCacheDefault Allocating transient cache for 2147483647 transient cores
root@DietPi:~#

Many thanks for your support and friendly greetings.
omavoss
Posts: 43
Joined: Thu Sep 24, 2020 11:08 pm

Re: Yacy service failed

Post by omavoss »

Sorry,
I have now uninstall YaCy from my raspi3 machine and install it on my raspi2 machine, there is no error.

The log file is too big for posting.

Thank you for your great support and many greetings.
Post Reply