Re: Upgrade error backing up Postgre upgrade to version 5.3.
Posted: Fri Dec 16, 2016 11:31 am
Ran that command on all prior tables, but still getting the same error message:
Code: Select all
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_auditlog TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_commands TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_events TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_eventqueue TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_incidents TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_meta TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_options TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_sysstat TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_usermeta TO nagiosxi;'
GRANT
[root@nagios ~]# psql -d nagiosxi -U postgres -c 'GRANT ALL PRIVILEGES ON TABLE xi_users TO nagiosxi;'
GRANTCode: Select all
Backing up PostgresQL databases...
pg_dump: SQL command failed
pg_dump: Error message from server: ERROR: permission denied for relation xi_eventqueue_eventqueue_id_seq
pg_dump: The command was: SELECT sequence_name, start_value, last_value, increment_by, CASE WHEN increment_by > 0 AND max_value = 9223372036854775807 THEN NULL WHEN increment_by < 0 AND max_value = -1 THEN NULL ELSE max_value END AS max_value, CASE WHEN increment_by > 0 AND min_value = 1 THEN NULL WHEN increment_by < 0 AND min_value = -9223372036854775807 THEN NULL ELSE min_value END AS min_value, cache_value, is_cycled, is_called from xi_eventqueue_eventqueue_id_seq
Error backing up PostgresQL database 'nagiosxi' !