Problem with migration

I’m migrating from owncloud 10.13.2.3 to nextcloud 25, when I install nextcloud and try to launch the page I don’t get any errors, but when I copy (with the appropriate changes) the config.php file from the owncloud installation to nextcloud, I get this error:

Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.

Could you help me solve it?

Don’t do this, it’s EOL.

I think it’s currently required because of owncloud not supporting php 8.0. From NC 25 you upgrade further, see Migrating from ownCloud — Nextcloud latest Administration Manual latest documentation.

Otherwise, @nemo87, please post the error from the log and add some details, otherwise there’s no way someone can help you.

1 Like

By deleting and copying the config.php file (modifying it with the nextcloud specifications) I was able to perform the migration, I log in with my user and see my data, I am moving from owncloud to nextcloud precisely because owncloud does not support php 8 (version 25 of NC supports php7, now I will gradually perform the various version upgrades)

log:

[core] Errore: No application directories are marked as writable.

GET /nextcloud/index.php/apps/files/preview-service-worker.js
from 192.168.1.13 at 2025-04-11T21:39:33+00:00

Errore: OCA\Circles\Exceptions\SingleCircleNotFoundException: at <>

  1. /var/www/nextcloud/apps/circles/lib/Service/FederatedUserService.php line 985
    OCA\Circles\Service\FederatedUserService->getSingleCircle()
  2. /var/www/nextcloud/apps/circles/lib/Service/FederatedUserService.php line 533
    OCA\Circles\Service\FederatedUserService->fillSingleCircleId()
  3. /var/www/nextcloud/apps/circles/lib/ShareByCircleProvider.php line 477
    OCA\Circles\Service\FederatedUserService->getLocalFederatedUser()
  4. /var/www/nextcloud/lib/private/Share20/Manager.php line 1340
    OCA\Circles\ShareByCircleProvider->getSharesBy()
  5. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 121
    OC\Share20\Manager->getSharesBy()
  6. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 161
    OCA\DAV\Connector\Sabre\SharesPlugin->getShare()
  7. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 202
    OCA\DAV\Connector\Sabre\SharesPlugin->getShares()
  8. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
    OCA\DAV\Connector\Sabre\SharesPlugin->OCA\DAV\Connector\Sabre{closure}(“*** sensitive parameters replaced ***”)
  9. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php line 209
    Sabre\DAV\PropFind->handle()
  10. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\DAV\Connector\Sabre\SharesPlugin->handleGetProperties()
  11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit()
  12. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode()
  13. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
  14. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
  15. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
  16. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
  17. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
  18. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
  19. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  20. /var/www/nextcloud/apps/dav/lib/Server.php line 361
    Sabre\DAV\Server->exec()
  21. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
  22. /var/www/nextcloud/remote.php line 172
    require_once(“/var/www/nextcl … p”)

PROPFIND /nextcloud/remote.php/dav/files/Nemo/IMG_4807.JPG
from 192.168.1.13 by Nemo at 2025-04-11T21:39:56+00:00

[index] Errore: Doctrine\DBAL\Schema\SchemaException: There is no column with name ‘parent’ on table ‘oc_share_external’. at <>

  1. /var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Table.php line 771
    Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()
  2. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 795
    Doctrine\DBAL\Schema\Table->getColumn()
  3. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 897
    OCA\Settings\Controller\CheckSetupController->hasBigIntConversionPendingColumns()
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\CheckSetupController->check()
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
  6. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
  7. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
  8. /var/www/nextcloud/lib/base.php line 1053
    OC\Route\Router->match()
  9. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /nextcloud/index.php/settings/ajax/checksetup
from 192.168.1.13 by Nemo at 2025-04-11T21:40:08+00:00

[core] Errore: No application directories are marked as writable.

GET /nextcloud/index.php/login?clear=1
from 192.168.1.13 at 2025-04-11T21:41:02+00:00

[core] Errore: No application directories are marked as writable.

