presslabs / gitium

Keep all your WordPress code on git with a simple plugin and a repo
https://www.presslabs.com/code/gitium/
GNU General Public License v2.0
180 stars 31 forks source link

"Under Maintenance" page after manual commit from Status page #171

Open skazhikadyadya opened 6 years ago

skazhikadyadya commented 6 years ago

Hi. CentOS 7, PHP-FPM 7.2, nginx, latest version of gitium from github.

Result: Only "Under maintenance" page. After remove .maintenance file manually other seems no changes. Webhook works correctly.

How we can help me with that problem? Thank you!

skazhikadyadya commented 6 years ago

With enabled debug of site error log looks like that:

2018/07/18 01:36:50 [error] 12770#12770: *19575 FastCGI sent in stderr: "PHP message: '0 git \'status\' \'-s\' 2>&1'/n/n''/n/n
PHP message: '0 git \'rev-parse\' \'--abbrev-ref\' \'--symbolic-full-name\' \'@{u}\' 2>&1'/n/n'origin/master'/n/n
PHP message: '0 git \'fetch\' \'origin\' 2>&1'/n/n''/n/n
PHP message: '0 git \'status\' \'-s\' \'-b\' \'-u\' 2>&1'/n/n'## master...origin/master [behind 1]'/n/n
PHP message: '0 git \'rev-list\' \'master..origin/master\' \'--count\' 2>&1'/n/n'1'/n/n
PHP message: '0 git \'rev-list\' \'origin/master..master\' \'--count\' 2>&1'/n/n'0'/n/n
PHP message: '0 git \'diff\' \'-z\' \'--name-status\' \'master~0\' \'origin/master\' 2>&1'/n/n'M' . "\0" . 'tmmmp.php' . "\0" . ''/n/n
PHP message: '0 git \'config\' \'--get\' \'remote.origin.url\' 2>&1'/n/n'git@bitbucket.org:MyUser/my_project'/n/n
PHP message: '0 git \'rev-parse\' \'--abbrev-ref\' \'--symbolic-full-name\' \'@{u}\' 2>&1'/n/n'origin/master'/n/n
PHP message: '0 git \'rev-list\' \'@{u}..\' 2>&1'/n/n''/n/n
PHP message: '0 git \'rev-list\' \'..@{u}\' 2>&1'/n/n'06cb1a26d31a6db230953008bc081276c4782612'/n/n" while reading response header from upstream, client: 111.222.333.444, server: dev.myserver.com, request: "GET /wp-admin/admin.php?page=gitium/gitium.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9014", host: "dev.myserver.com", referrer: "https://dev.myserver.com/wp-admin/"
2018/07/18 01:37:31 [error] 12770#12770: *19575 FastCGI sent in stderr: "PHP message: '0 git \'add\' \'-n\' \'--all\' 2>&1'/n/n''/n/n
PHP message: '0 git \'add\' \'--all\' 2>&1'/n/n''/n/n
PHP message: '1 git \'commit\' \'-m\' \'Merged changes from https://dev.myserver/com on 07.18.2018\' \'--author\' \'My Name <my@emailcom>\' 2>&1'/n/n'On branch master
Your branch is behind \'origin/master\' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

nothing to commit, working tree clean'/n/n" while reading response header from upstream, client: 37.57.106.39, server: dev.myserver.com, request: "POST /wp-admin/admin.php?page=gitium%2Fgitium.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9014", host: "dev.myserver.com", referrer: "https://dev.myserver.com/wp-admin/admin.php?page=gitium%2Fgitium.php"
cgnunezbantics commented 6 years ago

Hello, same error here.

cgnunezbantics commented 6 years ago

Hello, I disable de maintenance mode. In the file function.php from plugin, i change the name of file .maintenance for .maintenance.no in lines 29 y 41. This works.