YaCy admin login failed Topic is solved

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

YaCy admin login failed

Post by omavoss »

Hello,

I have successfully installed YaCy and can see the search page with Google Chrome. I successfully assigned a password on the DietPi console. Nevertheless, I can not log in to the administration interface of YaCy, I get the error:

Code: Select all


HTTP ERROR 401
Problem accessing /ConfigBasic.html. Reason:

    Unauthorized

YaCy 1.922 - powered by Jetty -


Reboot of DietPi did not help either, also every other browser throws the same error.

dietpi -reinstall 133 also unsuccessful:

Code: Select all


root@DietPi:~# dietpi -reinstall 133
-bash: dietpi: Kommando nicht gefunden.
root@DietPi:~#

root@DietPi:~# dietpi-reinstall 133
-bash: dietpi-reinstall: Kommando nicht gefunden.
root@DietPi:~#

What can be done?


Many greetings.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: YaCy admin login failed

Post by Joulinar »

Hi,

did you tried to reset the password again?

Code: Select all

/etc/yacy/bin/passwd.sh mypassword
The command to reinstall software would be

Code: Select all

dietpi-software reinstall 133
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 50
Joined: Thu Sep 24, 2020 11:08 pm

Re: YaCy admin login failed

Post by omavoss »

Yes, I tried to reset the password again:

Code: Select all

root@DietPi:/etc/yacy/bin# ./passwd.sh
Setting new YaCy administrator password...
Please enter the new password for user 'admin' :
YaCy server appears to be running. Calling the ConfigAccounts_p API...
Enter host password for user 'admin':
curl: (22) The requested URL returned error: 401
curl: (22) The requested URL returned error: 401
Password setting failed.
root@DietPi:/etc/yacy/bin#
I am still doing something wrong, what to do?

Many greetings.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: YaCy admin login failed

Post by Joulinar »

you need to set password already at the command /etc/yacy/bin/passwd.sh demo. I used demo as password

Code: Select all

root@DietPi3:~# /etc/yacy/bin/passwd.sh demo
Setting new YaCy administrator password...
YaCy server appears to be running. Calling the ConfigAccounts_p API...
Password successfully changed for User Name 'admin'.
root@DietPi3:~#
Now I'm able to use admin/demo to login on admin web page
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 50
Joined: Thu Sep 24, 2020 11:08 pm

Re: YaCy admin login failed

Post by omavoss »

@Joulinar:
Thanks for the solution.

I have previously selected a secure password with upper and lower case letters, numbers and special characters, under mypassword I understood that I should use a password selected by me.

What conventions should the password for YaCy follow? "demo" worked, but this password is too insecure for me.

many greetings.

Sorry, I found my mistake.
First you enter the new self-selected password, at the following second prompt you enter the previous password, then the new password is taken over.
Thanks for the great support.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: YaCy admin login failed

Post by Joulinar »

great that it is working now
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply