Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Dec 01 14:37
    JamesHow1ett synchronize #1621
  • Nov 30 05:27
    ZZYSonny closed #1627
  • Nov 29 11:49
    ZZYSonny opened #1627
  • Nov 26 13:21
    JamesHow1ett synchronize #1621
  • Nov 26 13:09
    JamesHow1ett synchronize #1621
  • Nov 26 10:29
    raphaeljolivet commented #1223
  • Nov 26 10:27
    raphaeljolivet commented #1223
  • Nov 21 19:41
    joachimmathes synchronize #1626
  • Nov 21 18:43
    joachimmathes opened #1626
  • Nov 19 15:55
    pichouk synchronize #1625
  • Nov 19 15:54
    pichouk opened #1625
  • Nov 19 12:40
    fujexo synchronize #1624
  • Nov 19 12:39
    fujexo opened #1624
  • Nov 19 10:57
    fujexo closed #1623
  • Nov 19 10:57
    fujexo edited #1623
  • Nov 19 10:55
    fujexo opened #1623
  • Nov 18 11:29
    koraa opened #1622
  • Nov 17 09:53
    roman-yatsenko commented #1599
  • Nov 17 09:52
    roman-yatsenko closed #1599
  • Nov 17 09:52
    roman-yatsenko opened #1621
Florian Sauer
@jackycute Hi Max, I am not sure how I can determine the version # that I am running. I got it from github. Is there a file that I can check that has the version # encoded? I am running this on Debian server and access it from Firefox under Ubuntu with Firefox being up to date.
Max Wu
@florihupf Could you pull and use the docker image instead? If you just want to use stable version, that's the best option. See the docs here: https://hackmd.io/c/codimd-documentation/%2Fs%2Fcodimd-docker-deployment
BTW, you can check the version in package.json but it can be changed anyways.
Florian Sauer
@jackycute Hi Max, I am using version 1.6.0. Do you recommend something newer? Could it be my apache proxy forwarding that might hose this? Thanks for the docker tip, I would like to use this only as the last resort ;-)
Florian Sauer
@jackycute Hi Max, I upgraded to latest 2.0.0 and the issue is gone. Honestly, I can't recall where I got the 1.6.0 from... Thanks for your time!
1 reply
Giuseppe Lo Presti

@glpatcern Hi, I don't think nabo.codimd.dev/hackmdio/hackmd:2.0.1 would require any authentication.

Thanks @jackycute, that's right: my docker (on CentOS) was too old, jumped to a newer one and I could fetch the 2.0.1 image. And here everything works as it should, so all right.

1 reply
Andreas Klöckner
If I set CMD_ALLOW_ANONYMOUS_EDITS to true, it appears that I automatically get anonymous guest notes as well. Since I'd prefer not to host a cesspool of undesirable copypasta from strangers, I'd like anonymous edits to only be possible on documents that a signed-in user has created previously (but not allow strangers to create new notes). Is this possible? I'm happy to file a feature request if appropriate. (For now, I've hacked the "New guest note" out of the UI on the front page, but that's a weak protection at best...)
1 reply
hey, i'm running a server built from 49de5f5bd6239354d98b424804951974588ab25e and the scrolling functionality in the editor seems to have regressed? In whatever version is running on hackmd.io you can scroll the editor down until the last line is at the top of the editor, in 49de5f5bd6239354d98b424804951974588ab25e you can only scroll down until the last line is at the bottom. Disclaimer, I might be missing a config or something, just set it up. Just wanted to know if anyone was aware if this is a common problem or I'm just being the big dumb.
2 replies
Michael Lee "Goliath" Sewell

I want to try out CodiMD using the Docker deployment method, but I'm running into issues. Running docker-compose up using exactly the same docker-compose.yml as in https://github.com/hackmdio/codimd/blob/89a0de420563078140bec384d6e6d5051357a1d6/deployments/docker-compose.yml (current master) makes the CodiMD image exit repeatedly (truncated docker-compose up output):

database_1  | 2020-06-09 10:34:50.729 UTC [51] LOG:  incomplete startup packet
codimd_1    | 2020-06-09T10:34:50.975Z warn:     Neither 'domain' nor 'CMD_DOMAIN' is configured. This can cause issues with various components.
codimd_1    | Hint: Make sure 'protocolUseSSL' and 'urlAddPort' or 'CMD_PROTOCOL_USESSL' and 'CMD_URL_ADDPORT' are configured properly.
codimd_1    | 2020-06-09T10:34:50.980Z warn:     Session secret not set. Using random generated one. Please set `sessionSecret` in your config.js file. All users will be logged out.
codimd_1    | 
codimd_1    | Sequelize CLI [Node: 8.16.2, CLI: 5.5.1, ORM: 5.21.3]
codimd_1    | 
codimd_1    | Parsed url postgres://codimd:*****@database/codimd
database_1  | 2020-06-09 10:34:51.407 UTC [52] FATAL:  password authentication failed for user "codimd"
database_1  | 2020-06-09 10:34:51.407 UTC [52] DETAIL:  Role "codimd" does not exist.
database_1  |     Connection matched pg_hba.conf line 95: "host all all all md5"
codimd_1    | 
codimd_1    | ERROR: password authentication failed for user "codimd"
codimd_1    | 
codimd_codimd_1 exited with code 1

