lexoyo
Request URL:
https://edit.keycas.cn/api/publication/?websiteId=2&hostingId=gitlab&storageId=gitlab
Request Method:
POST
Status Code:
500 Internal Server Error
Remote Address:
127.0.0.1:8902
Referrer Policy:
strict-origin-when-cross-origin
Error using self host gitlab
Ok i don't see anything strange
Could you check the server logs? In your terminal
lexoyo
I'm ready, listening to port 6805
Gitlab API error (1) 404 Not Found {
url: 'https://gitstone.keycas.cn/api/v4/projects/2/pages?access_token=57ebc544f2be82abd5d619be449dd5d4cf9772d84b138e7d27145bbba606feb7&',
method: 'GET',
body: null,
params: {},
text: '{"error":"404 Not Found"}',
message: 'Not Found'
}
API error 404 Gitlab API error (1): Not Found
Error publishing the website ApiError: Gitlab API error (1): Not Found
at GitlabHostingConnector1.callApi (/www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/plugins/server/plugins/server/GitlabConnector.js:290:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async GitlabHostingConnector1.getUrl (/www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/plugins/server/plugins/server/GitlabHostingConnector.js:147:26)
at async /www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/server/server/api/publicationApi.js:88:22 {
httpStatusCode: 404
Gitlab API error (2) - could not refresh token 400 Bad Request { message: 'invalid_grant' } refresh_token: 39292e1eac3c3df372eb708eb8713f2b2c26dfd0b59926f6c005736cd6179dee
API error 400 Gitlab API error (2): invalid_grant
Error in the user request ApiError: Gitlab API error (2): invalid_grant
at GitlabConnector1.callApi (/www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/plugins/server/plugins/server/GitlabConnector.js:284:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async GitlabConnector1.getUser (/www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/plugins/server/plugins/server/GitlabConnector.js:421:22)
at async routeUser (/www/wwwroot/KeyCAS/node_modules/@silexlabs/silex/dist/server/server/api/connectorApi.js:54:22) {
httpStatusCode: 400
} undefined
Gitlab API error (1) 404 Not Found {
url: 'https://gitstone.keycas.cn/api/v4/projects/2/pages?access_token=57ebc544f2be82abd5d619be449dd5d4cf9772d84b138e7d27145bbba606feb7&',
method: 'GET',
body: null,
params: {},
text: '{"error":"404 Not Found"}',
message: 'Not Found'
}
- Edited
I think something is wrong with my pipeline in my self host gitlab. maybe I didn't setup some variable correctly?
any thoughts on this, sir? : )
hello
I am not sure what is happening
Maybe try with gitlab.com first?
Also, I'm creating an account on your instance
can you share a screenshot of the OAuth app settings?
- Edited
oh noooo, I understand now: you didn't configure gitlab pages which is required for publication
Your instance:
My instance:
oh! I see, so once i enable pages function for my whole gitlab, it should also allow every project be be able to be published right? thanks alot for this! but i might come back to you if there is any trouble with setting up the pages, sorry about that, thank you for your help sir!
lexoyo
hi! so i've now enabled pages on my instance, and i think i still need to configure the CI pipeline stuff before i can publish right? is there like specific requirements on build image and stuff? or i can just follow any any tutorial online?
Also, when i try to configure pages for a project, is it just working for that particular project or does it cover all the project on my gitlab instance?
you have to understand what happens on v3.silex.me
there are 2 publication cases: with or without using a CMS
it generates 2 different .gitlab-ci.yml files, you should check them out both, it will answer your question
hi! so i've now enabled pages on my instance, and i think i still need to configure the CI pipeline stuff before i can publish right?
i'm not sure really, try without it
is there like specific requirements on build image and stuff? or i can just follow any any tutorial online?
check the gitlab-ci.yml files, it uses nodejs and that is all it needs
Also, when i try to configure pages for a project, is it just working for that particular project or does it cover all the project on my gitlab instance?
i'm not sure, you should test
lexoyo
It worked now! well partially... after I updated our instance to 17.2.1
Any way, there is still a small problem with the runner, is it ok to have a look at how you set up your runner on your instance? Thanks alot!
Giao_at_keycas
nevermind, I got it working!
But before we end this, I still have one last question on how to customize the ui of v3? like how do i change the text at the publication part, or how do i change the color from purple to maybe blue or something. Is that possible?
Also, again big thank to you! You've been super helpful!
Giao_at_keycas nevermind, I got it working!
Great !!!
Well done !
But before we end this, I still have one last question on how to customize the ui of v3? like how do i change the text at the publication part, or how do i change the color from purple to maybe blue or something. Is that possible?
There is no mechanism to change the texts or colors
That said I think the solutions are
- create a client side plugin which inserts js and css to modify behavior (with events) and the look and feel (then please contribute a tutorial / doc on how to do this)
- change the source code - not recommended because updates to new versions of Silex will be hazardous
- contribute to Silex a mechanism to change texts and colors, e.g. new options or a plugin - that may be the best way
Let me know what you think?
PS: if you feel like contributing, I would be very happy if you can add to the docs.silex.me what was missing when you were learning, also you can leave a review here and here too
lexoyo
Ok, I'll try to make a plugin for customization of the UI, and if i succeed, I will also make a tutorial for that or contribute that to the docs.
Also, I will try to formalize a tutorial on using v3 with self host gitlab and how to configure runner for the publication feature.