Closed hermann-san closed 2 years ago
The good command is in the install script:
That can be converted to:
sudo -u yacy YACY_DATA_PATH=/home/yunohost.app/yacy/DATA /var/www/yacy/bin/passwd.sh youpassword
can I execute this myself or will this be fixed in an update? I've tried it , but got an error message
$ sudo -u yacy YACY_DATA_PATH=/home/yunohost.app/yacy/DATA /var/www/yacy/bin/passwd.sh mypassword
[sudo] password for admin:
Sorry, user admin is not allowed to execute '/var/www/yacy/bin/passwd.sh mypassword' as yacy on
Then I did su to switch to root first
sudo -u yacy YACY_DATA_PATH=/home/yunohost.app/yacy/DATA /var/www/yacy/bin/passwd.sh hHj.%SBXnNQ+Q63Zj21f
Setting new YaCy administrator password...
YaCy server appears to be running. Calling the ConfigAccounts_p API...
curl: (22) The requested URL returned error: 500 Server Error
Password setting failed
I got the complex password issue, but I believe that is or will be fixed in another issue
sudo -u yacy YACY_DATA_PATH=/home/yunohost.app/yacy/DATA /var/www/yacy/bin/passwd.sh mypassword
Setting new YaCy administrator password...
YaCy server appears to be running. Calling the ConfigAccounts_p API...
Password successfully changed for User Name 'admin'.
So now I can get to the admin page and things are fine for me. Thanks for your help
Describe the bug
after installing Yacy, I can access the search page and also the admin page, but the log-in to the secured admin area doesn't work. After I've click on the log-in link, it tries to loead a page, but nothing happens. I keep tries to load the page.
Steps to reproduce
Expected behavior
Log-in should be successful. It appears that there is some problem with the enviroment path and the password. With su permission I went to path /var/www/yacy on the console and tried to set the password with ./passwd , but there is an error message. I'm not sure if I#m on the right path to solve this. Dunno how to change the environment path. Error:
Logs