The error indicates the 'file' command is not found.
rpm -qa | grep file
On my 6.4 install, I have file-5.04-15.el6.x86_64
On Wed, May 22, 2013 at 10:31 AM, <j.astrego(a)netbulae.eu> wrote:
Hi,
Line 199 of the dbfunctions.sh script is:
isShellScript=$(file $execFile | grep "shell" | wc -l)
So can you check if "grep" and "wc" are installed?
rpm -qa|grep 'grep\|coreutils'
--
Kind regards,
Jorick Astrego
Netbulae B.V.
Site:
http://www.netbulae.eu
From: Paco qw <qw.iampaco(a)gmail.com>
To: users(a)ovirt.org
Date: 05/22/2013 11:53
Subject: [Users] error install on centos
Sent by: users-bounces(a)ovirt.org
------------------------------
Hello everyone.
Ovirt install on Centos 6.2
Run engine-setup and get the error.
Installing:
Configuring oVirt Engine... [ DONE ]
Configuring JVM... [ DONE ]
Creating CA... [ DONE ]
Updating ovirt-engine service... [ DONE ]
Setting Database Configuration... [ DONE ]
Setting Database Security... [ DONE ]
Creating Database... [ ERROR ]
Database creation failed
Please check log file
/var/log/ovirt-engine/engine-setup_2011_11_24_05_36_26.log for more
information
In log engine-db-install
#engine db installer log file on
*rhevm8.lab.topsonline.ru*<http://rhevm8.lab.topsonline.ru/>
[engine-db-install] verifying required rpms are installed.
postgresql-server-8.4.9-1.el6_1.1.x86_64
postgresql-8.4.9-1.el6_1.1.x86_64
postgresql-libs-8.4.9-1.el6_1.1.x86_64
[engine-db-install] verifying postgres service exists.
[engine-db-install] init postgres db.
[engine-db-install] psgql db already been initialized.
[engine-db-install] changing authentication scheme from peer to ident.
[engine-db-install] changing authentication scheme from ident to trust.
[engine-db-install] stop postgres service.
Stopping postgresql service: [ OK ]
[engine-db-install] starting postgres service.
Starting postgresql service: [ OK ]
[engine-db-install] validating that postgres service is running...retry 1
?column?
----------
1
(1 row)
[engine-db-install] checking if engine db exists already..
psql: FATAL: database "engine" does not exist
[engine-db-install] engine not installed.
[engine-db-install] updating db admin credentials
DROP ROLE
CREATE ROLE
[engine-db-install] creating engine db on postgres.
/usr/share/ovirt-engine/dbscripts ~
/usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
Creating the database: engine
dropdb: database removal failed: ERROR: database "engine" does not exist
user name is: engine
Creating tables...
Creating functions...
Creating common functions...
Inserting data ...
Inserting pre-defined roles ...
Running upgrade scripts...
upgrade script detected a change in Config, View or Stored Procedure...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/pre_upgrade/0000_config.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/pre_upgrade/0010_custom.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/pre_upgrade/0020_add_comment_col_to_schema_version.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/pre_upgrade/0030_add_materialized_views_table.sql ...
Dropping materialized views...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0010_add_group_ids_to_users.sql
...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0030_change_storage_format_type_to_str.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0040_change_vm_dynamic_vm_ip_type.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0050_make_blank_template_pulic.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0060_add_group_everyone.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0100_add_device_size_to_luns.sql
...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0120_add_update_date_to_vm_templates.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0130_change_dwh_history_timekeeping_date_type.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0150_update_roles.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0180_add_guest_disk_size.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0190_add_latency_vm_disks.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0220_add_MaxAuditLogMessageLength_to_config.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0260_change_app_list_type_to_text.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0270_change_users_group_ids_field_to_text.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0280_change_blank_template_default_display_type_to_spice.sql
...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0300_add_local_admin_user.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0330_add_configuration_action_group_to_super_user_role.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0360_upgrade_default_vds_group_thp.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script
upgrade/03_00_0380_add_otp_validity_to_vds_static.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0410_add_disks_usage.sql ...
./dbfunctions.sh: line 199: file: command not found
Running upgrade sql script upgrade/03_00_0420_encrypt_pm_passwd.sh ...
psql:upgrade/03_00_0420_encrypt_pm_passwd.sh:25: ERROR: syntax error at
or near "#!/"
LINE 1: #!/bin/bash
^
What am I doing wrong?_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--
--
James P. Kinney III
*
*Every time you stop a school, you will have to build a jail. What you gain
at one end you lose at the other. It's like feeding a dog on his own tail.
It won't fatten the dog.
- Speech 11/23/1900 Mark Twain
*
http://electjimkinney.org
http://heretothereideas.blogspot.com/
*