Can't read or write jekyll .md files in repo on a self-hosted gitlab instance

Hi there, thanks a lot for your all the work Netlify is doing to build a better web :slight_smile:

I’m trying to implement Netlify CMS for a Jekyll static site whom repo is on a self-hosted gitlab instance.

I’ve followed your documentation. Created an app in gitlab on instance level with “api” permission.
When I go on mywebsite/admin/ the login screen shows, it seems to go smooth and I get to the CMS dashboard.

But every collection is empty. I thought it came from my config.yml but it seems right. Then I checked the browser console on the admin page and there it is :

failed to load file from GitLab: _data/nav.yml implementation.js:42:16
API_ERROR: 
    cms %5E2.0.0/dist/netlify-cms.js:51
    cms %5E2.0.0/dist/netlify-cms.js:51
    cms %5E2.0.0/dist/netlify-cms.js:208
entries.js:882:14
    persistEntry entries.js:882

It says a similar message for every static file I point to. It doesn’t write any error for folders, although they look empty.

Then I tried to create a author and I get that error in the console :

API_ERROR:
cms %5E2.0.0/dist/netlify-cms.js:51
cms %5E2.0.0/dist/netlify-cms.js:51
cms %5E2.0.0/dist/netlify-cms.js:208
[entries.js:882:14](webpack://NetlifyCms/.-core/dist/esm/actions/entries.js)
persistEntry entries.js:882

So it looks like there’s a permission or access issue somewhere.

My config.yml backend section looks like that :

backend:
 name: gitlab
 repo: indiehost/website
 branch: add-blog-and-cms
 auth_type: implicit # Required for implicit grant
 app_id: xxxxxx
 api_root: https://git.indie.host/api/v4
 base_url: https://git.indie.host
 auth_endpoint: oauth/authorize
 site_domain: https://web2.beta.liiib.re

For info, I’m working on “add-blog-and-cms” branch for the moment and will merge when everythink working to master. authors, post and all are on ‘add-blog-and-cms’ branch at the moment.

In Gitlab, the app is instance-level and has settings:
URI: https://web2.beta.liiib.re/admin/
Trusted : true
Confidential : true
Scopes : api

I have no more idea to make it work :confused: Please help :slight_smile:

Hi there, so it appears that it comes from the browser. I’m on FF and when I try in a private tab it works. Same in Safari… Maybe an extension is breaking the script, I don’t know. I close this ticket then :slight_smile:

1 Like