Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. CentOS 7
  2. Ruby 2.6.3
  3. Rails (5.2.2)
  4. Mongoid (7.0.2)
  5.  
  6. $ mongo --version
  7. MongoDB shell version v4.0.9
  8. git version: fc525e2d9b0e4bceff5c2201457e564362909765
  9. OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
  10. allocator: tcmalloc
  11. modules: none
  12. build environment:
  13. distmod: rhel70
  14. distarch: x86_64
  15. target_arch: x86_64
  16.  
  17. production:
  18. clients:
  19. default:
  20. database: mydb_production
  21. hosts:
  22. - localhost:27017
  23. username: myuser
  24. password: "mypass"
  25. options:
  26. auth_mech: :scram
  27. auth_source: admin
  28.  
  29. D, [2019-05-27T20:01:58.272760 #27444] DEBUG -- : MONGODB | EVENT: #<TopologyOpening topology=Unknown[]>
  30. D, [2019-05-27T20:01:58.272934 #27444] DEBUG -- : MONGODB | Topology type 'unknown' initializing.
  31. D, [2019-05-27T20:01:58.273748 #27444] DEBUG -- : MONGODB | EVENT: #<TopologyChanged prev=Unknown[] new=Unknown[localhost:27017]>
  32. D, [2019-05-27T20:01:58.273848 #27444] DEBUG -- : MONGODB | Topology type 'Unknown' changed to type 'Unknown'.
  33. D, [2019-05-27T20:01:58.274028 #27444] DEBUG -- : MONGODB | EVENT: #<ServerOpening address=localhost:27017 topology=Unknown[localhost:27017]>
  34. D, [2019-05-27T20:01:58.274091 #27444] DEBUG -- : MONGODB | Server localhost:27017 initializing.
  35. D, [2019-05-27T20:01:58.365308 #27444] DEBUG -- : MONGODB | EVENT: #<ServerDescriptionChanged address=localhost:27017 topology=Single[localhost:27017] prev=#<Mongo::Server:Description:0x70049014837980 config={} average_round_trip_time=> new=#<Mongo::Server:Description:0x70048970460940 config={"ismaster"=>true, "maxBsonObjectSize"=>16777216, "maxMessageSizeBytes"=>48000000, "maxWriteBatchSize"=>100000, "localTime"=>2019-05-28 00:01:58 UTC, "logicalSessionTimeoutMinutes"=>30, "minWireVersion"=>0, "maxWireVersion"=>7, "readOnly"=>false, "ok"=>1.0} average_round_trip_time=0.088107942>>
  36. D, [2019-05-27T20:01:58.365596 #27444] DEBUG -- : MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
  37. D, [2019-05-27T20:01:58.365843 #27444] DEBUG -- : MONGODB | EVENT: #<TopologyChanged prev=Unknown[localhost:27017] new=Single[localhost:27017]>
  38. D, [2019-05-27T20:01:58.366024 #27444] DEBUG -- : MONGODB | Topology type 'Unknown' changed to type 'Single'.
  39.  
  40. $ rails c production
  41. Running via Spring preloader in process 3131
  42. Loading production environment (Rails 5.2.2)
  43. 2.6.3 :001 > User.first
  44. Traceback (most recent call last):
  45. 1: from (irb):1
  46. NoMethodError (undefined method `encode' for nil:NilClass)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement