YunoHost-Apps / dolibarr_ynh

Dolibarr ERP & CRM is a modern software to manage your organization's activity. This is an integration of Dolibarr in YunoHost
https://www.dolibarr.org/
GNU Affero General Public License v3.0
12 stars 18 forks source link

Can't get past the install.lock. Found no install process. Can't go any further. #28

Closed Cdez closed 3 years ago

Cdez commented 4 years ago

Having the same problem as the past like 3 issues #26 and #19, get up to that same page, and can't get any further. When I delete the install.lock file from out of /var/www/dolibarr/documents, and then I get this page that says to upgrade, when I try that, it does nothing for me, and just puts the install.lock back, can't even select the 'Fresh Install', says I can't get to it or something.

Tr4sK commented 4 years ago

I’m stuck on this also. On the yunohost installation process, before the second step of the installation, I can see the login page. It look like, something is wrong on the second step.

I tried several time. First on buster with yunohost testing. Then decided to switch to stretch without success.

Tr4sK commented 4 years ago

I just tried a new installation by reinstalling dolibarr app. This time, I cannot access to the dolibarr URL, cause I'm looping (redirect 301) on the login page. If I change $dolibarr_main_authentication to anything else (ldap, dolibarr) than http I can access to the login page without having that upgrade/installation process.

Still, my guess is that the script that should take care of populating account sync_users_ldap2dolibarr.php is not working. The llx_user table is empty.

Tr4sK commented 4 years ago

Here is some log:

app_install-dolibarr.log permission_create-dolibarr.log user_permission_update-dolibarr.log user_permission_update-dolibarr.log

Tr4sK commented 4 years ago

Looks like something is going wrong here:

2020-07-26 20:10:10,539: INFO - [##########++++++++..] > installation - step 2 (may take a while)...
2020-07-26 20:10:10,540: DEBUG - + touch /tmp/ynh-dolibarr-cookie.txt
2020-07-26 20:10:10,540: DEBUG - + chown root /tmp/ynh-dolibarr-cookie.txt
2020-07-26 20:10:10,541: DEBUG - + chmod 700 /tmp/ynh-dolibarr-cookie.txt
2020-07-26 20:10:10,541: DEBUG - + curl --silent --show-error --insecure --location --header 'Host: dolibarr.maindomain.tld' --resolve dolibarr.maindomain.tld:443:127.0.0.1 --data 'testpost=ok&action=set' https://localhost/install/step2.php --cookie-jar /tmp/ynh-dolibarr-cookie.txt --cookie /tmp/ynh-dolibarr-cookie.txt
2020-07-26 20:15:10,671: DEBUG - <html>
2020-07-26 20:15:10,672: DEBUG - <head><title>504 Gateway Time-out</title><script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynh_overlay.css"></link><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></link></head>
2020-07-26 20:15:10,672: DEBUG - <body bgcolor="white">
2020-07-26 20:15:10,672: DEBUG - <center><h1>504 Gateway Time-out</h1></center>
2020-07-26 20:15:10,673: DEBUG - <hr><center>nginx</center>
2020-07-26 20:15:10,673: DEBUG - </body>
2020-07-26 20:15:10,673: DEBUG - </html>

And, found this in the mainlog when the ldap2dolibarr script is running. Looks empty to me

2020-07-26 20:15:17,270: DEBUG - + php /var/www/dolibarr/scripts/user/sync_users_ldap2dolibarr.php commitiferror --se
rver=localhost -y
2020-07-26 20:15:17,872: DEBUG - ***** sync_users_ldap2dolibarr.php (11.0.5) pid=12033 *****
2020-07-26 20:15:17,872: DEBUG - Mails sending disabled (useless in batch mode)
2020-07-26 20:15:17,872: DEBUG - 
2020-07-26 20:15:17,873: DEBUG - ----- Synchronize all records from LDAP database:
2020-07-26 20:15:17,873: DEBUG - host=localhost
2020-07-26 20:15:17,873: DEBUG - port=389
2020-07-26 20:15:17,874: DEBUG - login=
2020-07-26 20:15:17,874: DEBUG - pass=
2020-07-26 20:15:17,874: DEBUG - DN to extract=ou=users,dc=yunohost,dc=org
2020-07-26 20:15:17,874: DEBUG - Filter=(&(objectClass=posixAccount))
2020-07-26 20:15:17,875: DEBUG - ----- To Dolibarr database:
2020-07-26 20:15:17,875: DEBUG - type=mysqli
2020-07-26 20:15:17,875: DEBUG - host=localhost
2020-07-26 20:15:17,875: DEBUG - port=3306
2020-07-26 20:15:17,876: DEBUG - login=dolibarr
2020-07-26 20:15:17,876: DEBUG - database=dolibarr
2020-07-26 20:15:17,876: DEBUG - ----- Options:
2020-07-26 20:15:17,876: DEBUG - commitiferror=1
2020-07-26 20:15:17,877: DEBUG - excludeuser=
2020-07-26 20:15:17,877: DEBUG - Mapped LDAP fields=
2020-07-26 20:15:17,877: DEBUG - 
2020-07-26 20:15:18,178: DEBUG - No error, we commit
2020-07-26 20:15:18,179: DEBUG - 
2020-07-26 20:15:18,179: DEBUG - + ynh_print_info '--message=ldap user update ok'
2020-07-26 20:15:18,179: DEBUG - + local legacy_args=m
2020-07-26 20:15:18,179: DEBUG - + args_array=([m]=message=)
2020-07-26 20:15:18,180: DEBUG - + local -A args_array
2020-07-26 20:15:18,180: DEBUG - + local message
2020-07-26 20:15:18,180: DEBUG - + ynh_handle_getopts_args '--message=ldap user update ok'
2020-07-26 20:15:18,181: DEBUG - + set +o xtrace
2020-07-26 20:15:18,181: DEBUG - + echo 'ldap user update ok'
2020-07-26 20:15:18,181: DEBUG - + '[' 0 -eq 1 ']'
2020-07-26 20:15:18,181: DEBUG - + '[' 0 -eq 0 ']'
2020-07-26 20:15:18,182: DEBUG - + ynh_app_setting_delete --app=dolibarr --key=skipped_uris
2020-07-26 20:15:18,182: DEBUG - + local legacy_args=ak
2020-07-26 20:15:18,182: DEBUG - + args_array=([a]=app= [k]=key=)
2020-07-26 20:15:18,182: DEBUG - + local -A args_array
2020-07-26 20:15:18,183: DEBUG - + local app
2020-07-26 20:15:18,183: DEBUG - + local key
2020-07-26 20:15:18,183: DEBUG - + ynh_handle_getopts_args --app=dolibarr --key=skipped_uris
2020-07-26 20:15:18,184: DEBUG - + set +o xtrace
2020-07-26 20:15:18,284: DEBUG - + ynh_app_setting delete dolibarr skipped_uris
2020-07-26 20:15:18,285: INFO - ldap user update ok

Do you think it is because I’m using a subdomain for dolibarr ? I'm using dolibarr.mydomain.dot. I will try creating user for that domain and try the install again.

mastereur commented 3 years ago

Hello @Cdez and @Tr4sK ,

I don't know where the problem may come from, I've never encountered it.

The Install.lock file is placed in the Documents folder, and I noticed a permissions problem on this folder which is fixed in the next version.

Is it possible for you to do an installation from the test package to check if your problem is still present? yunohost app install https://github.com/YunoHost-Apps/dolibarr_ynh/tree/testing

mastereur commented 3 years ago

Closing for inactivity.