Can't update to 0.28 #1534

Closed
opened 2026-02-05 01:10:42 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @nimmerdk on GitHub (Feb 14, 2020).

Hi,
I'm trying to update to 0.28 FROM 0.27.5 with the following commands:

git pull origin release && composer install && php artisan migrate

but keeps getting the following error:

error: Your local changes to the following files would be owerwritten by merge:

And then a long list of php-files, js-files and svg-files.

I haven't changed any of these files as far as I know.

What to do?

Originally created by @nimmerdk on GitHub (Feb 14, 2020). Hi, I'm trying to update to 0.28 FROM 0.27.5 with the following commands: `git pull origin release && composer install && php artisan migrate` but keeps getting the following error: > error: Your local changes to the following files would be owerwritten by merge: And then a long list of php-files, js-files and svg-files. I haven't changed any of these files as far as I know. What to do?
Author
Owner

@sunnybeats commented on GitHub (Feb 14, 2020):

I had the same issue.

After i did the backup like discriped Backup routine, i did a

git reset --hard

Before the update.

That worked fine for me and i didn‘t lose any of my configuration.

I don‘t know if its the best way but its simple and worked for me

@sunnybeats commented on GitHub (Feb 14, 2020): I had the same issue. After i did the backup like discriped Backup routine, i did a `git reset --hard ` Before the update. That worked fine for me and i didn‘t lose any of my configuration. I don‘t know if its the best way but its simple and worked for me
Author
Owner

@nimmerdk commented on GitHub (Feb 14, 2020):

I had the same issue.

After i did the backup like discriped Backup routine, i did a

git reset --hard

Before the update.

That worked fine for me and i didn‘t lose any of my configuration.

I don‘t know if its the best way but its simple and worked for me

I will try that and let you know if it works.

@nimmerdk commented on GitHub (Feb 14, 2020): > I had the same issue. > > After i did the backup like discriped Backup routine, i did a > > `git reset --hard ` > > Before the update. > > That worked fine for me and i didn‘t lose any of my configuration. > > I don‘t know if its the best way but its simple and worked for me I will try that and let you know if it works.
Author
Owner

@nimmerdk commented on GitHub (Feb 14, 2020):

Hmmm... it got a little bit longer, but now I get this:

[ErrorException]
file_put_contents(/var/www/html/BookStack/vendor/composer/installed.json):
failed to open stream: Permission denied

@nimmerdk commented on GitHub (Feb 14, 2020): Hmmm... it got a little bit longer, but now I get this: ``` [ErrorException] file_put_contents(/var/www/html/BookStack/vendor/composer/installed.json): failed to open stream: Permission denied ```
Author
Owner
@sunnybeats commented on GitHub (Feb 14, 2020): Maybe this helps: https://stackoverflow.com/questions/41212362/composer-file-put-contents-composer-json-failed-to-open-stream-permission
Author
Owner

@ssddanbrown commented on GitHub (Mar 3, 2020):

Did you manage to solve your issues @nimmerdk?

If not, looks like the user, that you're running composer as, does not have permission to the vendor directory. Happy to help further or I can close this if you have got things working or given up...

@ssddanbrown commented on GitHub (Mar 3, 2020): Did you manage to solve your issues @nimmerdk? If not, looks like the user, that you're running composer as, does not have permission to the `vendor` directory. Happy to help further or I can close this if you have got things working or given up...
Author
Owner

@nimmerdk commented on GitHub (Mar 4, 2020):

Not entirely as I'm still getting some errors. although it seems that my Bookstack eventually got updated.
But I managed to f*ck up my ubuntu machine so hard, that I have to start over, so I will be installing a fresh copy later today.

/nimmer

@nimmerdk commented on GitHub (Mar 4, 2020): Not entirely as I'm still getting some errors. although it seems that my Bookstack eventually got updated. But I managed to f*ck up my ubuntu machine so hard, that I have to start over, so I will be installing a fresh copy later today. /nimmer
Author
Owner

@ssddanbrown commented on GitHub (Jun 30, 2020):

Since it's been a few months I'll close this off.

@ssddanbrown commented on GitHub (Jun 30, 2020): Since it's been a few months I'll close this off.
Author
Owner

@Sx3 commented on GitHub (Jul 28, 2023):

I had the same issue.

After i did the backup like discriped Backup routine, i did a

git reset --hard

Before the update.

That worked fine for me and i didn‘t lose any of my configuration.

I don‘t know if its the best way but its simple and worked for me

Thanks it worked !

@Sx3 commented on GitHub (Jul 28, 2023): > I had the same issue. > > After i did the backup like discriped Backup routine, i did a > > `git reset --hard ` > > Before the update. > > That worked fine for me and i didn‘t lose any of my configuration. > > I don‘t know if its the best way but its simple and worked for me Thanks it worked !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1534