felixrieseberg / Ghost-Azure

:ghost: Install Ghost on Azure with a simple click
MIT License
129 stars 210 forks source link

Update via sync fail #48

Closed maxpavlov closed 8 years ago

maxpavlov commented 8 years ago

Hello.

I've deployed ghost initially via Deploy to Azure button in the readme.md title. I've worked fine ever since, adding only content, not modifying the sources.

I've went into an old manage.azure console and clicked "Sync" as the Update section of readme implies.

Deployment went on for about 15 minutes and then failed. Here is a deployment log:

ommand: "D:\home\site\deployments\tools\deploy.cmd" Handling node.js deployment. KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot' Copying file: 'azuredeploy.json' Copying file: 'config.example.js' Copying file: 'config.js' Copying file: 'Gruntfile.js' Copying file: 'iisnode.yml' Copying file: 'index.js' Copying file: 'npm-shrinkwrap.json' Copying file: 'package.json' Copying file: 'README.md' Copying file: 'content\themes\casper\author.hbs' Copying file: 'content\themes\casper\default.hbs' Copying file: 'content\themes\casper\index.hbs' Copying file: 'content\themes\casper\package.json' Copying file: 'content\themes\casper\page.hbs' Copying file: 'content\themes\casper\post.hbs' Copying file: 'content\themes\casper\tag.hbs' Copying file: 'content\themes\casper\assets\css\screen.css' Copying file: 'content\themes\casper\partials\loop.hbs' Copying file: 'content\themes\casper\partials\navigation.hbs' Copying file: 'core\built\assets\ghost.css' Copying file: 'core\built\assets\ghost.js' Copying file: 'core\built\assets\ghost.min.css' Copying file: 'core\built\assets\ghost.min.js' Copying file: 'core\built\assets\tests.js' Copying file: 'core\built\assets\vendor.css' Copying file: 'core\built\assets\vendor.js' Copying file: 'core\built\assets\vendor.min.css' Copying file: 'core\built\assets\vendor.min.js' Copying file: 'core\built\assets\codemirror\codemirror.css' Copying file: 'core\built\assets\codemirror\codemirror.js' Copying file: 'core\built\assets\fonts\ghosticons.eot' Copying file: 'core\built\assets\fonts\ghosticons.svg' Copying file: 'core\built\assets\fonts\ghosticons.ttf' Copying file: 'core\built\assets\fonts\ghosticons.woff' Copying file: 'core\built\assets\img\slackicon.png' Deleting file: 'core\built\assets\img\contributors\bhops' Deleting file: 'core\built\assets\img\contributors\cameronviner' Deleting file: 'core\built\assets\img\contributors\garyc40' Deleting file: 'core\built\assets\img\contributors\halfdan' Deleting file: 'core\built\assets\img\contributors\jamesslock' Deleting file: 'core\built\assets\img\contributors\jgillich' Deleting file: 'core\built\assets\img\contributors\JohnONolan' Deleting file: 'core\built\assets\img\contributors\jtwebman' Deleting file: 'core\built\assets\img\contributors\kevinkucharczyk' Deleting file: 'core\built\assets\img\contributors\mixonic' Deleting file: 'core\built\assets\img\contributors\novaugust' Deleting file: 'core\built\assets\img\contributors\rfpe' Copying file: 'core\built\assets\img\contributors\AileenCGN' Copying file: 'core\built\assets\img\contributors\cobbspur' Omitting next output lines... Node.js versions available on the platform are: 0.6.20, 0.8.2, 0.8.19, 0.8.26, 0.8.27, 0.8.28, 0.10.5, 0.10.18, 0.10.21, 0.10.24, 0.10.26, 0.10.28, 0.10.29, 0.10.31, 0.10.32, 0.10.40, 0.12.0, 0.12.2, 0.12.3, 0.12.6, 4.0.0, 4.1.0, 4.1.2, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.3.0, 4.3.2, 4.4.0, 4.4.1, 4.4.6, 4.4.7, 5.0.0, 5.1.1, 5.3.0, 5.4.0, 5.5.0, 5.6.0, 5.7.0, 5.7.1, 5.8.0, 5.9.1, 6.0.0, 6.1.0, 6.2.2, 6.3.0. Selected node.js version 4.4.7. Use package.json file to choose a different version. Selected npm version 2.15.8 Updating iisnode.yml at D:\home\site\wwwroot\iisnode.yml

ghost@0.9.0 preinstall D:\home\site\wwwroot node core/server/utils/npm/preinstall.js jsonpath@0.2.6 postinstall D:\home\site\wwwroot\node_modules\jsonpath node lib/aesprim.js > generated/aesprim-browser.js npm ERR! Windows_NT 6.2.9200 npm ERR! argv "D:\Program Files (x86)\nodejs\4.4.7\node.exe" "D:\Program Files (x86)\npm\2.15.8\node_modules\npm\bin\npm-cli.js" "install" "--production" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! path D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall unlink npm ERR! Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' npm ERR! at Error (native) npm ERR! { [Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node'] npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'unlink', npm ERR! path: 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node'] npm ERR! error rolling back errno: -4048, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back syscall: 'unlink', npm ERR! error rolling back path: 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' } npm ERR! Please include the following file with any support request: Failed exitCode=-4048, command="D:\Program Files (x86)\nodejs\4.4.7\node.exe" "D:\Program Files (x86)\npm\2.15.8\node_modules\npm\bin\npm-cli.js" install --production npm ERR! D:\home\site\wwwroot\npm-debug.log An error has occurred during web site deployment. npm ERR! Windows_NT 6.2.9200\r\nnpm ERR! argv "D:\Program Files (x86)\nodejs\4.4.7\node.exe" "D:\Program Files (x86)\npm\2.15.8\node_modules\npm\bin\npm-cli.js" "install" "--production"\r\nnpm ERR! node v4.4.7\r\nnpm ERR! npm v2.15.8\r\nnpm ERR! path D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node\r\nnpm ERR! code EPERM\r\nnpm ERR! errno -4048\r\nnpm ERR! syscall unlink\r\n\r\nnpm ERR! Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node'\r\nnpm ERR! at Error (native)\r\nnpm ERR! { [Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node']\r\nnpm ERR! errno: -4048,\r\nnpm ERR! code: 'EPERM',\r\nnpm ERR! syscall: 'unlink',\r\nnpm ERR! path: 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\nnpm ERR! error rolling back Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node'\r\nnpm ERR! error rolling back at Error (native)\r\nnpm ERR! error rolling back { [Error: EPERM: operation not permitted, unlink 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node']\r\nnpm ERR! error rolling back errno: -4048,\r\nnpm ERR! error rolling back code: 'EPERM',\r\nnpm ERR! error rolling back syscall: 'unlink',\r\nnpm ERR! error rolling back path: 'D:\home\site\wwwroot\node_modules\sqlite3\lib\binding\node-v11-win32-ia32\node_sqlite3.node' }\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR! D:\home\site\wwwroot\npm-debug.log\r\nD:\Program Files (x86)\SiteExtensions\Kudu\57.50815.2378\bin\Scripts\starter.cmd "D:\home\site\deployments\tools\deploy.cmd"

Thank you for help in advance.

maxpavlov commented 8 years ago

Ok, running the same deployment again allowed me to upgrade successfully.