GET /nextcloud/index.php/apps/theming/manifest?v=b6589fc6
from 192.168.1.13 at 2025-04-11T21:41:02+00:00

[core] Errore: No application directories are marked as writable.

GET /nextcloud/index.php/apps/theming/manifest?v=b6589fc6
from 192.168.1.13 at 2025-04-11T21:41:02+00:00

[core] Errore: No application directories are marked as writable.

GET /nextcloud/index.php/apps/files/preview-service-worker.js
from 192.168.1.13 at 2025-04-11T21:41:03+00:00

[index] Errore: Doctrine\DBAL\Schema\SchemaException: There is no column with name ‘parent’ on table ‘oc_share_external’. at <>

  1. /var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Table.php line 771
    Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()
  2. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 795
    Doctrine\DBAL\Schema\Table->getColumn()
  3. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 897
    OCA\Settings\Controller\CheckSetupController->hasBigIntConversionPendingColumns()
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\CheckSetupController->check()
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
  6. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
  7. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
  8. /var/www/nextcloud/lib/base.php line 1053
    OC\Route\Router->match()
  9. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /nextcloud/index.php/settings/ajax/checksetup
from 192.168.1.13 by Nemo at 2025-04-11T23:24:45+00:00

[index] Errore: Doctrine\DBAL\Schema\SchemaException: There is no column with name ‘parent’ on table ‘oc_share_external’. at <>

  1. /var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Table.php line 771
    Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()
  2. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 795
    Doctrine\DBAL\Schema\Table->getColumn()
  3. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 897
    OCA\Settings\Controller\CheckSetupController->hasBigIntConversionPendingColumns()
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\CheckSetupController->check()
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
  6. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
  7. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
  8. /var/www/nextcloud/lib/base.php line 1053
    OC\Route\Router->match()
  9. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /nextcloud/index.php/settings/ajax/checksetup
from 192.168.1.13 by Nemo at 2025-04-12T18:03:42+00:00

[index] Errore: Doctrine\DBAL\Schema\SchemaException: There is no column with name ‘parent’ on table ‘oc_share_external’. at <>

  1. /var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Table.php line 771
    Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()
  2. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 795
    Doctrine\DBAL\Schema\Table->getColumn()
  3. /var/www/nextcloud/apps/settings/lib/Controller/CheckSetupController.php line 897
    OCA\Settings\Controller\CheckSetupController->hasBigIntConversionPendingColumns()
  4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
    OCA\Settings\Controller\CheckSetupController->check()
  5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
    OC\AppFramework\Http\Dispatcher->executeController()
  6. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
    OC\AppFramework\Http\Dispatcher->dispatch()
  7. /var/www/nextcloud/lib/private/Route/Router.php line 298
    OC\AppFramework\App::main()
  8. /var/www/nextcloud/lib/base.php line 1053
    OC\Route\Router->match()
  9. /var/www/nextcloud/index.php line 36
    OC::handleRequest()

GET /nextcloud/index.php/settings/ajax/checksetup
from 192.168.1.13 by Nemo at 2025-04-12T21:42:12+00:00

Apparently your web server user (probably www-data) cannot write to the directory structures.

Use with caution. E.g. search the internet first.

sudo chown -R www-data:www-data ...

A little tip:

If you only have folders and files in your ownCloud/Nextcloud anyway.

Store data e.g /path/to/owncloud/data/username/files → e.g. move to /backup
Reinstall Nextcloud 31 from scratch
Set up users in new Nextcloud with no files
Copy or move files back to /path/to/nextcloud/data/username/files
read all files in database of Nexcloud:
sudo -u www-data php /path/to/nextcloud/occ files:scan --all

All links, deck, contacts, … are gone.

given commands:

sudo chown -R www-data:www-data /var/www/nextcloud
sudo -u www-data php /var/www/nextcloud/ occ files:scan --all

I keep seeing all the errors listed above…
NB:
my data directory is in a different path than /var/www/nextcloud
i gave the command with the right path:
sudo chown -R www-data:www-data /mnt/cloud/data/
I still get the same error