Giter VIP home page Giter VIP logo

Comments (17)

pbek avatar pbek commented on June 2, 2024

Thank you for letting me know. That's a bummer, IDb was the pillar of ownBackup. I can't promise that I rewrite the whole app any time soon... :/

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

Oh, sad to hear. I am not too experienced in programming, but let me know, if I can help with some simple task, replacing certain kind of functions or what.

from nextbackup.

pbek avatar pbek commented on June 2, 2024

If we find a way to dump and restore the database structure and store and restore the content of tables that is database-agnostic (MySQL, PostgreSQL, Sqlite, ...) I will take a look at it.
Doctrine might help us...

from nextbackup.

pbek avatar pbek commented on June 2, 2024

The backing up and restoring is done in https://github.com/pbek/ownbackup/blob/develop/service/backupservice.php.

from nextbackup.

pbek avatar pbek commented on June 2, 2024

@MichaIng, @Laupe
Could you please test the current develop branch, I now did a migration from IDB to IDBConnection and backup and restoring did finally work for me in the end under NC 12.
Only https://github.com/pbek/ownbackup/blob/develop/service/backupservice.php was changed, so it should be enough if you just update that one file.

from nextbackup.

Laupe avatar Laupe commented on June 2, 2024

@pbek Tomorrow I will test and let me know

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

Just tested it:

  • I still get internal server error on opening additional admin settings.
  • Nextcloud log error still the same:
    Error index OCP\AppFramework\QueryException: Could not resolve AppName! Class AppName does not exist /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 117: OC\AppFramework\Utility\SimpleContainer->resolve('AppName') /var/www/owncloud/lib/private/ServerContainer.php - line 116: OC\AppFramework\Utility\SimpleContainer->query('AppName') /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 66: OC\ServerContainer->query('AppName') /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 96: OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass)) /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 117: OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\OwnBackup\\C...') /var/www/owncloud/lib/private/ServerContainer.php - line 116: OC\AppFramework\Utility\SimpleContainer->query('OCA\\OwnBackup\\C...') /var/www/owncloud/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 410: OC\ServerContainer->query('OCA\\OwnBackup\\C...') /var/www/owncloud/apps/ownbackup/admin.php - line 19: OC\AppFramework\DependencyInjection\DIContainer->query('\\OCA\\OwnBackup\\...') /var/www/owncloud/lib/private/legacy/app.php - line 727: include('/var/www/ownclo...') /var/www/owncloud/settings/Controller/AdminSettingsController.php - line 102: OC_App getForms('admin') /var/www/owncloud/settings/Controller/AdminSettingsController.php - line 93: OC\Settings\Controller\AdminSettingsController->getLegacyForms() /var/www/owncloud/settings/Controller/AdminSettingsController.php - line 73: OC\Settings\Controller\AdminSettingsController->getSettings('additional') [internal function] OC\Settings\Controller\AdminSettingsController->index('additional') /var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array) /var/www/owncloud/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OC\Settings\Controller\AdminSettingsController), 'index') /var/www/owncloud/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OC\Settings\Controller\AdminSettingsController), 'index') /var/www/owncloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('OC\\Settings\\Con...', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array) [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array) /var/www/owncloud/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array) /var/www/owncloud/lib/base.php - line 975: OC\Route\Router->match('/settings/admin...') /var/www/owncloud/index.php - line 40: OC handleRequest() {main} 2017-05-12T10:29:58+0200
  • Error does not show up on cron job execution, but also no additional backup was made: last ownBackup unix timestamp (subfolder) is: 1494016216

from nextbackup.

pbek avatar pbek commented on June 2, 2024

what's the content of your apps/ownbackup/service/backupservice.php?

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

Found use of IDb in /tests/integration/BackupIntegrationTest.php
14: use OCP\IDb; -> use OCP\IDBConnection 44: $this->db = $this->container->query('OCP\IDb'); -> $this->db = $this->container->query('OCP\IDBConnection'); ...

Just guess, I did never look into the API and https://docs.nextcloud.com/server/12/developer_manual/app/changelog.html#id2 does not give all necessary changes as far as I can see ;).

from nextbackup.

pbek avatar pbek commented on June 2, 2024

Thank you, I didn't fix the tests yet. So can you open the settings page and run a backup?

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

backupservice.php is definitely the one from develop channel/commit, I rechecked and also tested with different browsers/mobile to be sure that cache or what didn't prevent the change to appear.

Settings/additional admin page isn't opening because of internal server error:
error

As there is no occ command: Is there a way to test backup manually calling the php files from terminal?

from nextbackup.

pbek avatar pbek commented on June 2, 2024

That's strange, I don't get that error under NC 12 (current master branch) any more...

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

I tried back and forth to adjust some things in comparison to other apps (ojsxc) with no success so far. I don't use current master but current Beta2 of Nextcloud. Might there be some bug on Nextcloud side that was fixed in between?

Let's see what @Laupe gets during his test. As I have some other issues with Nextcloud currently, there might be something wrong on my side.

from nextbackup.

pbek avatar pbek commented on June 2, 2024

I now released a new version of ownbackup into the NC store and posted an issue Certificate is not valid · Issue #4852 · nextcloud/server · GitHub.

from nextbackup.

pbek avatar pbek commented on June 2, 2024

@Laupe, could you please update ownbackup from the store...

from nextbackup.

MichaIng avatar MichaIng commented on June 2, 2024

With new version from store, everything works fine for me now. Could the issue I still had be caused by the remaining IDb call in ..test.php? However, thank you very much for this fast fix.

from nextbackup.

pbek avatar pbek commented on June 2, 2024

Most unlikely that the test could have caused that for you... They are optional and executed manually...
Thank you for testing!

from nextbackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.