question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade Instructions advise skipping from Step 7 to 8, but then noclobber will foil the upgrade

See original GitHub issue

Hi, I’m new here. Never opened an issue on GitHub before, ever. I skimmed the guidelines; apologies if I miss something.

I think I’m the guy who provided the impulse for the documentation enhancements in https://github.com/mattermost/docs/pull/4943. It looks MUCH better now (on the docs site), but I think there is still a small point to be corrected.

TL;DR: does the sentence from Step 7 ending in “you can jump to step 8 below.” need to disappear? I think if it doesn’t, lots of important stuff won’t be copied that should be.

Details:

I see in Step 7 the following:

Run ls on your Mattermost install directory to identify what default folders exist. If your folders match the structure specified in the following note, you can jump to step 8 below.

OK, cool, that is my situation.

And then Step 8 tells me:

The n (no-clobber) flag and trailing . on source are very important. The n (no-clobber) flag preserves existing configurations and logs in your installation path. The trailing . on source ensures all installation files are copied.

Umm, I don’t think that’s true. Since I didn’t erase anything (skipping from Step 7 to Step 8), the no-clobber flag will preserve the stuff the command is meant to copy into that directory.

I did a fast check by copying my existing mattermost installation into /tmp/mattermostclobberme and then adjusted the Step 8 instructions to simulate it with cp -an /tmp/mattermost-upgrade/. /tmp/mattermostclobberme/

Results of an ls -lh after that:

root:/tmp# ls -lh ./mattermost-upgrade/bin ./mattermostclobberme/bin
./mattermostclobberme/bin:
total 108M
-rwxr-xr-x 1 mattermost mattermost  85M Jun 10 13:53 mattermost
-rwxr-xr-x 1 mattermost mattermost  21M Jan 13  2021 mmctl
-rwxr-xr-x 1 mattermost mattermost 2.2M Jun 10 13:53 platform

./mattermost-upgrade/bin:
total 110M
-rwxr-xr-x 1 root root 89M Jul 29 13:38 mattermost
-rwxr-xr-x 1 root root 22M Jul  6 15:46 mmctl

We see, thanks to the timestamp on the files, that the cp -an command did not overwrite the mattermost binary in /tmp/mattermostclobberme/bin/, which leads me to believe that the hint in Step 7 about jumping to Step 8 is very counter-productive.

Thank you for reading my first-ever GitHub issue! 😃

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mrckndtcommented, Aug 18, 2021

@cwarnermm Yes, the find command is needed to wipe the old server and client components.

0reactions
cwarnermmcommented, Aug 18, 2021

@mrckndt @cliff1976 - These documentation corrections will be made via https://github.com/mattermost/docs/pull/4978

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support for Extended Support Release 5.31 Is Ending Soon
Upgrade Instructions advise skipping from Step 7 to 8, but then noclobber will foil the upgrade. opened 05:39PM - 13 Aug 21 UTC....
Read more >
Linux: Upgrading from Redhat 7 to 8 - Your technical Mate
This document provide instructions on how to upgrade your system from Red Hat Enterprise Linux 7 to Red Hat Enterprise Linux 8 using...
Read more >
How to Upgrade a Dumb Shell to a Fully Interactive ... - Null Byte
Luckily, with a few commands, we can upgrade to a fully interactive shell with all the bells and whistles. It can often be...
Read more >
U.K. Heat Wave: Wales Appears to Set Record High, as Britain ...
A country largely without air-conditioning was struggling to cope in the heat. Rail service was limited for fear the tracks would buckle, ...
Read more >
apt-get -y upgrade keep asking me to confirm keep /tmp/grub ...
A new version (/tmp/grub.xC3mMKP0zx) of configuration file /etc/default/grub is available, but the version installed currently has been locally ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found