Comments (17)
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.
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.
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.
The backing up and restoring is done in https://github.com/pbek/ownbackup/blob/develop/service/backupservice.php.
from nextbackup.
@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.
@pbek Tomorrow I will test and let me know
from nextbackup.
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.
what's the content of your apps/ownbackup/service/backupservice.php
?
from nextbackup.
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.
Thank you, I didn't fix the tests yet. So can you open the settings page and run a backup?
from nextbackup.
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:
As there is no occ command: Is there a way to test backup manually calling the php files from terminal?
from nextbackup.
That's strange, I don't get that error under NC 12 (current master branch) any more...
from nextbackup.
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.
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.
@Laupe, could you please update ownbackup from the store...
from nextbackup.
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.
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)
- manuell deleting backups that are no longer needed HOT 6
- Restoring oc_news_folders column type HOT 1
- Ability to restore/create backups from command line occ HOT 2
- fails silently (on big table) HOT 4
- Feature request: Allow selection of storage location for backup files. HOT 7
- Nextcloud cron HOT 3
- Translate the app HOT 2
- Exception: Certificate "4131" has been revoked HOT 3
- Systemd timer service to trim backups HOT 1
- nextbackup App fails for integrity check in NC 18.01 HOT 4
- Certificate "4354" has been revoked HOT 36
- Don't depend on Nextcloud's JS libraries
- Causes malfunction in "Group Folders" and admin log HOT 11
- oc_deck_assigned_users HOT 7
- Not compatible with Nextcloud 21 HOT 6
- Usage of private API - OC_DB::updateDbFromStructure HOT 5
- Admin config page is blank after installing app
- Possibility to download / store backups externally HOT 1
- Not working (anymore / on NC v23) because of missing method OC_DB::getDbStructure() HOT 2
- remove this obsolete app from apps.nextcloud.com please HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextbackup.