[FOLIO-1484] Strange error while enabling mod-circulation-storage for a tenant Created: 11/Sep/18  Updated: 12/Nov/18  Resolved: 12/Sep/18

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Task Priority: P3
Reporter: John Malconian Assignee: John Malconian
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to OKAPI-641 install: Modules order affects depend... Closed
relates to OKAPI-645 Wrong error code used in proxy service Closed
relates to FOLIO-1488 Improve status check when bootstrappi... Closed
Sprint:

 Description   

Enabling a list of modules for a tenant on folio-snapshot-stable.aws.indexdata.com using the okapi install endpoint throws the following error:

okapi pull: none of remote URLs work

It seems as if there is an issue enabling mod-circulation-storage but the error message is cryptic. Marc Johnson started occurring this past weekend when you submitted that PR for ui-users.



 Comments   
Comment by John Malconian [ 11/Sep/18 ]

Trying to enable the following modules for the tenant, pr_499_1, on folio-snapshot-stable.indexdata.com:9130

[ {
  "id" : "mod-users-15.1.0-SNAPSHOT.38",
  "action" : "enable"
}, {
  "id" : "mod-configuration-5.0.1-SNAPSHOT.45",
  "action" : "enable"
}, {
  "id" : "mod-inventory-storage-12.6.1-SNAPSHOT.150",
  "action" : "enable"
}, {
  "id" : "mod-inventory-9.4.1-SNAPSHOT.100",
  "action" : "enable"
}, {
  "id" : "mod-permissions-5.3.2-SNAPSHOT.27",
  "action" : "enable"
}, {
  "id" : "mod-circulation-storage-6.1.0-SNAPSHOT.113",
  "action" : "enable"
}, {
  "id" : "mod-circulation-12.0.1-SNAPSHOT.171",
  "action" : "enable"
}, {
  "id" : "mod-login-4.4.1-SNAPSHOT.21",
  "action" : "enable"
}, {
  "id" : "mod-feesfines-14.2.2-SNAPSHOT.12",
  "action" : "enable"
}, {
  "id" : "folio_users-2.14.2-pr.499.1",
  "action" : "enable"
}, {
  "id" : "mod-codex-inventory-1.2.1-SNAPSHOT.56",
  "action" : "enable"
}, {
  "id" : "mod-users-bl-4.0.2-SNAPSHOT.25",
  "action" : "enable"
}, {
  "id" : "mod-authtoken-1.5.2-SNAPSHOT.26",
  "action" : "enable"
}, {
  "id" : "folio_stripes-core-2.11.1000357",
  "action" : "enable"
} ]

with the following command:

 curl  -w '\n' -X POST -H 'Content-type: application/json' -d @test_tenant_module_list http://folio-snapshot-stable.aws.indexdata.com:9130/_/proxy/tenants/pr_499_1/install

Results in the following error:

pull: none of remote URLs work

Only the following modules get enabled:

[malc@ip-10-36-20-124 scripts]$ curl http://folio-snapshot-stable.aws.indexdata.com:9130/_/proxy/tenants/pr_499_1/modules
[ {
  "id" : "mod-configuration-5.0.1-SNAPSHOT.45"
}, {
  "id" : "mod-inventory-9.4.1-SNAPSHOT.100"
}, {
  "id" : "mod-inventory-storage-12.6.1-SNAPSHOT.150"
}, {
  "id" : "mod-permissions-5.3.2-SNAPSHOT.27"
}, {
  "id" : "mod-users-15.1.0-SNAPSHOT.38"
}, {
  "id" : "okapi-2.17.0"

Notice that all modules are enabled in the list up to but not including mod-circulation-storage. Originally, mod-circulation-storage, was higher in the list. I've moved it back down the list and noticed that all modules above it get successfully enabled.

Comment by John Malconian [ 11/Sep/18 ]

Marc Johnson The module list is generated by Okapi when explicitly enabling @folio/users and @folio/stripes-core. Though unrelated to the issue above, I think, I found it curious that mod-inventory was not automatically added as a dependency. I added it manually while troubleshooting this. Maybe it is not needed, but I figure I'd mention it here anyway.

Comment by John Malconian [ 11/Sep/18 ]

Okapi log:

2018-09-11 20:28:10,124 INFO  ModuleManager        addModuleDependencies mod-circulation-storage-6.1.0-SNAPSHOT.113
2018-09-11 20:28:10,124 INFO  ModuleManager        addModuleDependencies - add mod-circulation-storage-6.1.0-SNAPSHOT.113
2018-09-11 20:28:10,125 INFO  ModuleManager        addModuleDependencies mod-circulation-12.0.1-SNAPSHOT.171
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,125 INFO  ModuleManager        addModuleDependencies - add mod-circulation-12.0.1-SNAPSHOT.171
2018-09-11 20:28:10,125 INFO  ModuleManager        addModuleDependencies mod-login-4.4.1-SNAPSHOT.21
2018-09-11 20:28:10,125 INFO  ModuleManager        addModuleDependencies - add mod-login-4.4.1-SNAPSHOT.21
2018-09-11 20:28:10,125 INFO  ModuleManager        addModuleDependencies mod-feesfines-14.2.2-SNAPSHOT.12
2018-09-11 20:28:10,126 INFO  ModuleManager        addModuleDependencies - add mod-feesfines-14.2.2-SNAPSHOT.12
2018-09-11 20:28:10,126 INFO  ModuleManager        addModuleDependencies folio_users-2.14.2-pr.499.1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        addModuleDependencies - add folio_users-2.14.2-pr.499.1
2018-09-11 20:28:10,126 INFO  ModuleManager        addModuleDependencies mod-codex-inventory-1.2.1-SNAPSHOT.56
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,126 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies - add mod-codex-inventory-1.2.1-SNAPSHOT.56
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies mod-users-bl-4.0.2-SNAPSHOT.25
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies - add mod-users-bl-4.0.2-SNAPSHOT.25
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies mod-authtoken-1.5.2-SNAPSHOT.26
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies - add mod-authtoken-1.5.2-SNAPSHOT.26
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies folio_stripes-core-2.11.1000357
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        checkInterfaceDependency1
2018-09-11 20:28:10,127 INFO  ModuleManager        addModuleDependencies - add folio_stripes-core-2.11.1000357
2018-09-11 20:28:10,128 INFO  TenantManager        installModules.returning OK
2018-09-11 20:28:10,129 INFO  ProxyContext         998135/proxy RES 400 310502us okapi pull: none of remote URLs work
Comment by John Malconian [ 11/Sep/18 ]

Look like an older version of mod-circulation-storage is actually deployed and running on the system - mod-circulation-storage-5.6.1-SNAPSHOT.109 - so I'm guessing the error is related to the fact that mod-circulation-storage-6.1.0-SNAPSHOT.113 is not deployed. I guess the error could be more explicit but otherwise the problem is straight-forward enough.

Comment by Adam Dickmeiss [ 12/Sep/18 ]

See OKAPI-645 Closed ..

Comment by Marc Johnson [ 12/Sep/18 ]

John Malconian This could be how a major interface version discrepancy manifests itself in the PR regression tests?

The change involved introducing dual compatibility between multiple loan-storage interfaces, if nothing else constrained that, the new breaking compatibility version would be wanted and not found.

Comment by John Malconian [ 12/Sep/18 ]

Yeah. that's exactly it. It's on me to add better error checking ( FOLIO-1488 Closed ) so I'm closing this. Adam has opened OKAPI-645 Closed to fix the error message.

Generated at Thu Feb 08 23:13:40 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.