mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-05 16:49:47 +03:00
How to upgrade the AWS Marketplace AMI #2937
Closed
opened 2026-02-05 05:47:24 +03:00 by OVERLORD
·
13 comments
No Branch/Tag Specified
development
l10n_development
further_theme_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
pull-request
Mirrored from GitHub Pull Request
No Label
🐕 Support
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#2937
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dzitzels1 on GitHub (Aug 3, 2022).
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
The AWS Marketplace AMI is at v21.05.3 and I am running an instance of it. I would like to upgrade my instance to v22.07 but none of the upgrade procedures seem to work. I am reaching out to Intuz who created the image but I am having little luck there.
Is there an existing procedure for this? Document? YouTube video? Anything to help me get through this?
Thanks,
Doug.
Exact BookStack Version
v21.05.3
Log Content
No response
PHP Version
7.4
Hosting Environment
AWS Marketplace AMI (Ubuntu 20.04)
@ssddanbrown commented on GitHub (Aug 3, 2022):
Hi @dzitzels1,
To be honest I have not control or idea of setup for these Intuz instances, and I have called them out before on twitter for being out of date.
Do you have terminal access to these systems?
If so, Does a
/var/www/bookstackdirectory exist and does it contain anartisanfile?@dzitzels1 commented on GitHub (Aug 3, 2022):
Yes all the way up to I don’t know about the artisan file. I will need to
check when I get back to my desk.
Thanks for being so quick on the response.
Doug.
On Wed, Aug 3, 2022 at 12:19 Dan Brown @.***> wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@ssddanbrown commented on GitHub (Aug 3, 2022):
@dzitzels1 Happy to help.
If you do find an artisan file there, it likely means that's the location of your BookStack install.
In that case, you might be able to go into that directory (
cd /var/www/bookstack) and run our normal update commands:https://www.bookstackapp.com/docs/admin/updates/
I'd advise backing up first, so snapshot the instance or whatever options you have in AWS before attempting.
Might need to backup the database aswell if not on the same machine.
If any of the update commands fail, just let me know.
If the
composercommand fails, don't be tempted to install thecomposersystem package, that often creates more issues.@dzitzels1 commented on GitHub (Aug 3, 2022):
Hi Dan,
I did find the artisan file in that folder. Fortunately, this is a dev
instance - I have a dev and a prod instance but the prod instance is
roughly identical.
I will try the update commands on my dev instance to see what happens and
where it fails.
I want to get this right on the dev side so the procedure is nice and clean
for the prod side.
I will let you know how it goes.
Thanks,
Doug.
On Wed, Aug 3, 2022 at 12:49 PM Dan Brown @.***> wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@dzitzels1 commented on GitHub (Aug 3, 2022):
Hi Dan,
So the first place the upgrade is failing is that the install folder is not
a git repository and does not have a .git folder therefore it cannot do a
proper pull of the release branch.
Unfortunately, I am relatively new to git because I come from a hardware
infrastructure background so I am poking around but I am not quite sure
what to do here. Is there something easy that I might be missing?
Doug.
On Wed, Aug 3, 2022 at 1:37 PM Doug Zitzelsberger @.***>
wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@ssddanbrown commented on GitHub (Aug 4, 2022):
Darn, that does makes things a bit more difficult. Pretty sure it'd be possible to setup git within the existing folder but it's not something I do often, will need to test things out to find the smoothest approach. Will play around with ideas tomorrow (Almost midnight here) and get back to you.
@ssddanbrown commented on GitHub (Aug 4, 2022):
Alrighty, Just had a test and the below seems to convert an existing non-git setup to a git setup.
Of course, backup/snapshot before for safety.
All of these should be ran within your
/var/www/bookstackdirectory. Could be further issues if there are other unexpected changes.Lines starting with hashes are comments only.
After the last command, you should be able to continue the update process as normal.
@dzitzels1 commented on GitHub (Aug 4, 2022):
Thanks Dan! I will try this out this morning.
Doug.
On Thu, Aug 4, 2022 at 3:31 AM Dan Brown @.***> wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@dzitzels1 commented on GitHub (Aug 4, 2022):
Hi Dan,
So since this is on AWS, I just created a throwaway instance to try this
out and it worked perfectly! Thank you!
Next, I will be trying it on my real dev instance with our customizations
and assuming that works well (which I expect), it will be onto the prod
instance.
Thanks so much for your help!
Doug.
On Thu, Aug 4, 2022 at 9:25 AM Doug Zitzelsberger @.***>
wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@dzitzels1 commented on GitHub (Aug 4, 2022):
Hi Dan,
One more question for you if you will please - upgrading from 21.05.3, that
far back, are there any database schema changes or any other gotchas like
that where I need to be aware and take specific action? It does not seem
so in the tests that I have run but I thought I would ask before I get to
production.
Thanks,
Doug.
On Thu, Aug 4, 2022 at 9:52 AM Doug Zitzelsberger @.***>
wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@ssddanbrown commented on GitHub (Aug 4, 2022):
Hi @dzitzels1,
Database changes should generally be handled by the application itself when running the
php artisan migrateupdate step.Only in erroneous situation should you need to to manually be altering the database. Just be sure to record any errors that arise when originally running the upgrade commands.
Otherwise, It's wise to read through the relevant "Version Specific Instructions" on our updates page:
https://www.bookstackapp.com/docs/admin/updates/#version-specific-instructions
I ensure that anything that could be considered a breaking change or a security issue is listed there. The vast majority of them only apply to specific scenarios or features. Sometimes we update the requirements (Such as the minimum version of PHP required) which can be more wide-spread. You listed PHP 7.4 in your original post, which is still currently supported, but we will be making the minimum PHP 8.0 later this year, just a fore-warning.
One that you might come across is as change to the minimum version of composer (PHP dependency manager), as listed in the "Updating to v21.12.3 or higher" part of the updates page linked above.This part of the docs detail how to handle this.
@dzitzels1 commented on GitHub (Aug 6, 2022):
Hi Dan,
I realize that you are most likely asleep now so this should hopefully
greet you as a pleasant surprise in the morning.
With your guidance above, I was able to update my BookStack production
installation successfully. There were a few bumps and bruises along the
way but by and large they were of my own doing.
Hopefully going forward, this will be a much easier process. I plan to hit
the major versions that you release.
I want you to know that I do read the update notes pretty carefully and
they were spot on with what I encountered. I was probably overly concerned
that I had missed something - BookStack is a pretty big deal at our company
because it is our main wiki resource.
Thanks again for all of your help.
Doug.
On Thu, Aug 4, 2022 at 1:50 PM Dan Brown @.***> wrote:
--
Doug Zitzelsberger, AWS CCP
(801) 341-9157
@.***
https://www.certmetrics.com/amazon/public/badge.aspx?i=9&t=c&d=2020-01-06&ci=AWS01223108
@ssddanbrown commented on GitHub (Aug 7, 2022):
@dzitzels1 That's great to hear! Yeah, now that your instance is compatible with our updates process it should be relatively smooth sailing.
I'll therefore close this issue off.