Description of problem: I am trying to build rubygem-database_cleaner. It works just fine on primary arches, but it does not look Redis is accessible on s390x and ppc64: https://koji.fedoraproject.org/koji/taskinfo?taskID=21238196 Since this is noarch package, I can still build it, but this is annoying issue due to mass rebuild failures and failing Koschei builds. Version-Release number of selected component (if applicable): redis-3.2.9-3.fc27.ppc64 redis-3.2.9-3.fc27.s390x How reproducible: Always Steps to Reproduce: 1. $ fedpkg co rubygem-database_cleaner 2. $ cd rubygem-database_cleaner 3. $ fedpkg scratch-build --srpm --arch armv7hl aarch64 i686 ppc64 ppc64le s390x x86_64 Actual results: Expected results: Additional info:
hmm, it fails on ppc64le as well, so doesn't look as big endian (only) problem ...
(In reply to Dan Horák from comment #1) > hmm, it fails on ppc64le as well, so doesn't look as big endian (only) > problem ... That is different error ...
But it does *not* fail on ARM, which is BE, isn't it?
(In reply to Vít Ondruch from comment #3) > But it does *not* fail on ARM, which is BE, isn't it? nope, only s390x and ppc64 are big endians now in Fedora
If someone could distil the failure down to a simple test case, I'd be happy to take a look at the redis server code and diagnose further. Those failed build messages are a bit too opaque for me to decipher. [ideally, a redis-cli command (or series thereof) that can reproduce the issue - would help greatly to resolving this]
Mea culpa. I am really sorry, I made mistake. The issue is not with Redis, but with Mongo. Going to reassign ...
Trying this locally, I can simulate the issue when MongoDB server is not running: ~~~ $ ruby -r moped -e "s = ::Moped::Session.new(['127.0.0.1:27017'], database: 'test'); s.use :moped; p s[:users].find.one" W, [2017-08-16T14:18:16.559826 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:16.811022 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.062197 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.313449 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.566640 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:17.819639 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.071277 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.322270 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.575943 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:18.828969 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.079826 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.331822 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.583756 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:19.835952 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.088706 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.341233 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.593571 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:20.846111 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:21.098913 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. W, [2017-08-16T14:18:21.351574 #25] WARN -- : MOPED: Could not connect to any node in replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>, refreshing list. /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:270:in `with_secondary': Could not connect to any secondary or primary nodes for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]> (Moped::Errors::ConnectionFailure) from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/cluster.rb:268:in `with_secondary' from /usr/share/gems/gems/moped-1.5.3/lib/moped/session/context.rb:104:in `with_node' from /usr/share/gems/gems/moped-1.5.3/lib/moped/session/context.rb:43:in `query' from /usr/share/gems/gems/moped-1.5.3/lib/moped/query.rb:115:in `first' from -e:1:in `<main>' ~~~ but as soon as the server is running, I got correct meaningful result: ~~~ $ mongod --dbpath=. --logpath ./mongod.log --fork about to fork child process, waiting until server is ready for connections. forked process: 71 child process started successfully, parent exiting $ ruby -r moped -e "s = ::Moped::Session.new(['127.0.0.1:27017'], database: 'test'); s.use :moped; p s[:users].find.one" nil ~~~ But this does not work on Koji. Just out of fun, I tried mongo CLI: ~~~ $ echo "db.adminCommand('listDatabases')" | mongo MongoDB shell version v3.4.6 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.4.6 { "databases" : [ { "name" : "admin", "sizeOnDisk" : 12288, "empty" : false }, { "name" : "local", "sizeOnDisk" : 8192, "empty" : false } ], "totalSize" : 20480, "ok" : 1 } bye ~~~ This seems to work just fine locally as well as on Koji. So this suggest some networking issues ...
Actually, there are reports that moped has some issues on BE systems: https://github.com/mongoid/moped/issues/390
The patch seems to help.
rubygem-moped-1.5.3-5.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f972093bcb
rubygem-moped-1.5.3-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-81cdd8b6dd
rubygem-moped-1.5.3-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-81cdd8b6dd
rubygem-moped-1.5.3-5.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f972093bcb
rubygem-moped-1.5.3-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
rubygem-moped-1.5.3-5.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.