Project

General

Profile

Bug #27739

Fix "coroutine object has no attribute result" error

Added by Erin Clark over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
Critical
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I am trying to find ways to do an update and a reboot and then forward the user to the reboot screen so I tried running update.update from the UI like this:

    this.dialogRef.componentInstance.setCall('update.update', [{ train: this.train, reboot: false }]);
    this.dialogRef.componentInstance.submit();
    this.dialogRef.componentInstance.success.subscribe((res) => {
      this.ws.call('system.reboot', {}).subscribe(
        (res) => {
        },
        (res) => { // error on reboot
          this.dialogService.errorReport(res.error, res.reason, res.trace.formatted);
        },
        () => { // show reboot screen
          this.ws.prepare_shutdown();
          this.router.navigate(['/others/reboot']);
        });
    });

what should happen when this is run is that it will run the call to reboot and forward the user upon a successful update but it just gets stuck at the error message 'coroutine' object has no attribute 'result' instead. It does appear that the update was otherwise successfully applied, my guess is that nothing was returned after the update was applied so the form couldn't move on. Let me know if you need anything to help figure this one out.


Related issues

Related to FreeNAS - Bug #27587: The GUI doesn't refresh after an upgradeClosed2018-01-03
Has duplicate FreeNAS - Bug #27772: update.update sometimes gives me the error message "Fake Middleware object has no attribute call_sync"Closed: Duplicate2018-01-11

Associated revisions

Revision 62278fe8 (diff)
Added by William Grzybowski over 1 year ago

fix(middlwared): calling job with process=True

Ticket: #27739

Revision 6176faa9 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/update): `update.update` call without train attribute

Ticket: #27739

Revision 96608d96 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared): calling job with process=True

Ticket: #27739

Revision 446df72f (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/update): `update.update` call without train attribute

Ticket: #27739

Revision a35e4dc0 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared): calling job with process=True

Ticket: #27739

Revision 94f80e34 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/update): `update.update` call without train attribute

Ticket: #27739

Revision a8881936 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/update): `update.update` call without train attribute

Ticket: #27739
(cherry picked from commit 94f80e34cbe2653e71aaaacedd72bc5bd6f11115)

Revision b89da9c4 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared): calling job with process=True

Ticket: #27739
(cherry picked from commit a35e4dc03b44bbe8c78dcd1f5ad47d282377a0bd)

History

#1 Updated by Erin Clark over 1 year ago

  • Related to Bug #27587: The GUI doesn't refresh after an upgrade added

#2 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Fix In Progress
  • Priority changed from No priority to Critical

#3 Updated by William Grzybowski over 1 year ago

  • Seen in changed from Master - FreeNAS Nightlies to 11.1

#4 Updated by William Grzybowski over 1 year ago

  • File deleted (debug-freenas-20180109174438.tgz)

#5 Updated by William Grzybowski over 1 year ago

  • Status changed from Fix In Progress to Screened

#6 Updated by William Grzybowski over 1 year ago

  • Status changed from Screened to Ready For Release
  • Private changed from Yes to No

#7 Updated by William Grzybowski over 1 year ago

  • Needs QA changed from Yes to No

#8 Updated by William Grzybowski over 1 year ago

  • Has duplicate Bug #27772: update.update sometimes gives me the error message "Fake Middleware object has no attribute call_sync" added

#9 Updated by Dru Lavigne over 1 year ago

  • Subject changed from 'coroutine' object has no attribute 'result' when running update.update to Fix "coroutine object has no attribute result" error
  • Status changed from Ready For Release to Done
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF