[Support] Linuxserver.io - CodiMD


Recommended Posts

linuxserver_medium.thumb.png.ee269a039a3ba13bbb900a153cc71e63.png

Application Name: CodiMD
Application Site: https://demo.codimd.org/
Docker Hub: https://hub.docker.com/r/linuxserver/codimd/
Github: https://github.com/linuxserver/docker-codimd

 

Please post any questions/issues relating to this docker you have in this thread.

If you are not using Unraid (and you should be!) then please do not post here, rather use the linuxserver.io forum for support.

Link to comment
  • 4 weeks later...

Hi so I'm reading through this page and trying to wrap my head around this works. Everything I've set up in the past has just used a configuration file. Is this image set up the same way? Am I just supposed to throw variables into the config.json file?

The default config.json looks like:

{
  "use_env_variable": "CMD_DB_URL"
}

I found where CMD_DB_URL is on this page. However, I am confused how that is translated into the correct database URL.

Bottom line, I'd like to know more about how this docker is customized using the json file and I'd like to further understand how the default configuration even works. Thanks.

Link to comment
1 hour ago, ndaringer said:

Hi so I'm reading through this page and trying to wrap my head around this works. Everything I've set up in the past has just used a configuration file. Is this image set up the same way? Am I just supposed to throw variables into the config.json file?

The default config.json looks like:


{
  "use_env_variable": "CMD_DB_URL"
}

I found where CMD_DB_URL is on this page. However, I am confused how that is translated into the correct database URL.

Bottom line, I'd like to know more about how this docker is customized using the json file and I'd like to further understand how the default configuration even works. Thanks.

 

There is no difference of how this works in a docker install and a normal install. You can either use environment variables or set the correct setting, with the right formatting in the settings file.

As that is more to do with the application itself, it's better to ask the codimd guys. I don't know if they have a forum or discord/slack for support.

 

I'm not sure why you are not using the provided variables in the template for setting up the database connection.

Edited by saarg
Link to comment
  • 1 month later...
10 hours ago, saarg said:

Does it work locally, not going through your reverse proxy?

I can't really test that. Beside using oauth, I'd have to change the config to edit the domain and such.

When attempted as is, firefox throws security errors and won't load part of the page.

Link to comment

Okay, did some testing and I believe the current docker image is broken.

  • Version 1.5.0-ls12: Image broken. Seems to be missing the correct public/build files to run.
  • Version 1.5.0-ls11: Image broken. Throws error in console: `s6-applyuidgid: fatal: unable to exec ./node_modules/sequelize-cli/bin/sequelize: No such file or directory`
  • Version 1.4.0-ls11: Works. Has insecure pdf support, but is functional.


My instance isn't public, so I'll fall back for now until it's been looked at and fixed.

Link to comment
  • 3 weeks later...

Hello. I need to increase the permissible length of the document beyond the standard 100,000 characters. My config.json: ``{ "documentMaxLength": "CMD_documentMaxLength" , "use_env_variable": "CMD_DB_URL" } `` And docker command line: `docker run -dit --name=codimd --link mariadb:mariadb -e PUID=1000 -e PGID=1000 -e DB_HOST=mariadb -e DB_PORT=3306 -e DB_USER=codimd -e DB_PASS=805235io -e DB_NAME=codimd -e TZ=Europe/Kiev -p 3000:3000 -v /home/pirate/codimd/config:/config -e CMD_DOMAIN=doc.uabp.ml -e CMD_IMAGE_UPLOAD_TYPE=filesystem -e CMD_documentMaxLength=200000 --restart unless-stopped linuxserver/codimd:arm32v7-latest` Unfortunately, this parameter cannot be changed. Please help to increase the permissible length of the document.

 

Link to comment
15 hours ago, kroschu said:

Hello. I need to increase the permissible length of the document beyond the standard 100,000 characters. My config.json: ``{ "documentMaxLength": "CMD_documentMaxLength" , "use_env_variable": "CMD_DB_URL" } `` And docker command line: `docker run -dit --name=codimd --link mariadb:mariadb -e PUID=1000 -e PGID=1000 -e DB_HOST=mariadb -e DB_PORT=3306 -e DB_USER=codimd -e DB_PASS=805235io -e DB_NAME=codimd -e TZ=Europe/Kiev -p 3000:3000 -v /home/pirate/codimd/config:/config -e CMD_DOMAIN=doc.uabp.ml -e CMD_IMAGE_UPLOAD_TYPE=filesystem -e CMD_documentMaxLength=200000 --restart unless-stopped linuxserver/codimd:arm32v7-latest` Unfortunately, this parameter cannot be changed. Please help to increase the permissible length of the document.

