Skip to content
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

Updates are not possible ... #24

Closed
ChrisGitIt opened this issue Sep 5, 2016 · 5 comments
Closed

Updates are not possible ... #24

ChrisGitIt opened this issue Sep 5, 2016 · 5 comments

Comments

@ChrisGitIt
Copy link

Hi all,

with this config, i'm not able to update Shopware.

I tried to reproduce this problem with a clean and fresh install (v 5.1.6) and want to update to 5.2.6 (also tried a while ago to update to 5.2.1).

The update stops at http://domain.com/recovery/update/index.php/dbmigration
Showing:

Error
Received an error message.
URL: unpack?offset=0&total=0
Message: Not Found

Please try to fix this error and restart the update.
Response
404 Page Not Found
The page you are looking for could not be found. Check the address bar to ensure your URL is spelled correctly. If all else fails, you can visit our home page at the link below.

I think its because the nginx config does not take the following URLs into account:
http://domain.com/recovery/update/index.php/unpack?offset=0&total=0

I tried to change the jquery update script to get URLs like this (removed the "index.php"):
http://domain.com/recovery/update/unpack?offset=0&total=0

But this also does not work. I think its because the PHP Update Script uses app.map("/unpack").

I also tried several nginx changes but none of them works. Any help is greatly appreciate!

Greets,

Chris

@Gargamil
Copy link

Gargamil commented Oct 3, 2016

+1

@ChrisGitIt
Copy link
Author

Hi Gargamil,

i think it helps a lot to replace:

location /recovery/update {
    index index.php;
    try_files $uri /recovery/update/index.php?$is_args$args;
}

with:

location /recovery/update/ {
                location /recovery/update/assets {
                }
                if (!-e $request_filename){
                        rewrite . /recovery/update/index.php last;
                }
}

i found this somewhere along the internet and it solves my issue, but i'm not sure why there is a difference ...

@Gargamil
Copy link

Gargamil commented Oct 3, 2016

Yes, found this too and it works!
Maybe the config should be updated..

@lhwparis
Copy link
Contributor

+1

@ChristopherDosin
Copy link

@ChrisGitIt Yeah that did the trick for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants