MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.9k stars 499 forks source link

Yacy administration page errors out. #7267

Open mikedebian opened 3 weeks ago

mikedebian commented 3 weeks ago

Creating a bug report/issue

Required Information

Additional Information (if applicable)

Steps to reproduce

  1. dietpi-software install 133
  2. load webpage at http://1.2.3.4:8090
  3. Click on administrator on top right
  4. watch the page render for a split second.

Expected behaviour

Actual behaviour

Extra details

Pastebin of error message

Joulinar commented 3 weeks ago

hmm I did a test an a VM without issues. Installation succeeded and web site is reachable right after

service log

root@DietPiVM:~# journalctl -u yacy.service
Nov 01 10:38:20 DietPiVM systemd[1]: Starting yacy.service - YaCy (DietPi)...
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: ****************** YaCy Web Crawler/Indexer & Search Engine *******************
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: **** (C) by Michael Peter Christen, usage granted under the GPL Version 2  ****
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: ****   USE AT YOUR OWN RISK! Project home and releases: http://yacy.net/   ****
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: **  LOG of       YaCy: DATA/LOG/yacy00.log (and yacy<xx>.log)                **
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: **  STOP         YaCy: execute stopYACY.sh and wait some seconds             **
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: **  GET HELP for YaCy: join our community at https://searchlab.eu            **
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]: *******************************************************************************
Nov 01 10:38:20 DietPiVM startYACY.sh[2737]:  >> YaCy started as daemon process. Administration at http://localhost:8090 <<
Nov 01 10:38:20 DietPiVM systemd[1]: Started yacy.service - YaCy (DietPi).
root@DietPiVM:~#

service status

root@DietPiVM:~# systemctl status yacy.service
● yacy.service - YaCy (DietPi)
     Loaded: loaded (/etc/systemd/system/yacy.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-11-01 10:38:20 GMT; 3min 2s ago
       Docs: https://wiki.yacy.net/index.php/En:Start
    Process: 2737 ExecStart=/etc/yacy/startYACY.sh (code=exited, status=0/SUCCESS)
   Main PID: 2749 (java)
      Tasks: 69 (limit: 2349)
     Memory: 305.9M
        CPU: 12.602s
     CGroup: /system.slice/yacy.service
             └─2749 /usr/bin/java -Xmx600m -Xms180m -server ....

LISTEN ports

root@DietPiVM:~# ss -tulpn | grep LISTEN
tcp   LISTEN 0      1000         0.0.0.0:22        0.0.0.0:*    users:(("dropbear",pid=471,fd=3))
tcp   LISTEN 0      128                *:8090            *:*    users:(("java",pid=2749,fd=177))
tcp   LISTEN 0      1000            [::]:22           [::]:*    users:(("dropbear",pid=471,fd=4))
root@DietPiVM:~#

Where did you have seen that error message

EDIt: AHH I see, it's while opening the admin page

Joulinar commented 3 weeks ago

ok probably similar to this one. https://github.com/yacy/yacy_search_server/issues/579

I guess a password would need to be set first. Can be done according our online docs https://dietpi.com/docs/software/distributed_projects/#yacy-admin-interface-login

mikedebian commented 2 weeks ago

That worked! I SSH in to the system and set the password to my own personal one and the page loads now. I did not know it was mandatory.. Close?

Joulinar commented 2 weeks ago

@MichaIng maybe we should set password automatically during install? I can submit a PR if you agree.

mikedebian commented 2 weeks ago

e

Using the global password would be a good idea

Joulinar commented 2 weeks ago

There is some light at the end of the tunnel, and we will update Yacy version + install process on next DietPi version.