Am I missing some Postgres configuration steps? Does it make a difference that I'm running macOS?

1 reply
Robert Sparks

I'm trying to configure an instance of codimd at heroku to use oauth2 against my own provider. I'm not allowing anonymous edits. I've got it to the point that login is successful, but when I create a new note, I get a crash:

2020-06-15T14:58:08.632614+00:00 heroku[router]: at=info method=GET path="/sipcore" host=... request_id=2435563d-38f0-4441-9e40-07047c5d9a61 fwd="..." dyno=web.1 connect=0ms service=57ms status=500 bytes=678 protocol=https
2020-06-15T14:58:08.612464+00:00 app[web.1]: 2020-06-15T14:58:08.612Z info:     deserializeUser: 71f5dbfd-04a0-4fd4-b688-9ab8e1a4fd19
2020-06-15T14:58:08.622978+00:00 app[web.1]: Error: can not create note
2020-06-15T14:58:08.622979+00:00 app[web.1]:     at createNote (/app/lib/note/index.js:38:11)
2020-06-15T14:58:08.622980+00:00 app[web.1]:     at showNote (/app/lib/note/index.js:65:18)

This corresponds to the code in note/index.js:

async function createNote (userId, noteAlias) {
  if (!config.allowAnonymous && !userId) {
    throw new Error('can not create note')

So, why after a successful login, is userId not set? What else do I need to change in the config?

If there's a better place to ask this, please let me know.

@msewell did you fix it? I managed to get a stack working if you need a hand
Robert Sparks
yes, by deploying a more recent version of the repository (previous was ~20 Apr, updated was ~17 Jun). I haven't found the code that changed (I expected the update to be a first step towards diagnosis, not the fix), but clearly something relevant must have. In any case, I've got what I needed to work working now. Thanks for following up. (On the off-hand chance it matters, the original deployment was one-click to heroku. I did the update with the heroku command-line client, pushing the updated repo).
thinking of a way to publish all my codimd notes as a docu website. anyone done this before?
i have some ideas for a pipeline, but was wondering if anyone might have built something of sorts
Kangkook Jee
I have a question. what is the difference between "codimd/server" and "hackmd/codimd"?
Im also confused by the distinction.
I see that HackMD has some neat features such as publish to git and book mode. I hope those make it into codimd
Kangkook Jee
@ScrumpyJack thanks for your hepl!
Hey there, I would like to get some more information about this issue hackmdio/codimd#1541
can anyone shed some light on this?
Max Wu
We handle the image uploads routing here: https://github.com/hackmdio/codimd/tree/develop/lib/imageRouter
Paul Shih
hello guys, I got Error code 502 from https://hackmd.io
Is here the right place to report?
oh I can access the site now
is there any way to add email authentication in codimd ??
Hello. Recently reinstalled CodiMD docker (I think I was on 1.4 before) and having some problems with https — css, js and images are trying to load over http, resulting in mixed content errors. I've got nginx with all the usual proxy headers as described in docs. I've set CMD_DOMAIN and (just in case) CMD_ALLOW_ORIGIN. What might be the cause?
Jay Chang
Hi, where can I find Dockerfile for hackmdio/runtime and hackmdio/buildpack?
Florian Harr
I'm running CodiMD/HackMD 2.2.0 and I'm trying to "Enable Word Wrap" from the editor settings, but the only option I have is "Allow override browser keymap". Is there something I'm missing?
Hey, I am trying to setup CodiMD using a SSL proxy and Docker. The UI becomes unresponsive when setting CMD_DOMAIN. Any help would be greatly appreciated.
Vishnunarayan K I
Why does codimd have night mode and hackmd doesn't?
Hello, may I ask which platforms should I choice if I want to use all of features with hackmd to make blog
Is there a way to escape out of typographic characters https://hackmd.io/s/features#Typographic-Replacements - my document has (R) and (P) as exact text, and it's being rendered as registered trademark for example when it shouldn't be - \ doesn't appear to be working to escape me from these.
SimpleHW Support
I am looking for someone knowledgeable of CodiMD who could help with migration from https://squidfunk.github.io/mkdocs-material/