-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Documentation] Rework Upgrade Guide and add Section "Upgrade from LanSuite v4.2 to v5.0" #794
Conversation
…nd Known Bugs" in the upgrade guide
@mrflobow contacted me because he apparently had issues in updating his dev environment while following the guide. |
Kudos, SonarCloud Quality Gate passed! |
While we wait:
The guide lists all steps that should be done to avoid issues before/during/after the upgrade. So I would leave it in. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
* The base configuration file from `inc/base/config.php` | ||
* Anything under `ext_inc` | ||
* Custom designs from `designs/` | ||
|
||
Copy them to the same place on the new installation, overwriting everything there. | ||
|
||
### Check file access rights | ||
|
||
Depending on the user you did the installation with it may be required to reset the file and folder access rights. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the rationale of removing this?
Unless file operations are done in scope of the webserver user, ownership may be wrong, so may be access rights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The installation script checks the file permission and warns the user. Thats why I don't think it should be a manual step. On top of this it doesn't say
- which file permission to check
- what are the required file permission
Hence it is providing limited value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The installation script is not executed as part of the instructions.
So that does not help.
If I remember correctly it also does not tell what should be set, just that permissions are not sufficient.
I do agree with you that it would be better to detail what permissions should be set.
But that does not mean that the information that this may need to be done should be removed alltogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now looking deeper at the old upgrade instructions:
In der Datei inc/base/config.php den Wert von Configured auf 0 zurücksetzen
Nun die Webseite aufrufen. Es erscheint die Installation. Diese ganz normal durchklicken und die Datenbank Zugangsdaten eingeben jedcoh NICHT DAS HÄCKCHEN setzen, dass die DB löscht. Die Installation sollte nun automatisch updaten.
Huh. If that works it covers most of what is needed.
* Please ensure that export and import of Database images use the same character encoding. Using the same client on the same system should ensure this, but be cautious if dump and import are done on different systems/clients | ||
* MySQL 5.7 changes default behavior for GROUP BY clauses. This may lead to unexpected errors in some cases. See [#117](https://github.com/lansuite/lansuite/issues/117) for details | ||
* The master branch is not usable without pulling in additional resources via composer. You must do this first to obtain a runnable installation! | ||
* You have to run a database table upgrade as an extension of the IP field is required to store logging information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to provide a conversion logic for existing DB entries in IPv4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is removed. As far a I know this is not needed anymore. I have updated my system already and never did such a conversion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a look. It appears that old column values are dropped with the related column change.
So there is nothing to convert once the DB update is done.
Not sure if feature or bug :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storing the ipv4 addresses without a proper reason is not gdpr confirm either. In this case, I don't think we need to fix this.
On top of this, people have a database backup. If they really need the IPv4 addresses, there is a possibility to add those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest to add a note that this happens and leave it with that.
log is (supposed to be) cleaned up regularly via cron2, so these should disappear in reasonable time anyways.
Ad GDPR:
The proper reason is legimimate interest and is actually fine as long as it is disclosed transparently (where we fail at the moment).
(Apparently there are also some court cases in DE/AU where dynamic IPs were not considered personal information, but as so often it is not clear-cut)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 929e27a
@mrflobow I had a quick check on your journey. It seem to be relate to the MySQL database.
Can we verify that MySQL was booted up successfully?
has permission to create a database? @M4LuZ The comment by @mrflobow is related to a development installation, not on how to upgrade an existing LanSuite installation. Hence, I would suggest to open up a new ticket on this. |
That's fine by me. @mrflobow: That issue looks very much like what I noticed with #871 / #872 |
@M4LuZ Which items are missing in this PR? |
I've resolved the conversations finished and have only these two remaining:
|
Co-authored-by: M4LuZ <MaLuZ@gmx.net>
Quality Gate passedIssues Measures |
@andygrunwald related to install, tried it also in a vm with all service installed . The issue is the use of old db class and new which leads to fail in the wizard . Maybe also due to some config bug Maluz fixed. Yes this is unrelated to upgrade , the inital install fails neither its docker or vm. I believe it's worth to look in a separate bug into it. |
What is this PR doing?
I recently upgraded an older LanSuite instance.
For this, I had first-hand experience on what steps are necessary to upgrade.
This Pull Request reworks the Upgrade Guide a bit:
Which issue(s) this PR fixes:
None
Checklist
CHANGELOG.md
entry - Not needed