DOI-USGS / fort-pymdwizard

The MetadataWizard is a useful tool designed to facilitate FGDC metadata creation for spatial and non-spatial data sets. It is a cross-platform desktop application built using an open-source Python architecture.
https://usgs.github.io/fort-pymdwizard/
Other
62 stars 21 forks source link

Problem Encountered Updating from GitHub #149

Closed mcannister-usgs closed 2 years ago

mcannister-usgs commented 2 years ago

Describe the bug Clicking "Check for Updates" results in the error message shown in the screenshot below.

To Reproduce Steps to reproduce the behavior:

  1. Install MetadataWizard 2.0.7 with PR account
  2. Launch application
  3. Confirm dialog to download update from GitHub
  4. Close and re-open application
  5. Check for updates again

Expected behavior A dialog box indicating that either the application is up to date or that an update is available from GitHub.

Screenshots image

Desktop (please complete the following information):

Additional context I initially tried to install this version using my own account and it yielded an error message at the end of the installation (same as issue #144 ) . I had the application installed with a PR account and the installation worked fine. Also, the initial load of the application showed a prompt that an update was available from GitHub. The IT individual performing the install clicked to update, then closed and re-opened the application per the prompt. Now, attempts to check for updates result in the attached screenshot.

The initial PR account install (and update from GitHub) was performed while on VPN, but the screenshot error now appears whether on or off VPN, and whether the application is opened by myself or "Run as Administrator" by someone with a PR account.

dignizio-usgs commented 2 years ago

I can recreate this issue. Seems to be related to security settings currently imposed for USGS users and a new inability to run a git fetch / git merge command over https. We are aware of the problem and investigating a solution.

dignizio-usgs commented 2 years ago

@mcannister-usgs - can you do a quick to see if you're still hitting this? My attempts to update tool and perform git calls are now working. Maybe a network thing?

mcannister-usgs commented 2 years ago

@dignizio-usgs - yeah I'm still having the issue with my current MW install.

Let me know if a re-install is necessary, as I have not done that yet.

aliford commented 2 years ago

A user mentioned this workaround in the ask-sdm inbox:

"I did find a workaround for our server that wouldn't update. I renamed the MetadataWizard directory on the server to MetadataWizard.old. I then copied the MetadataWizard directory from my laptop, which was updated, and placed it on the server in the same place. I then started MW on the server, and it did not crash on the right click in detailed."

dignizio-usgs commented 2 years ago

Thank you for the follow up @aliford and @mcannister-usgs .

As a general note, full uninstall / reinstall is a good idea for any of these issues, to ensure no remnant resources are present that can cause conflicts (folders, previous libraries, etc.). If a user used PR to install the tool, I usually use PR to uninstall as well, and make sure to fully remove any folders, etc. @aliford - it seems this may have been in part what your user was running into? But for any new version, users should try to make sure to remove any previous folders or versions of the tool.

@mcannister-usgs - I followed up with you via email, including a new test version of the software. We can troubleshoot as needed through that channel.

dignizio-usgs commented 2 years ago

@aliford - right click in 'Detailed' section was documented in a separate issue here: https://github.com/usgs/fort-pymdwizard/issues/147 and after update, our testing indicates this is resolved. Thanks for the note, closing this issue.