Enhancement #2669

Upgrade to ownCloud 7

Added by Alessio Fattorini over 7 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-owncloud
Target version:v6.5
Resolution: NEEDINFO:No

Description

It's necessary to update the package for working with Owncloud 7.
Goals:
  • creation of admin user (using the nethserver admin pwd?)
  • automatic LDAP integration
  • don't use autoconfigfile but config.php directly
  • enable app for mount external share
  • disable calendar/phonebook/music
  • create owncloud group and enable only users into this group

Subtasks

Enhancement #2341: Automatic ownCloud LDAP configurationCLOSED


Related issues

Related to NethServer 6 - Bug #2670: Can't find ownCloud LDAP secret password CLOSED
Related to NethServer 6 - Bug #2910: ownCloud 7 rpm package has missing dependency. CLOSED
Related to NethServer 6 - Task #2942: Documentation: use only ldap admin user. CLOSED

Associated revisions

Revision e7541453
Added by Alessandro Polidori almost 7 years ago

New ownCloud dashboard widget application. Refs #2669

Revision 44a0e138
Added by Alessandro Polidori almost 7 years ago

New ownCloud dashboard widget application. Refs #2669

Revision 99da9770
Added by Alessandro Polidori almost 7 years ago

New ownCloud dashboard widget application. Refs #2669

Revision 2eafe69a
Added by Alessandro Polidori almost 7 years ago

Patch ownCloud "occ" command line tool. Refs #2669

Revision 593a33ca
Added by Alessandro Polidori almost 7 years ago

ownCloud ldap config initialization. Refs #2669

Revision a3d91ec8
Added by Alessandro Polidori almost 7 years ago

Fix /usr/libexec/nethserver/owncloud-ldap-init. Refs #2669

Revision 33bc0054
Added by Alessandro Polidori almost 7 years ago

Second fix /usr/libexec/nethserver/owncloud-ldap-init. Refs #2669

Revision b1d658b5
Added by Alessandro Polidori almost 7 years ago

Change init ldap script to an action. Refs #2669

Revision bf10d563
Added by Alessandro Polidori almost 7 years ago

Set "en" as ownCloud default language. Refs #2669

Revision 750c4d95
Added by Alessandro Polidori almost 7 years ago

Spec: fix ownCloud dir permissions. Refs #2669

Revision fb74d3d9
Added by Alessandro Polidori almost 7 years ago

Remove ldap password from widget. Refs #2669

Revision e7a35c9d
Added by Alessandro Polidori almost 7 years ago

Add owncloud template-begin for register_command.php. refs #2669

Revision 4c18daeb
Added by Alessandro Polidori almost 7 years ago

Fix owncloud file permissions. Refs #2669

Revision 9a1a89a7
Added by Alessandro Polidori almost 7 years ago

Change first url request with curl. Refs #2669

Revision 0c204d7d
Added by Alessandro Polidori almost 7 years ago

Add "trusted_domains" to nethserver-owncloud-conf. Refs #2669

Revision 226fa267
Added by Alessandro Polidori almost 7 years ago

Fix string in php array in nethserver-owncloud-conf. Refs #2669

Revision 671b4884
Added by Alessandro Polidori almost 7 years ago

Change order of action "nethserver-owncloud-conf-ldap". Refs #2669

Revision 0a2a1311
Added by Alessandro Polidori almost 7 years ago

Fix to support ownCloud 7.0.2. Refs #2669

Revision 38115e6f
Added by Alessandro Polidori almost 7 years ago

Add ownCloud dashboard widget. Refs #2669

Revision 853327d4
Added by Alessandro Polidori almost 7 years ago

Manage automatic db upgrade from 5 to 7 version. Refs #2669

Revision 87b24a5e
Added by Alessandro Polidori almost 7 years ago

Fix "email" ldap attribute. Refs #2669

Revision de82c250
Added by Alessandro Polidori almost 7 years ago

Fix action "nethserver-owncloud-conf-ldap". Refs #2669

Revision 5650cefe
Added by Alessandro Polidori almost 7 years ago

