-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I'm trying to get Spock to work all day today, but no luck. It just doesn't really push most of the time and throws lots of errors in the log file.
Basically it doesn't even push new collection entries, it logs errors about index.lock files that it thinks exist, but that aren't there when I check the /.git/ dir.
I am ignoring Asset events, as all assets are on S3, and before Spock was also throwing errors about not finding the asset files, this is my spock.yaml:
environments:
- production
git_push: true
git_username: Spock
git_email: spock@somewebsite.online
ignore_events:
- Statamic\Events\Data\AssetUploaded
- Statamic\Events\Data\AssetMoved
- Statamic\Events\Data\AssetDeleted
- Statamic\Events\Data\AssetFolderSaved
- Statamic\Events\Data\AssetFolderDeletedThere were some successful pushes, but it's unreliable at best, for a while now I wasn't able to get it to push anything, always logs like the ones below.
These logs are from adding a single new entry:
LEVEL CONTEXT DATE CONTENT
error production 2019-02-23 15:19:20 Spock command exited unsuccessfully:
Command: git -c "user.name=Spock" -c "user.email=spock@somewebsite.online" commit -m "Term saved by madsem"
Output:
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
site/content/collections/reviews/2019-02-23.tonalenergy-tuner-and-metronome.md
site/content/taxonomies/apps/music-audio.yaml
site/storage/addons/AppStoreApi/com.sonosaurus.tonalenergytuner.json
It took 2.03 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
nothing added to commit but untracked files present
Error: No error
error production 2019-02-23 15:19:20 Spock command exited unsuccessfully:
Command: git -c "user.name=Spock" -c "user.email=spock@somewebsite.online" commit -m "Entry saved by madsem"
Output:
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
site/content/collections/reviews/2019-02-23.tonalenergy-tuner-and-metronome.md
site/content/taxonomies/apps/music-audio.yaml
site/storage/addons/AppStoreApi/com.sonosaurus.tonalenergytuner.json
nothing added to commit but untracked files present
Error: No error
error production 2019-02-23 15:19:18 Spock command exited unsuccessfully:
Command: git -c "user.name=Spock" -c "user.email=spock@somewebsite.online" commit -m "Taxonomy saved by madsem"
Output: No output
Error:
fatal: Unable to create '/home/forge/somewebsite.online/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
error production 2019-02-23 15:19:17 Spock command exited unsuccessfully:
Command: git add /home/forge/somewebsite.online/site/content/collections/reviews/tonalenergy-tuner-and-metronome.md
Output: No output
Error:
fatal: Unable to create '/home/forge/somewebsite.online/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
error production 2019-02-23 15:19:17 Spock command exited unsuccessfully:
Command: git add /home/forge/somewebsite.online/site/content/collections/reviews/2019-02-23.tonalenergy-tuner-and-metronome.md
Output: No output
Error:
fatal: Unable to create '/home/forge/somewebsite.online/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
error production 2019-02-23 15:19:16 Spock command exited unsuccessfully:
Command: git add /home/forge/somewebsite.online/site/content/taxonomies/apps/music-audio.yaml
Output: No output
Error:
fatal: Unable to create '/home/forge/somewebsite.online/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Server: Ubuntu 18 / Nginx (Default Laravel Forge Setup)
Latest Statamic: 2.11.9
Spock 2.2.1
Repo Type: Private