Strange Error when running setup:upgrade after module installation The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento -site not opening after CLI -installationWhy is the file permissions check failing?Apply code changes in module without removing static dataGet an error when deploy magento2Error 500 after magento migrationMagento 2.3: Installation time getting Fatal errorMagento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessedMagento2 : Why static content isn't generated properly?.lib-url-check is undefined Magento 2.3 static content deploy error
University's motivation for having tenure-track positions
What's the point in a preamp?
How did passengers keep warm on sail ships?
What are these Gizmos at Izaña Atmospheric Research Center in Spain?
Can a novice safely splice in wire to lengthen 5V charging cable?
What is special about square numbers here?
What was the last x86 CPU that did not have the x87 floating-point unit built in?
Are my PIs rude or am I just being too sensitive?
Did the new image of black hole confirm the general theory of relativity?
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Problems with Ubuntu mount /tmp
How can I define good in a religion that claims no moral authority?
What do you call a plan that's an alternative plan in case your initial plan fails?
Finding the path in a graph from A to B then back to A with a minimum of shared edges
Is there a writing software that you can sort scenes like slides in PowerPoint?
Working through the single responsibility principle (SRP) in Python when calls are expensive
Semisimplicity of the category of coherent sheaves?
Am I ethically obligated to go into work on an off day if the reason is sudden?
Did God make two great lights or did He make the great light two?
First use of “packing” as in carrying a gun
Why did all the guest students take carriages to the Yule Ball?
Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?
What can I do if neighbor is blocking my solar panels intentionally?
He got a vote 80% that of Emmanuel Macron’s
Strange Error when running setup:upgrade after module installation
The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Magento -site not opening after CLI -installationWhy is the file permissions check failing?Apply code changes in module without removing static dataGet an error when deploy magento2Error 500 after magento migrationMagento 2.3: Installation time getting Fatal errorMagento2 Getting error as variable @baseUrl is undefined in file /var/view_preprocessedMagento2 : Why static content isn't generated properly?.lib-url-check is undefined Magento 2.3 static content deploy error
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade.
[UnexpectedValueException]
Unable to retrieve deployment version of static files from the file system.
[MagentoFrameworkExceptionFileSystemException]
Cannot read contents from file "/var/www/vanillamage2/public_html/pub/stati
c/deployed_version.txt" Warning!file_get_contents(/var/www/vanillamage2/pub
lic_html/pub/static/deployed_version.txt): failed to open stream: No such f
ile or directory
I have tried this on 2 seperate server and 3 seperate installation of Magento 2.1.7 however recieve the same issue each time. I have seen similar issues here:
https://github.com/magento/magento2/issues/6426
and
http://olivernam.com/magento2-frontpage-error-after-deploying-static-files
So have tried many solutions mentioned here including redeploying static files , resetting permissions, removing static content, placing empty deployment_version.txt ect but without any luck. I have even set that file to 777 and has correct owner and am pretty sure that is not the issue as my solutions below wouldn't change the permissions of this file.
There are only 2 ways I can get the setup:upgrade to run.
- Disabling the plugin.
- Rename app/code/Wyomind/SimpleGoogleShopping/Setup/UpgradeData.php to UpgradeData.bak
Doing either of these allow 'setup:upgrade' to run however Wyomind are suggesting this is a problem on my side and not their plugin and so are unwilling to help.
Is there anything anyone can suggest that may be causing this issue?
magento2 module static-content static-content-deploy
add a comment |
I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade.
[UnexpectedValueException]
Unable to retrieve deployment version of static files from the file system.
[MagentoFrameworkExceptionFileSystemException]
Cannot read contents from file "/var/www/vanillamage2/public_html/pub/stati
c/deployed_version.txt" Warning!file_get_contents(/var/www/vanillamage2/pub
lic_html/pub/static/deployed_version.txt): failed to open stream: No such f
ile or directory
I have tried this on 2 seperate server and 3 seperate installation of Magento 2.1.7 however recieve the same issue each time. I have seen similar issues here:
https://github.com/magento/magento2/issues/6426
and
http://olivernam.com/magento2-frontpage-error-after-deploying-static-files
So have tried many solutions mentioned here including redeploying static files , resetting permissions, removing static content, placing empty deployment_version.txt ect but without any luck. I have even set that file to 777 and has correct owner and am pretty sure that is not the issue as my solutions below wouldn't change the permissions of this file.
There are only 2 ways I can get the setup:upgrade to run.
- Disabling the plugin.
- Rename app/code/Wyomind/SimpleGoogleShopping/Setup/UpgradeData.php to UpgradeData.bak
Doing either of these allow 'setup:upgrade' to run however Wyomind are suggesting this is a problem on my side and not their plugin and so are unwilling to help.
Is there anything anyone can suggest that may be causing this issue?
magento2 module static-content static-content-deploy
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17
add a comment |
I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade.
[UnexpectedValueException]
Unable to retrieve deployment version of static files from the file system.
[MagentoFrameworkExceptionFileSystemException]
Cannot read contents from file "/var/www/vanillamage2/public_html/pub/stati
c/deployed_version.txt" Warning!file_get_contents(/var/www/vanillamage2/pub
lic_html/pub/static/deployed_version.txt): failed to open stream: No such f
ile or directory
I have tried this on 2 seperate server and 3 seperate installation of Magento 2.1.7 however recieve the same issue each time. I have seen similar issues here:
https://github.com/magento/magento2/issues/6426
and
http://olivernam.com/magento2-frontpage-error-after-deploying-static-files
So have tried many solutions mentioned here including redeploying static files , resetting permissions, removing static content, placing empty deployment_version.txt ect but without any luck. I have even set that file to 777 and has correct owner and am pretty sure that is not the issue as my solutions below wouldn't change the permissions of this file.
There are only 2 ways I can get the setup:upgrade to run.
- Disabling the plugin.
- Rename app/code/Wyomind/SimpleGoogleShopping/Setup/UpgradeData.php to UpgradeData.bak
Doing either of these allow 'setup:upgrade' to run however Wyomind are suggesting this is a problem on my side and not their plugin and so are unwilling to help.
Is there anything anyone can suggest that may be causing this issue?
magento2 module static-content static-content-deploy
I have tried to install wyomind google shopping and have the following error when running bin/magento setup:upgrade.
[UnexpectedValueException]
Unable to retrieve deployment version of static files from the file system.
[MagentoFrameworkExceptionFileSystemException]
Cannot read contents from file "/var/www/vanillamage2/public_html/pub/stati
c/deployed_version.txt" Warning!file_get_contents(/var/www/vanillamage2/pub
lic_html/pub/static/deployed_version.txt): failed to open stream: No such f
ile or directory
I have tried this on 2 seperate server and 3 seperate installation of Magento 2.1.7 however recieve the same issue each time. I have seen similar issues here:
https://github.com/magento/magento2/issues/6426
and
http://olivernam.com/magento2-frontpage-error-after-deploying-static-files
So have tried many solutions mentioned here including redeploying static files , resetting permissions, removing static content, placing empty deployment_version.txt ect but without any luck. I have even set that file to 777 and has correct owner and am pretty sure that is not the issue as my solutions below wouldn't change the permissions of this file.
There are only 2 ways I can get the setup:upgrade to run.
- Disabling the plugin.
- Rename app/code/Wyomind/SimpleGoogleShopping/Setup/UpgradeData.php to UpgradeData.bak
Doing either of these allow 'setup:upgrade' to run however Wyomind are suggesting this is a problem on my side and not their plugin and so are unwilling to help.
Is there anything anyone can suggest that may be causing this issue?
magento2 module static-content static-content-deploy
magento2 module static-content static-content-deploy
edited Jun 12 '17 at 10:17
harri
asked Jun 12 '17 at 10:07
harriharri
3,09111657
3,09111657
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17
add a comment |
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17
add a comment |
6 Answers
6
active
oldest
votes
Need to update in Database core_config_data table,
If record (path field value = 'dev/static/sign'
) exist in core_config_data
table
UPDATE core_config_data SET value = 0 WHERE path = 'dev/static/sign'
If record not exist then run below query to Insert record,
INSERT INTO core_config_data VALUES (null, 'default' , 0, 'dev/static/sign', 0);
After that run your command
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
add a comment |
In my own case, I ran php bin/magento setup:static-content:deploy and the error disappeared.
add a comment |
The solution from github is working for me. https://github.com/magento/magento2/issues/6426#issuecomment-243879287
you could just create empty file in following path: pub/static/deployed_version.txt
then run static content deploy
php bin/magento setup:static-content:deploy
add a comment |
It seems to have nothing to do with the google module. It can happen after any deployment; especially if you are dealing with Magento in production
mode.
Running bin/magento setup:upgrade
removes content of the generated
directory. This is fine in development
mode, because the contents of the generated
directory are generated dynamically. But in production
mode, the generated
directory is neither generated dynamically, nor automatically. This means, it is necessary to trigger the generation of the content of the generated
directory manually:
bin/magento setup:static-content:deploy en_GB en_US en_AU
(Hint: All locales of your installation need to be added)
This is the default way how to solve it. But in some cases, you might want to keep the content of your generated
directory. Maybe, because its contents did not change during the deployment. Maybe, because you have generated its contents in another environment or by a deployment pipeline, and want to just deploy it to the current server via copying the directory.
You still might need to run bin/magento setup:upgrade
in such a case, but you would not want it to remove anything from the generated
directory. For this purpose, the smart Magento developers have added the keep-generated
flag:
bin/magento setup:upgrade --keep-generated
add a comment |
This worked for me:
php bin/magento setup:static-content:deploy -ea_php 72
( -ea_php 72 is used to force th use of PHP version 7.2, because my server inherit is 7.0.32 )
add a comment |
On Magento Cloud run by ssh:
vendor/magento/ece-tools/bin/ece-tools deploy
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f178565%2fstrange-error-when-running-setupupgrade-after-module-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Need to update in Database core_config_data table,
If record (path field value = 'dev/static/sign'
) exist in core_config_data
table
UPDATE core_config_data SET value = 0 WHERE path = 'dev/static/sign'
If record not exist then run below query to Insert record,
INSERT INTO core_config_data VALUES (null, 'default' , 0, 'dev/static/sign', 0);
After that run your command
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
add a comment |
Need to update in Database core_config_data table,
If record (path field value = 'dev/static/sign'
) exist in core_config_data
table
UPDATE core_config_data SET value = 0 WHERE path = 'dev/static/sign'
If record not exist then run below query to Insert record,
INSERT INTO core_config_data VALUES (null, 'default' , 0, 'dev/static/sign', 0);
After that run your command
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
add a comment |
Need to update in Database core_config_data table,
If record (path field value = 'dev/static/sign'
) exist in core_config_data
table
UPDATE core_config_data SET value = 0 WHERE path = 'dev/static/sign'
If record not exist then run below query to Insert record,
INSERT INTO core_config_data VALUES (null, 'default' , 0, 'dev/static/sign', 0);
After that run your command
Need to update in Database core_config_data table,
If record (path field value = 'dev/static/sign'
) exist in core_config_data
table
UPDATE core_config_data SET value = 0 WHERE path = 'dev/static/sign'
If record not exist then run below query to Insert record,
INSERT INTO core_config_data VALUES (null, 'default' , 0, 'dev/static/sign', 0);
After that run your command
edited Jun 13 '17 at 6:51
sv3n
9,95662557
9,95662557
answered Jun 12 '17 at 11:25
Mohammad Rashid HussainMohammad Rashid Hussain
445310
445310
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
add a comment |
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
4
4
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
This is maybe more of a work around is signing static files needed?
– harri
Jun 12 '17 at 13:22
2
2
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
This does however work seems like something going wrong with signing static files here.
– harri
Jun 12 '17 at 13:32
add a comment |
In my own case, I ran php bin/magento setup:static-content:deploy and the error disappeared.
add a comment |
In my own case, I ran php bin/magento setup:static-content:deploy and the error disappeared.
add a comment |
In my own case, I ran php bin/magento setup:static-content:deploy and the error disappeared.
In my own case, I ran php bin/magento setup:static-content:deploy and the error disappeared.
answered Aug 27 '18 at 7:58
Kunsal AjayKunsal Ajay
736
736
add a comment |
add a comment |
The solution from github is working for me. https://github.com/magento/magento2/issues/6426#issuecomment-243879287
you could just create empty file in following path: pub/static/deployed_version.txt
then run static content deploy
php bin/magento setup:static-content:deploy
add a comment |
The solution from github is working for me. https://github.com/magento/magento2/issues/6426#issuecomment-243879287
you could just create empty file in following path: pub/static/deployed_version.txt
then run static content deploy
php bin/magento setup:static-content:deploy
add a comment |
The solution from github is working for me. https://github.com/magento/magento2/issues/6426#issuecomment-243879287
you could just create empty file in following path: pub/static/deployed_version.txt
then run static content deploy
php bin/magento setup:static-content:deploy
The solution from github is working for me. https://github.com/magento/magento2/issues/6426#issuecomment-243879287
you could just create empty file in following path: pub/static/deployed_version.txt
then run static content deploy
php bin/magento setup:static-content:deploy
answered Nov 4 '18 at 23:15
user1506075user1506075
301214
301214
add a comment |
add a comment |
It seems to have nothing to do with the google module. It can happen after any deployment; especially if you are dealing with Magento in production
mode.
Running bin/magento setup:upgrade
removes content of the generated
directory. This is fine in development
mode, because the contents of the generated
directory are generated dynamically. But in production
mode, the generated
directory is neither generated dynamically, nor automatically. This means, it is necessary to trigger the generation of the content of the generated
directory manually:
bin/magento setup:static-content:deploy en_GB en_US en_AU
(Hint: All locales of your installation need to be added)
This is the default way how to solve it. But in some cases, you might want to keep the content of your generated
directory. Maybe, because its contents did not change during the deployment. Maybe, because you have generated its contents in another environment or by a deployment pipeline, and want to just deploy it to the current server via copying the directory.
You still might need to run bin/magento setup:upgrade
in such a case, but you would not want it to remove anything from the generated
directory. For this purpose, the smart Magento developers have added the keep-generated
flag:
bin/magento setup:upgrade --keep-generated
add a comment |
It seems to have nothing to do with the google module. It can happen after any deployment; especially if you are dealing with Magento in production
mode.
Running bin/magento setup:upgrade
removes content of the generated
directory. This is fine in development
mode, because the contents of the generated
directory are generated dynamically. But in production
mode, the generated
directory is neither generated dynamically, nor automatically. This means, it is necessary to trigger the generation of the content of the generated
directory manually:
bin/magento setup:static-content:deploy en_GB en_US en_AU
(Hint: All locales of your installation need to be added)
This is the default way how to solve it. But in some cases, you might want to keep the content of your generated
directory. Maybe, because its contents did not change during the deployment. Maybe, because you have generated its contents in another environment or by a deployment pipeline, and want to just deploy it to the current server via copying the directory.
You still might need to run bin/magento setup:upgrade
in such a case, but you would not want it to remove anything from the generated
directory. For this purpose, the smart Magento developers have added the keep-generated
flag:
bin/magento setup:upgrade --keep-generated
add a comment |
It seems to have nothing to do with the google module. It can happen after any deployment; especially if you are dealing with Magento in production
mode.
Running bin/magento setup:upgrade
removes content of the generated
directory. This is fine in development
mode, because the contents of the generated
directory are generated dynamically. But in production
mode, the generated
directory is neither generated dynamically, nor automatically. This means, it is necessary to trigger the generation of the content of the generated
directory manually:
bin/magento setup:static-content:deploy en_GB en_US en_AU
(Hint: All locales of your installation need to be added)
This is the default way how to solve it. But in some cases, you might want to keep the content of your generated
directory. Maybe, because its contents did not change during the deployment. Maybe, because you have generated its contents in another environment or by a deployment pipeline, and want to just deploy it to the current server via copying the directory.
You still might need to run bin/magento setup:upgrade
in such a case, but you would not want it to remove anything from the generated
directory. For this purpose, the smart Magento developers have added the keep-generated
flag:
bin/magento setup:upgrade --keep-generated
It seems to have nothing to do with the google module. It can happen after any deployment; especially if you are dealing with Magento in production
mode.
Running bin/magento setup:upgrade
removes content of the generated
directory. This is fine in development
mode, because the contents of the generated
directory are generated dynamically. But in production
mode, the generated
directory is neither generated dynamically, nor automatically. This means, it is necessary to trigger the generation of the content of the generated
directory manually:
bin/magento setup:static-content:deploy en_GB en_US en_AU
(Hint: All locales of your installation need to be added)
This is the default way how to solve it. But in some cases, you might want to keep the content of your generated
directory. Maybe, because its contents did not change during the deployment. Maybe, because you have generated its contents in another environment or by a deployment pipeline, and want to just deploy it to the current server via copying the directory.
You still might need to run bin/magento setup:upgrade
in such a case, but you would not want it to remove anything from the generated
directory. For this purpose, the smart Magento developers have added the keep-generated
flag:
bin/magento setup:upgrade --keep-generated
edited Oct 30 '18 at 2:52
answered Oct 30 '18 at 2:09
wherewhere
410212
410212
add a comment |
add a comment |
This worked for me:
php bin/magento setup:static-content:deploy -ea_php 72
( -ea_php 72 is used to force th use of PHP version 7.2, because my server inherit is 7.0.32 )
add a comment |
This worked for me:
php bin/magento setup:static-content:deploy -ea_php 72
( -ea_php 72 is used to force th use of PHP version 7.2, because my server inherit is 7.0.32 )
add a comment |
This worked for me:
php bin/magento setup:static-content:deploy -ea_php 72
( -ea_php 72 is used to force th use of PHP version 7.2, because my server inherit is 7.0.32 )
This worked for me:
php bin/magento setup:static-content:deploy -ea_php 72
( -ea_php 72 is used to force th use of PHP version 7.2, because my server inherit is 7.0.32 )
answered Dec 6 '18 at 10:34
AculineAculine
62
62
add a comment |
add a comment |
On Magento Cloud run by ssh:
vendor/magento/ece-tools/bin/ece-tools deploy
add a comment |
On Magento Cloud run by ssh:
vendor/magento/ece-tools/bin/ece-tools deploy
add a comment |
On Magento Cloud run by ssh:
vendor/magento/ece-tools/bin/ece-tools deploy
On Magento Cloud run by ssh:
vendor/magento/ece-tools/bin/ece-tools deploy
answered 2 days ago
Matias AnonizMatias Anoniz
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f178565%2fstrange-error-when-running-setupupgrade-after-module-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Ok thanks but unfortunately the error persists.
– harri
Jun 12 '17 at 10:17