Remove ntp template expansion. Refs #2669

Revision cacf52a2
Added by Alessandro Polidori almost 7 years ago

Add ownCloud section. Refs #2669

Revision 7476e6ee
Added by Alessandro Polidori almost 7 years ago

Fix owncloud.rst. Refs #2669

Revision fab79cc5
Added by Alessandro Polidori almost 7 years ago

it admin manual: new owncloud section. Refs #2669

Revision 709e0854
Added by Alessandro Polidori almost 7 years ago

en admin manual: fix owncloud note. Refs #2669

Revision 4184ba9b
Added by Alessandro Polidori almost 7 years ago

Fix ownCloud 7 backup. Refs #2669

Revision 4792a6bb
Added by Alessandro Polidori almost 7 years ago

Add "ownCloud" substitution keyword. Refs #2669

Revision 8d0beae1
Added by Alessandro Polidori almost 7 years ago

LDAP Note in owncloud.rst. Refs #2669

Revision d2dc0757
Added by Alessandro Polidori almost 7 years ago

ownCloud: refresh ldap user list. refs #2669

Revision 6927495f
Added by Alessandro almost 7 years ago

Merge pull request #41 from alepolidori/master

New ownCloud note section. Refs #2669

Revision 005769cb
Added by Alessandro Polidori almost 7 years ago

Fix ownclud backup tool name. Refs #2669

Revision 95822e5a
Added by Alessandro Polidori almost 7 years ago

New ownCloud developer doc. Refs #2669

Revision 0d59541b
Added by Alessandro almost 7 years ago

Merge pull request #42 from alepolidori/master

New ownCloud developer doc. Refs #2669

Revision 96ed3639
Added by Alessandro Polidori almost 7 years ago

"default_language" key in autoconfig is not accepted. Refs #2669

Revision 30645abe
Added by Alessandro Polidori almost 7 years ago

Fix config.php when upgrade from version 5. Refs #2669

Revision d42c710d
Added by Alessandro Polidori almost 7 years ago

Fix nethserver-owncloud-conf-ldap. Refs #2669

Revision e8057e23
Added by Alessandro Polidori almost 7 years ago

Do not use TLS and do not check for webdav. Refs #2669

Revision 3ff996fa
Added by Alessandro Polidori almost 7 years ago

Disable ldap cache. Refs #2669

Revision 46c9dbb6
Added by Alessandro Polidori almost 7 years ago

Disable tls and ldap cache also when update. Refs #2669

Revision 29c9d2bf
Added by Alessandro Polidori almost 7 years ago

Fix owncloud.rst. Refs #2669

History

#1 Updated by Davide Principi over 7 years ago

  • Target version set to ~FUTURE

#2 Updated by Davide Principi over 7 years ago

  • Subject changed from Support for Owncloud6 to Upgrade to ownCloud 6
  • Priority changed from Low to Normal

#3 Updated by Alessio Fattorini about 7 years ago

  • Subject changed from Upgrade to ownCloud 6 to Upgrade to ownCloud 7

#4 Updated by Alessio Fattorini about 7 years ago

  • Description updated (diff)

#5 Updated by Alessio Fattorini about 7 years ago

  • Description updated (diff)

#6 Updated by Alessio Fattorini almost 7 years ago

  • Description updated (diff)

#7 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.5
  • % Done changed from 0 to 20

The new release will be a simple Owncloud installation without LDAP/apps provisioning.

The new package must:
  • correctly install Owncloud 7: remember to download the rpms using yum-download-only and upload them to testing repository
  • handle the upgrade from release 5
  • implement a simple Dashboard widget (maybe inside the Apps tabs). The widget must display the app URL and auto-generate user and password for LDAP configuration
Also update the documentation:
  • move wiki pages to Developer manual
  • create a chapter for the Administrator manual with basic informations:
    • installation
    • changing the admin password
    • LDAP configuration

#8 Updated by Alessandro Polidori almost 7 years ago

  • Assignee set to Alessandro Polidori

#9 Updated by Alessandro Polidori almost 7 years ago

  • Assignee deleted (Alessandro Polidori)

#11 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Alessandro Polidori
  • % Done changed from 20 to 30

#12 Updated by Alessandro Polidori almost 7 years ago

I have downloaded new version of ownCloud for CentOS-6:

owncloud-3rdparty-7.0.2-12.1.noarch
owncloud-7.0.2-12.1.noarch

and I have uploaded them into "testing" repository.

#13 Updated by Alessandro Polidori almost 7 years ago

Upgrade from release 5 is automatically done by the occ tool.

#14 Updated by Giacomo Sanchietti almost 7 years ago

Upstream official rpm package doesn't have policycoreutils-python among dependencies.
Errors on install:

/var/tmp/rpm-tmp.WSF2AS: line 5: semanage: command not found
/var/tmp/rpm-tmp.WSF2AS: line 7: semanage: command not found
/var/tmp/rpm-tmp.WSF2AS: line 9: semanage: command not found

See upstream bug https://github.com/owncloud/core/issues/11576

#15 Updated by Giacomo Sanchietti almost 7 years ago

  • Related to Bug #2910: ownCloud 7 rpm package has missing dependency. added

#16 Updated by Alessandro Polidori almost 7 years ago

The occ command line tool has been patched to support ldap empty configuration creation:

occ ldap:create-empty-config

as explained here.
This feature should be present in a next version of ownCloud.

It is used when clear installation, before setting the ldap configuration values.

The occ tool is launched using:

php -d "magic_quotes_gpc = Off" /var/www/html/owncloud/occ ...

#17 Updated by Alessandro Polidori almost 7 years ago

With clear installation, LDAP authentication is activated by default.

With update from ownCloud 5, the configuration will not be changed. Only the upgrade of database is automatically made using occ upgrade.

#19 Updated by Alessandro Polidori almost 7 years ago

Giacomo Sanchietti wrote:

Upstream official rpm package doesn't have policycoreutils-python among dependencies.
Errors on install:
[...]

See upstream bug https://github.com/owncloud/core/issues/11576

The bug has been resolved and the new packages are available for CentOS-6:

owncloud-3rdparty-7.0.2-17.1.noarch.rpm
owncloud-7.0.2-17.1.noarch.rpm

#20 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#21 Updated by Alessandro Polidori almost 7 years ago

Repo: nethserver-testing
Packages:
  • nethserver-owncloud-1.0.2-7.0git3ea1b772.ns6.noarch.rpm
  • owncloud-3rdparty-7.0.2-17.1.noarch.rpm
  • owncloud-7.0.2-17.1.noarch.rpm
  1. Test clean installation
    1. install nethserver-owncloud 7 in NethServer 6.5 without ownCloud 5 installed. The updates repo may be necessary.
    2. verify that installation ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. verify default login authentication with default credentials of admin user.
    4. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    5. verify owncloud login authentication with new user credentials
    6. try to test all the general ownCloud functionalities
  2. Test the update from ownCloud 5 (with no ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication continues to work correctly
    6. configure LDAP authentication (see the admin manual section)
    7. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    8. verify owncloud login authentication with new user credentials
  3. Test the update from ownCloud 5 (with ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication (default and LDAP) continues to work correctly
    6. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    7. verify owncloud login authentication with new user credentials
  4. For each test
    1. try to test all the general ownCloud functionalities

#22 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#23 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

Owncloud does not reload LDAP users after creating/editing/modifying a system user.

#24 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Alessandro Polidori
  • % Done changed from 20 to 30

#25 Updated by Alessandro Polidori almost 7 years ago

Giacomo Sanchietti wrote:

Owncloud does not reload LDAP users after creating/editing/modifying a system user.

The LDAP user list is cached with a default refresh interval time of ten minutes.
It should be possible to force the cache to zero with:

php -d "magic_quotes_gpc = Off" /var/www/html/owncloud/occ ldap:set-config '' ldapCacheTTL 0

but this is not recommended because of performance, also when it is used with client extension.

So, I have updated the official documentation with a manual method to force the refresh of the list:

Refresh user list

When you create a new system user, it does not appears immediately in the ownCloud user list (admin -> Users). This is because a cache interval is expected and the default value is ten minutes. So if you want to force the update of the user list you must do the following actions:

admin -> Admin
click “Advanced” tab
click “Save” button
admin -> Users

#26 Updated by Alessandro Polidori almost 7 years ago

The backup save the configuration file
/var/www/html/owncloud/config/config.php
and all data of the users
/var/www/html/owncloud/data

The apps /var/www/html/owncloud/apps are not copied, so after a restore they must be manually re-installed.

#27 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#28 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
Repo: nethserver-testing
Packages:
  • nethserver-owncloud-1.0.2-7.0git3ea1b772.ns6.noarch.rpm
  • owncloud-3rdparty-7.0.2-17.1.noarch.rpm
  • owncloud-7.0.2-17.1.noarch.rpm
  1. Test clean installation
    1. install nethserver-owncloud 7 in NethServer 6.5 without ownCloud 5 installed. The updates repo may be necessary.
    2. verify that installation ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. verify default login authentication with default credentials of admin user.
    4. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    5. verify owncloud login authentication with new user credentials
    6. try to test all the general ownCloud functionalities
  2. Test the update from ownCloud 5 (with no ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication continues to work correctly
    6. configure LDAP authentication (see the admin manual section)
    7. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    8. verify owncloud login authentication with new user credentials
  3. Test the update from ownCloud 5 (with ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication (default and LDAP) continues to work correctly
    6. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    7. verify owncloud login authentication with new user credentials
  4. For each test
    1. try to test all the general ownCloud functionalities
  5. Test backup & restore
    1. create new users
    2. create some data for new users
    3. create & restore the backups and finally verify that the configuration is the same and all user data are present
  6. Test the use of only ldap admin user
    1. follow the instructions here

#29 Updated by Alessio Fattorini almost 7 years ago

  • Assignee set to Alessio Fattorini

#30 Updated by Alessio Fattorini almost 7 years ago

  1. Test the update from ownCloud 5 (with ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)

I can't login because this error at login page
[1045] SQLSTATE28000 [1045] Access denied for user 'ownuser'@'localhost' (using password: YES)

Same error on owncloud.log

{"app":"index","message":"PDOException: SQLSTATE28000 [1045] Access denied for user 'ownuser'@'localhost' (using password: YES) [1045]","level":4,"time":"2014-07-05T09:35:13+00:00"}

Test Failed

#31 Updated by Alessio Fattorini almost 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Alessio Fattorini)
  • % Done changed from 70 to 20

#32 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Alessandro Polidori
  • % Done changed from 20 to 30

#33 Updated by Alessandro Polidori almost 7 years ago

The problem
After upgrade from 5 to 7 the config.php remains the old and it uses the old password.
Now the nethserver-owncloud new package generate a different password for each installation, so the software crash to login owncloud database.

The solution
Find a method to regenerate the correct config.php file.

Note
"You cannot skip major releases; for example, upgrading from 5.0 to 7.0. This is unsupported, and you’ll likely experience unpredictable results. It is best to install all upgrades and updates in order." reported by the official doc page.
Nevertheless we have decided to do the upgrade from 5 to 7 because the upgrade of the databases is made by the occ command line tool.

#34 Updated by Alessandro Polidori almost 7 years ago

I have enabled also HTTPS by default inserting "forcessl": true in the config.php file.

#35 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#36 Updated by Alessandro Polidori almost 7 years ago

Repo: nethserver-testing
Packages:
  • nethserver-owncloud-1.0.2-10.0git30645abe.ns6.noarch.rpm
  • owncloud-3rdparty-7.0.2-17.1.noarch.rpm
  • owncloud-7.0.2-17.1.noarch.rpm
  1. Test clean installation
    1. install nethserver-owncloud 7 in NethServer 6.5 without ownCloud 5 installed. The updates repo may be necessary.
    2. verify that installation ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. verify default login authentication with default credentials of admin user.
    4. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    5. verify owncloud login authentication with new user credentials
    6. try to test all the general ownCloud functionalities
  2. Test the update from ownCloud 5 (with no ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication continues to work correctly
    6. configure LDAP authentication (see the admin manual section)
    7. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    8. verify owncloud login authentication with new user credentials
  3. Test the update from ownCloud 5 (with ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)
    3. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)
    4. verify that the old OC configuration has not been changed
    5. verify that the old OC authentication (default and LDAP) continues to work correctly
    6. create a new user in NethServer (https://server:980) and set its password (or use one already present)
    7. verify owncloud login authentication with new user credentials
  4. For each test
    1. try to test all the general ownCloud functionalities
  5. Test backup & restore
    1. create new users
    2. create some data for new users
    3. create & restore the backups and finally verify that the configuration is the same and all user data are present
  6. Test the use of only ldap admin user
    1. follow the instructions here
  7. Test HTTPS
    1. for both "clear installation" and "upgrade" test that in "admin -> Admin", "Enforce HTTPS" is enabled by default

#37 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#38 Updated by Alessio Fattorini almost 7 years ago

  • Assignee set to Alessio Fattorini

#39 Updated by Alessio Fattorini almost 7 years ago

> # *Test the update from ownCloud 5 (with ldap authentication configured)*

  1. update from OC5 to OC7
  2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)

no error

  1. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)

verified, no button

  1. verify that the old OC configuration has not been changed

verified

  1. verify that the old OC authentication (default and LDAP) continues to work correctly

verified

  1. create a new user in NethServer (https://server:980) and set its password (or use one already present)
  2. verify owncloud login authentication with new user credentials

verified

  1. For each test
    1. try to test all the general ownCloud functionalities

verified

  1. Test HTTPS
    1. for both "clear installation" and "upgrade" test that in "admin -> Admin", "Enforce HTTPS" is enabled by default

verified on upgrade

#40 Updated by Alessio Fattorini almost 7 years ago

  1. Test backup & restore
    1. create new users
    2. create some data for new users
    3. create & restore the backups and finally verify that the configuration is the same and all user data are present

verified only with backup-data

  1. Test the use of only ldap admin user
    1. follow the instructions here
it works, we should document
  • change admin_xxx group, checking "admin"
  • change admin password is the same of LDAP admin
  • logout and login with LDAP admin
  • delete owncloud admin, named "admin"
  1. Test HTTPS
    1. for both "clear installation" and "upgrade" test that in "admin -> Admin", "Enforce HTTPS" is enabled by default

verified

#41 Updated by Alessio Fattorini almost 7 years ago

  1. Test the update from ownCloud 5 (with no ldap authentication configured)
    1. update from OC5 to OC7
    2. verify that the update ends with success (no error generation in the command line and in the log file /var/log/messages)

verified

  1. go to https://server/owncloud and verify that no "upgrade" button is present (the upgrade is automatically done)

verified

  1. verify that the old OC configuration has not been changed
  2. verify that the old OC authentication continues to work correctly

verified

  1. create a new user in NethServer (https://server:980) and set its password (or use one already present)

verified

  1. verify owncloud login authentication with new user credentials

verified

Tested also "External storage support" app
  • intalled on OC5
  • configured and verified
  • upgrade on OC7
  • verified it continues to work correctly

remains TO BE tested

  1. configure LDAP authentication (see the admin manual section)

and clean install of version 7

#42 Updated by Anonymous almost 7 years ago

Test clean installation

1. install nethserver-owncloud 7 in NethServer 6.5 without ownCloud 5 installed Done Ok .

2. verify that installation ends with success (no error generation in the command line and in the log file /var/log/messages) Done and all seems to be ok .
In messages i've found only: "Oct 31 16:18:05 kthulu nslcd1359: [8b4567] ldap_result() failed: No such object" , but i don't know if it's related to owncloud.

3. verify default login authentication with default credentials of admin user. Fail : Blank page, no login prompted .
In /var/www/html/owncloud/data/owncloud.log i've {"app":"user_ldap","message":"Configuration Error (prefix ): No LDAP Port given!","level":2,"time":"2014-10-31T15:18:24+00:00"} {"app":"user_ldap","message":"Configuration Error (prefix ): No LDAP Login Filter given!","level":2,"time":"2014-10-31T15:18:24+00:00"} {"app":"user_ldap","message":"Configuration Error (prefix ): login filter does not contain %uid place holder.","level":2,"time":"2014-10-3

#43 Updated by Alessandro Polidori almost 7 years ago

  • Related to Task #2942: Documentation: use only ldap admin user. added

#44 Updated by Alessandro Polidori almost 7 years ago

Alessio Fattorini wrote:

  1. Test the use of only ldap admin user
    1. follow the instructions here
it works, we should document
  • change admin_xxx group, checking "admin"
  • change admin password is the same of LDAP admin
  • logout and login with LDAP admin
  • delete owncloud admin, named "admin"

I opened the #2942 task.

#45 Updated by Alessio Fattorini almost 7 years ago

  • Assignee deleted (Alessio Fattorini)

#46 Updated by Alessio Fattorini almost 7 years ago

@alepolidori: can you put this issue on DEV status and verify why step 1 fails?

#47 Updated by Alessandro Polidori almost 7 years ago

  • Assignee set to Alessio Fattorini

Alessio Fattorini wrote:

@alepolidori: can you put this issue on DEV status and verify why step 1 fails?

Of course. I am testing the clean installation to find out the problem.
Then I try to fix it ;)

#48 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

#49 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee deleted (Alessio Fattorini)

#50 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Alessandro Polidori
  • % Done changed from 20 to 30

#51 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 30 to 60

#52 Updated by Alessandro Polidori almost 7 years ago

  • Assignee set to Alessandro Polidori

#53 Updated by Alessandro Polidori almost 7 years ago

I have uploaded the following new packages:

owncloud-7.0.2-28.1.noarch
owncloud-3rdparty-7.0.2-28.1.noarch

from here

#54 Updated by Alessandro Polidori almost 7 years ago

LDAP does not work, so ldap TLS has been disabled, because of the following error in the log:

{"app":"PHP","message":"ldap_start_tls() [<a href='function.ldap-start-tls'>function.ldap-start-tls<\/a>]: Unable to start TLS: Connect error at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-11-04T14:58:57+00:00"}
{"app":"user_ldap","message":"Bind failed: -1: Can't contact LDAP server","level":3,"time":"2014-11-04T14:58:57+00:00"}
{"app":"PHP","message":"ldap_start_tls() [<a href='function.ldap-start-tls'>function.ldap-start-tls<\/a>]: Unable to start TLS: Connect error at \/var\/www\/html\/owncloud\/apps\/user_ldap\/lib\/ldap.php#252","level":3,"time":"2014-11-04T14:58:57+00:00"}
{"app":"user_ldap","message":"Bind failed: -1: Can't contact LDAP server","level":3,"time":"2014-11-04T14:58:57+00:00"}
{"app":"user_ldap","message":"Connection could not be established","level":3,"time":"2014-11-04T14:58:57+00:00"}

I have added the following to the config.php:

'check_for_working_webdav' => false,

because of the following error in the log:
{"app":"core","message":"isWebDAVWorking: NO - Reason: [CURL] Error while making request: Problem with the SSL CA cert (path? access rights?) (error code: 77) (Sabre\\DAV\\Exception)","level":2,"time":"2014-11-04T14:59:49+00:00"}

#55 Updated by Alessandro Polidori almost 7 years ago

The ldap cache is now set to "0".
So the user list does not be manually updated and so I have updated also the admin documentation.

#56 Updated by Alessandro Polidori almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Alessandro Polidori)
  • % Done changed from 60 to 70

Repo: nethserver-testing

Packages:
  • nethserver-owncloud-1.0.2-14.0git46c9dbb6.ns6.noarch.rpm
  • owncloud-3rdparty-7.0.2-28.1.noarch.rpm
  • owncloud-7.0.2-28.1.noarch.rpm
Test to be done:
  1. Test the update from ownCloud 5 (with no ldap authentication configured)
    1. configure LDAP authentication (see the admin manual section)
  2. clean install of version 7

It is recommended to repeat the other test.

#57 Updated by Anonymous over 6 years ago

test 1

Clean installation done, owncloud webpage visible (no login) with some errors

"No database drivers (sqlite, mysql, or postgresql) installed."
"PHP module GD not installed.Please ask your server administrator to install the module."
"PHP module PDO not installed.Please ask your server administrator to install the module."
"PHP modules have been installed, but they are still listed as missing?Please ask your server administrator to restart the web server."

#58 Updated by Alessio Fattorini over 6 years ago

I confirm the behaviour described by Michele
It seems we need to have these dendencies php-pdo php-gd
If I install them this problem disappears but another come out, owncloud asks me to configure admin credentials and database (wrong behaviour)

If I install these packages:
php-pear-MDB2-Driver-mysqli php-pear-Net-Curl
this second problem disappears too.

See this diff from packages required by owncloud version 5 and 7

< config(owncloud) = 7.0.2-28.1
---

config(owncloud) = 5.0.12-12.1

7a7

ntp

9a10

php-gd

11a13,14

php-pear-MDB2-Driver-mysqli
php-pear-Net-Curl

15d17
< policycoreutils-python
17a20

rpmlib(PartialHardlinkSets) <= 4.0.4-1

I think that owncloud 7 rpm doesn't have all right dependencies

#59 Updated by Anonymous over 6 years ago

now we have this message
"You are accessing the server from an untrusted domain.

Please contact your administrator. If you are an administrator of this instance, configure the "trusted_domain" setting in config/config.php. An example configuration is provided in config/config.sample.php.
Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.
"

#60 Updated by Alessandro Polidori over 6 years ago

  • Status changed from ON_QA to TRIAGED
  • % Done changed from 70 to 20

The problem is caused by owncloud-7.0.2-28.1.noarch.rpm package.
It removes some depencies.

Now I have removed

owncloud-7.0.2-28.1.noarch.rpm
owncloud-3rdparty-7.0.2-28.1.noarch.rpm

in favor of precedent versions:

owncloud-7.0.2-17.1.noarch.rpm
owncloud-3rdparty-7.0.2-17.1.noarch.rpm

#61 Updated by Alessandro Polidori over 6 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#62 Updated by Alessandro Polidori over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#63 Updated by Alessandro Polidori over 6 years ago

Repo: nethserver-testing

Packages:
nethserver-owncloud-1.0.2-14.0git46c9dbb6.ns6.noarch.rpm
owncloud-7.0.2-17.1.noarch.rpm
owncloud-3rdparty-7.0.2-17.1.noarch.rpm

Test to be done:

  • Test the update from ownCloud 5 (with no ldap authentication configured)
  • configure LDAP authentication (see the admin manual section)
  • clean install of version 7

It is recommended to repeat the other test.

#64 Updated by Anonymous over 6 years ago

Test clean installation WORKS!

All done well done !

#65 Updated by Alessio Fattorini over 6 years ago

Alessandro Polidori wrote:

It is recommended to repeat the other test.

I maked all previuos tests with owncloud-7.0.2-17.1.noarch.rpm then from my point of view repeat tests isn't mandatory

#66 Updated by Alessandro Polidori over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#67 Updated by Giacomo Sanchietti over 6 years ago

Fixed and error on upgrade from 5 to 7, see https://github.com/owncloud/core/issues/6152#issuecomment-30236917

New package in nethserver-testing:
  • nethserver-owncloud-1.0.2-15.0gitf3a5a923.ns6.noarch.rpm

Patch has been already tested.

As reported before, upgrade from version 5 to 7 is not supported.
Even if all tests went good, the package will be in testing for a while to find possible problems when upgrading old releases.

#68 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-owncloud-1.1.0-1.ns6.noarch.rpm
  • owncloud-7.0.2-17.1.noarch.rpm
  • owncloud-3rdparty-7.0.2-17.1.noarch.rpm

Also available in: Atom PDF