Comments (25)
Save button should be at the bottom of the settings page? If not, please send a screenshot of the entire page so I can see where the error is occurring.
from ovirt_simple_backup.
hi ! yes I've seen the snapshots you have deployed on the docs.
in my situation at the bottom I don't see the "save" button, tested on a firefox 58 and 59, and also with a iexplorer.
also checked the code and I see and the end of it the the code about this button.
as I cannot capture the hole screen, I've done 3 snapshots, there's no button :/
from ovirt_simple_backup.
Looks like it is stopping at the Storage Domains. What Storage domains do you have in your oVirt setup?
You could also run the following on the BackupVM:
tail /var/log/apache2/error.log -f
Then refresh your browser on the settings page of the script to see what errors come up in the console.
Then just let me know.
from ovirt_simple_backup.
Hi !
I have 3 storage domains, 1 was created at installation time "ovirt-manage-repository" the other 2 are for VM and ISO
from ovirt_simple_backup.
and the error seems related to a missing variable.
[Thu Mar 22 08:41:31.432906 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 127, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433011 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 146, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433038 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 165, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433058 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 184, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433077 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 203, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433096 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 222, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433115 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 239, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433139 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 260, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433178 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 282, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433198 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 301, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433241 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 321, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433265 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 361, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433279 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined index: maxlength in /var/www/html/functions.php on line 169, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433307 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 379, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433322 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined index: maxlength in /var/www/html/functions.php on line 169, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433339 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 397, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433353 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined index: maxlength in /var/www/html/functions.php on line 169, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433370 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 415, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433383 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined index: maxlength in /var/www/html/functions.php on line 169, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433406 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 456, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.433428 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 474, referer: http://192.168.222.14/site/?area=0
[Thu Mar 22 08:41:31.494298 2018] [:error] [pid 27501] [client 192.168.222.50:47772] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/functions.php:236\nStack trace:\n#0 /var/www/html/functions.php(408): ovirt_rest_api_call('GET', 'clusters/')\n#1 /var/www/html/area/settings.php(483): sb_clusterlist()\n#2 /var/www/html/site/index.php(9): require('/var/www/html/a...')\n#3 {main}\n thrown in /var/www/html/functions.php on line 236, referer: http://192.168.222.14/site/?area=0
```
from ovirt_simple_backup.
The config.php must be missing. New version will catch this.
from ovirt_simple_backup.
no, there it is. :/
ok, don't worry, I will wait to the new version :D
from ovirt_simple_backup.
version 0.6.0. same error
looks that there's some problem when looking the Clusters "ovirt_rest_api_call('GET', 'clusters/')" at the end.
root@VMMIGRATE:~# tail /var/log/apache2/error.log -f
[Sun Mar 25 13:37:12.918999 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 15 in /var/www/html/functions.php on line 934, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919010 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 16 in /var/www/html/functions.php on line 935, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919022 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 17 in /var/www/html/functions.php on line 936, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919033 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 18 in /var/www/html/functions.php on line 937, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919044 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 19 in /var/www/html/functions.php on line 938, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919055 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 20 in /var/www/html/functions.php on line 939, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919067 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 21 in /var/www/html/functions.php on line 940, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:37:12.919078 2018] [:error] [pid 1361] [client 192.168.222.8:46494] PHP Notice: Undefined offset: 22 in /var/www/html/functions.php on line 941, referer: https://192.168.222.200/ovirt-engine/webadmin/?locale=en_US
[Sun Mar 25 13:41:01.383237 2018] [:error] [pid 1379] [client 192.168.222.57:58591] PHP Notice: Undefined variable: settings in /var/www/html/area/settings.php on line 49, referer: https://192.168.222.14/index.php
[Sun Mar 25 13:41:01.525137 2018] [:error] [pid 1379] [client 192.168.222.57:58591] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/functions.php:241\nStack trace:\n#0 /var/www/html/functions.php(427): ovirt_rest_api_call('GET', 'clusters/')\n#1 /var/www/html/area/settings.php(505): sb_clusterlist()\n#2 /var/www/html/site/index.php(6): require('/var/www/html/a...')\n#3 {main}\n thrown in /var/www/html/functions.php on line 241, referer: https://192.168.222.14/index.php
[Sun Mar 25 13:44:33.298328 2018] [:error] [pid 1379] [client 192.168.222.57:58626] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/functions.php:241\nStack trace:\n#0 /var/www/html/functions.php(427): ovirt_rest_api_call('GET', 'clusters/')\n#1 /var/www/html/area/settings.php(505): sb_clusterlist()\n#2 /var/www/html/site/index.php(6): require('/var/www/html/a...')\n#3 {main}\n thrown in /var/www/html/functions.php on line 241, referer: https://192.168.222.14/index.php?area=0
from ovirt_simple_backup.
The code is expecting to get xml from the api and it isnt. I will asdd a try/catch block in there ut I am thinking its another issue with authentication.
from ovirt_simple_backup.
Ok. Thanks.
meanwhile I am going to install a new backup apliance from scratch.
from ovirt_simple_backup.
I have updated the code. Simple fix as some of your (auto generated) files were still old version.
I would recommend that you delete any files in your /var/www/html/cache/ directory when upgrading. I will code that in asap so that is no longer a user issue.
I would do the following after that, go to the settings page, enter in as much info as possible including user/pass. Then ** go to the engine VM and enter "ovirt-aaa-jdbc-tool user unlock admin" to make sure the admin user hasnt been locked by too many failed api queries. Then click SAVE on the sttings page. Then choose your Domain and Cluster and click SAVE again. Hope that works!
from ovirt_simple_backup.
BTW, apache error log will complain sometimes due to the outputs of fdisk queries. I havent been able to silence that as its usually related to dynamic devices and www-data doesnt have access by default. Those errors can be ignored as they dont really create an issue.
from ovirt_simple_backup.
still cannot do the "save" option because web stops at "Default restore options"
but as I told previously I will try a new installation from scratch.
from ovirt_simple_backup.
Try deleting your config.php file
from ovirt_simple_backup.
deleted everything and uploaded again.
on ovirt-engine executed ovirt-aaa-jdbc-tool user unlock admin
WebUI is OK, but the settings web still stops at "Default Restore Options"
from ovirt_simple_backup.
OK, I've done the BackupEngine VM from scratch, still having the same issue.
Well now I cannot see the button in the oVirt interface, but I go directly to the BackupEngine web, and the same issue appears.
beginning to think that the problem is in the ovirt-engine, because I am also testing this other project vacosta94/VirtBKP#2 (comment) and also having similar issues
from ovirt_simple_backup.
If you can see the save button now, try this.
- Go to the settings page a fill in all the fields (DONT CLICK SAVE YET)
- Go to the command line on the engine VM and do a "ovirt-aaa-jdbc-tool user unlock admin"
- Now click SAVE on the settings page.
- Hopefully you now see the domains and the Cluster dropdowns with some options in them. If you do, choose the options for those 2 and SAVE again.
If that doesnt work, let me know exactly what you are seeing in the logs for errors.
You could also try this in your browser to see if it helps find the problem,
goto:
https://YOUR-IP-OF-ENGINEVM/api/clusters/
Then view the source of that page which should have the XML from the API, if not, then your problem is on the Engine.
from ovirt_simple_backup.
hi!, thanks for your support.
I cannot see the SAVE button, so I tested the url of the api
I think it works because I receive this code
https://192.168.222.200/ovirt-engine/api/clusters
<clusters><cluster href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88" id="adf5bf56-21f9-11e8-a184-da3173d77f88"><actions><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/resetemulatedmachine" rel="resetemulatedmachine"/></actions><name>Default</name><description>The default server cluster</description><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/affinitygroups" rel="affinitygroups"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/glusterhooks" rel="glusterhooks"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/glustervolumes" rel="glustervolumes"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/enabledfeatures" rel="enabledfeatures"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/externalnetworkproviders" rel="externalnetworkproviders"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/permissions" rel="permissions"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/cpuprofiles" rel="cpuprofiles"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/networkfilters" rel="networkfilters"/><link href="/ovirt-engine/api/clusters/adf5bf56-21f9-11e8-a184-da3173d77f88/networks" rel="networks"/><ballooning_enabled>false</ballooning_enabled><cpu><architecture>x86_64</architecture><type>Intel Nehalem Family</type></cpu><custom_scheduling_policy_properties><property><name>HighUtilization</name><value>80</value></property><property><name>CpuOverCommitDurationMinutes</name><value>2</value></property></custom_scheduling_policy_properties><error_handling><on_error>migrate</on_error></error_handling><fencing_policy><enabled>true</enabled><skip_if_connectivity_broken><enabled>false</enabled><threshold>50</threshold></skip_if_connectivity_broken><skip_if_gluster_bricks_up>false</skip_if_gluster_bricks_up><skip_if_gluster_quorum_not_met>false</skip_if_gluster_quorum_not_met><skip_if_sd_active><enabled>false</enabled></skip_if_sd_active></fencing_policy><firewall_type>firewalld</firewall_type><gluster_service>false</gluster_service><ha_reservation>false</ha_reservation><ksm><enabled>true</enabled><merge_across_nodes>true</merge_across_nodes></ksm><maintenance_reason_required>false</maintenance_reason_required><memory_policy><over_commit><percent>100</percent></over_commit><transparent_hugepages><enabled>true</enabled></transparent_hugepages></memory_policy><migration><auto_converge>inherit</auto_converge><bandwidth><assignment_method>auto</assignment_method></bandwidth><compressed>inherit</compressed><policy id="80554327-0569-496b-bdeb-fcbbf52b827b"/></migration><optional_reason>false</optional_reason><required_rng_sources><required_rng_source>urandom</required_rng_source></required_rng_sources><switch_type>legacy</switch_type><threads_as_cores>false</threads_as_cores><trusted_service>false</trusted_service><tunnel_migration>false</tunnel_migration><version><major>4</major><minor>2</minor></version><virt_service>true</virt_service><data_center href="/ovirt-engine/api/datacenters/adf3b350-21f9-11e8-927a-da3173d77f88" id="adf3b350-21f9-11e8-927a-da3173d77f88"/><mac_pool href="/ovirt-engine/api/macpools/58ca604b-017d-0374-0220-00000000014e" id="58ca604b-017d-0374-0220-00000000014e"/><scheduling_policy href="/ovirt-engine/api/schedulingpolicies/b4ed2332-a7ac-4d5f-9596-99a439cb2812" id="b4ed2332-a7ac-4d5f-9596-99a439cb2812"/></cluster></clusters>
the tail /var/log/apache2/error.log -f shows
[Mon Mar 26 20:21:08.084244 2018] [:error] [pid 995] [client 192.168.222.57:59259] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/functions.php:242\nStack trace:\n#0 /var/www/html/area/backup.php(18): ovirt_rest_api_call('GET', 'vms')\n#1 /var/www/html/site/index.php(6): require('/var/www/html/a...')\n#2 {main}\n thrown in /var/www/html/functions.php on line 242, referer: https://192.168.222.14/?area=99
[Mon Mar 26 20:21:12.188297 2018] [:error] [pid 996] [client 192.168.222.57:59260] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /var/www/html/functions.php:242\nStack trace:\n#0 /var/www/html/functions.php(428): ovirt_rest_api_call('GET', 'clusters/')\n#1 /var/www/html/area/settings.php(505): sb_clusterlist()\n#2 /var/www/html/site/index.php(6): require('/var/www/html/a...')\n#3 {main}\n thrown in /var/www/html/functions.php on line 242, referer: https://192.168.222.14/?area=2
from ovirt_simple_backup.
Are you using Debian or CentOS/RH as your OS for the Backup Appliance VM?
If using CentOS/RH, try this:
yum install php-libxml php-xml php-simplexml
from ovirt_simple_backup.
No. I'm using Debian 9
Should I try with CentOS?
from ovirt_simple_backup.
Try:
apt-get install libapache2-mod-php5
from ovirt_simple_backup.
I will try tomorrow but I'm Debian 9 is using php7, guess is the same.
from ovirt_simple_backup.
I havent tested with php7 yet. This should work:
apt-get install php7.0-xml
service apache2 restart
from ovirt_simple_backup.
Also, make sure you have this installed:
apt-get install php7.0-curl
service apache2 restart
from ovirt_simple_backup.
hi there, with apt-get install php7.0-xml now it works. although I can see all the web plus the "SAVE" button. :D
Now I'm going to test the setting, if something is wrong I will open another issue.
Thanks !
from ovirt_simple_backup.
Related Issues (20)
- new compression method, pbzip2 HOT 6
- exclude "lost+found" from restore HOT 1
- Wrong Drive Letter when backup HOT 10
- Log file is on Centos is not parsing \n =, each event in this same line HOT 1
- Option `First Backup Disk` doesn't work correctly HOT 1
- NFS on Fibre Channel LUN HOT 4
- Backup complited with 0% HOT 13
- backup stop if we change focus HOT 3
- scsi remove when detach HOT 21
- vms list fails to display when too many vms HOT 8
- Snapshot only backups HOT 2
- [RFE] add disk selection HOT 3
- Backup Failed Disk not attached. ovirt 4.3 HOT 7
- Strange behavior when backing up. Backup fails. HOT 10
- Post-installation Issues HOT 5
- Possible commit this HOT 9
- Documentation for migrating Windows machines from XenServer to oVirt HOT 1
- Typo in the code HOT 3
- The backup VM has too many disks attached. Please remove all but the OS disk in order to preform a backup. HOT 4
- Restore steps destory OvirtSimpleBackupVm image disks HOT 18
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 ovirt_simple_backup.