Just set your "documentMaxLength" to 2000000 in the config and remove the CMD_documentMaxLength from the template. In fact I have almost everything done in just the config file.

Going to let the others know, the docker image is still broken, though I guess the arm build is okay. Just to clarify, Version 1.4.0-ls11 is the last build I can get working.

Edited by Ryonez
Formatting
Link to comment
  • 4 months later...

Running into an issue with getting this docker started up. Have I missed anything obvious?

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='codimd' --net='bridge' --log-opt max-size='50m' --log-opt max-file='1' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'DB_HOST'='192.168.1.12' -e 'DB_PORT'='3306' -e 'DB_NAME'='codidb' -e 'DB_USER'='codimd' -e 'DB_PASS'='password' -e 'PUID'='99' -e 'PGID'='100' -p '3000:3000/tcp' -v '/mnt/user/appdata/codimd':'/config':'rw' 'linuxserver/codimd'

da6074975cab5107f72c0f6849c8b746711ed65bcd9b49524160984f8a7f5ae5

The command finished successfully!

The log shows this error, and the error is just repeated endlessly.

 

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-scripts: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-scripts: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

[4mSequelize CLI [Node: 10.18.1, CLI: 5.5.0, ORM: 5.8.12][24m

Loaded configuration file "../../config/config.json".

[31mERROR:[39m getaddrinfo ENOTFOUND codimd codimd:3306


[4mSequelize CLI [Node: 10.18.1, CLI: 5.5.0, ORM: 5.8.12][24m

Loaded configuration file "../../config/config.json".

[31mERROR:[39m getaddrinfo ENOTFOUND codimd codimd:3306


[4mSequelize CLI [Node: 10.18.1, CLI: 5.5.0, ORM: 5.8.12][24m

Loaded configuration file "../../config/config.json".

[31mERROR:[39m getaddrinfo ENOTFOUND codimd codimd:3306

Thanks for a nice looking docker! :)

Link to comment
  • 3 weeks later...
On 1/28/2020 at 6:54 PM, wazabees said:

The log shows this error, and the error is just repeated endlessly.

 


[4mSequelize CLI [Node: 10.18.1, CLI: 5.5.0, ORM: 5.8.12][24m

Loaded configuration file "../../config/config.json".

[31mERROR:[39m getaddrinfo ENOTFOUND codimd codimd:3306

 

I am getting the exact same error message. MariaDB is running on IP X.X.X.11 and I have set the environment variable accordingly (DB_HOST and CMD_DB_URL like stated in the config.json). Still, the error message is showing that codimd is looking for the database on the IP X.X.X.26 (which is the IP address for the codimd container). Any ideas anyone?

Link to comment
  • 2 weeks later...
  • 8 months later...

Having issues getting a nginx reverse proxy to work. Would that be better to ask here or over on the SWAG support thread? My error is a 502 bad gateway, but I'm a bit lost on determining if it's something with the .conf file in nginx or the environment settings I'm passing into the CodiMD container.

Link to comment
5 hours ago, J_Hizzal said:

Having issues getting a nginx reverse proxy to work. Would that be better to ask here or over on the SWAG support thread? My error is a 502 bad gateway, but I'm a bit lost on determining if it's something with the .conf file in nginx or the environment settings I'm passing into the CodiMD container.

Swag is the most appropriate thread as it is an issue with reverse proxy.

502 means that swag can't reach CodiMD.

Link to comment
  • 2 months later...
5 hours ago, gcoulthard said:

Is there any chance that this unRAID docker app will be updated to Hedgedoc (https://hedgedoc.org/) - the next iteration of Codimd? (Sorry, just a home user of unRAID, not a developer or docker creator.)

No. We already have new container for hedgedoc. Have you searched CA for it?

Unsure of you can just change the repo and "upgrade", in case you want to test it, backup your appdata first.

Link to comment
2 hours ago, gcoulthard said:

That's odd. I get "no matching applications" in CA when I search for it. I'll try and figure it out. Thx.

I didn't know if we made a template or not, so that's the reason I asked if you searched in CA.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.