Guest User

Untitled

a guest
Jul 3rd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. ##shell
  2.  
  3. [socorro@cyb15 scripts]$ ./setupDatabase.py
  4. 2009-07-23 13:02:20,980 INFO - current configuration
  5. databaseHost=localhost
  6. databaseName=socorro
  7. databasePassword=**********
  8. databaseUserName=socorro
  9. logFileErrorLoggingLevel=10
  10. logFileLineFormatString=%(asctime)s %(levelname)s - %(message)s
  11. logFileMaximumBackupHistory=50
  12. logFileMaximumSize=1000000
  13. logFilePathname=./setup.log
  14. stderrErrorLoggingLevel=10
  15. stderrLineFormatString=%(asctime)s %(levelname)s - %(message)s
  16.  
  17. 2009-07-23 13:02:20,982 INFO - done.
  18. Traceback (most recent call last):
  19. File "./setupDatabase.py", line 40, in ?
  20. socorro_schema.setupDatabase(configurationContext, logger)
  21. File "/home/socorro/socorro/socorro/database/schema.py", line 1250, in setupDatabase
  22. databaseConnection, databaseCursor = connectToDatabase(config, logger)
  23. File "/home/socorro/socorro/socorro/database/schema.py", line 1243, in connectToDatabase
  24. databaseConnection = pg.connect(databaseDSN)
  25. psycopg2.OperationalError: FATAL: Ident authentication failed for user "socorro"
  26.  
  27. ##python script
  28.  
  29. databaseHost = cm.Option()
  30. databaseHost.doc = 'the hostname of the database servers'
  31. databaseHost.default = 'localhost'
  32.  
  33. databaseName = cm.Option()
  34. databaseName.doc = 'the name of the database within the server'
  35. databaseName.default = 'socorro'
  36.  
  37. databaseUserName = cm.Option()
  38. databaseUserName.doc = 'the user name for the database servers'
  39. databaseUserName.default = 'socorro'
  40.  
  41. databasePassword = cm.Option()
  42. databasePassword.doc = 'the password for the database user'
  43. databasePassword.default = ''
  44.  
  45. ## /var/lib/pgsql/data/pg_hba.conf
  46.  
  47. local all all ident sameuser
  48.  
  49.  
  50. ## pg_dump socorro
  51. [socorro@cyb15 scripts]$ pg_dump socorro
  52. --
  53. -- PostgreSQL database dump
  54. --
  55.  
  56. SET client_encoding = 'UTF8';
  57. SET check_function_bodies = false;
  58. SET client_min_messages = warning;
  59.  
  60. --
  61. -- Name: SCHEMA public; Type: COMMENT; Schema: -; Owner: postgres
  62. --
  63.  
  64. COMMENT ON SCHEMA public IS 'Standard public schema';
  65.  
  66.  
  67. --
  68. -- Name: public; Type: ACL; Schema: -; Owner: postgres
  69. --
  70.  
  71. REVOKE ALL ON SCHEMA public FROM PUBLIC;
  72. REVOKE ALL ON SCHEMA public FROM postgres;
  73. GRANT ALL ON SCHEMA public TO postgres;
  74. GRANT ALL ON SCHEMA public TO PUBLIC;
  75.  
  76.  
  77. --
  78. -- PostgreSQL database dump complete
  79. --
  80.  
  81. [socorro@cyb15 scripts]$
Add Comment
Please, Sign In to add comment