Posts

Showing posts with the label json

Reinstall docker-ce after a purge and config dir deleted.

I purged the docker-ce package and deleted the /etc/docker directory and It brings me trouble... I cannot reinstall it. Every time I try to reinstall with the following command: sudo apt install --reinstall docker-ce ... Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for detail s. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)   Drop-In: /etc/systemd/system/docker.service.d            └─docker.conf    Active: activating (auto-restart) (Result: exit-code) since 토 2018-02-17 22:54:41 KST; 5ms ago      Docs: https://docs.docker.com   Process: 28307 ExecStart=/usr/bin/dockerd --config-file=/etc/docker/daemon.json (code=exited, status=1/FAILURE)  Main PID: ...

Open edX - Course about page not found on LMS and how to fix

If you click on a course from the LMS and it says " Page not foun d", your properly should check this variable in /edx/app/edxapp/lms.env.json and cms.env.json: PREVIEW_LMS_BASE It should not be the same with LMS_BASE . For example: your LMS_BASE is "yourdomain.com", so the CMS_BASE should be something like "preview.yourdomain.com" not "yourdomain.com". So check and change the variable if you got page not found error, then restart your stack, everything will be back to normal.

Get user details by email address in Redmine

In Redmine, you can use the REST API to get user details by her email address as following: GET http://your-redmine-url/users.json?name=myuser@email.com Note: you have to use an account that has administrative privileges to access that information. The results will look like this: {"users":[{"id":336,"last_login_on":"2017-03-03T03:53:35Z","login":"myuser","mail":"myuser@email.com","lastname":"Super","firstname":"Genius","created_on":"2016-06-27T00:32:00Z"}],"offset":0,"limit":25,"total_count":1}

Google Apps Script - Using Google Script to create issues in Redmine via REST API

Image
This is just another blog post about manipulating the Redmine's REST API. In the previous article , I showed you how to have fun with python-redmine, this time it comes Google Apps Script. You can use the following snippet to create issue in Redmine: Have more fun!

edX-platform - Change site name used in account activation email

The default configuration for SITE_NAME used in account activation email of edx-platform can be change by modify the following file: # nano /edx/app/edxapp/lms.env.json ... "SITE_NAME": "your.custom.domain", ... Restart the LMS/CMS service: # /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp: # /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp_worker: