Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 25 17:59
    Yukaii synchronize #1654
  • Jan 25 17:59

    Yukaii on autofix-linting

    Update deps Signed-off-by: Yuk… Ignore os for markdownlint-rule… Provide linter autofixes Signe… and 1 more (compare)

  • Jan 25 17:58

    Yukaii on develop

    Update release note Signed-off… Merge pull request #1645 from h… Merge branch 'master' into deve… and 3 more (compare)

  • Jan 25 17:56
    Yukaii synchronize #1654
  • Jan 25 17:56

    Yukaii on autofix-linting

    Update release note Signed-off… Bump package/package.lock versi… Update deps Signed-off-by: Yuk… and 3 more (compare)

  • Jan 25 17:54
    Yukaii edited #1654
  • Jan 25 17:52
    Yukaii synchronize #1654
  • Jan 25 17:52

    Yukaii on autofix-linting

    Fix invalid range Signed-off-b… (compare)

  • Jan 25 11:10
    whitsunndale edited #1655
  • Jan 25 11:09
    whitsunndale opened #1655
  • Jan 25 10:11
    Yukaii labeled #1654
  • Jan 25 10:10
    Yukaii edited #1654
  • Jan 25 10:08
    Yukaii edited #1654
  • Jan 25 10:08
    Yukaii edited #1654
  • Jan 25 10:07
    Yukaii converted_to_draft #1654
  • Jan 25 10:06
    Yukaii opened #1654
  • Jan 25 10:05

    Yukaii on autofix-linting

    Update deps Signed-off-by: Yuk… Ignore os for markdownlint-rule… Provide linter autofixes Signe… (compare)

  • Jan 25 08:50

    Yukaii on fix-reveal-markdown-stored-xss

    (compare)

  • Jan 25 08:50

    Yukaii on develop

    fix: properly escape reveal mar… fix: remove reveal options of d… Merge pull request #1650 from h… (compare)

  • Jan 25 08:50
    Yukaii closed #1650
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Try
  1. docker-compose down
  2. docker volume rm database-data upload-data
  3. docker-compose up and inspect the output
Steven Kruyswijk
@kruithoph_twitter
docker-compose logs codimd gives only Attaching to
ok
ssh terminal is unresponsive
ah it's back
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Setting the CMD_HOST env variable to 127.0.0.1 in a Docker setup will deny access to all users.
Steven Kruyswijk
@kruithoph_twitter
ok those data files didn't exist
docker-compose up yields a bunch of errors: ERROR: password authentication failed for user "codimd"
also when I modify the two passwords in the .yml file
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
The two passwords in the yml file should be identical
Steven Kruyswijk
@kruithoph_twitter
I know
here is the complete output without several repetitions: https://pastebin.com/cEHQVtfY
Steven Kruyswijk
@kruithoph_twitter
so yeah :) not the smoothest install ever...
Steven Kruyswijk
@kruithoph_twitter
I might have to do a manual install
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Try use this configuration instead: https://pastebin.com/M6ZpNb39
Don't change anything, even the password, simply start it with docker-compose up -d
Steven Kruyswijk
@kruithoph_twitter
alright
ok - now curl http://localhost:3000 returns the code for a web page by the looks of it
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
What about the web browser?
Steven Kruyswijk
@kruithoph_twitter
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to localhost:3000 still for https
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
That's expected as the site isn't really HTTPS
Steven Kruyswijk
@kruithoph_twitter
web browser on my computer pointing to the URL still gives web hoster's error page
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
I suppose something in the VPS blocked it :-/
Steven Kruyswijk
@kruithoph_twitter
right, so add port 3000 to the iptables somehow?
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Not necessary as Debian don't block any ports by default
Steven Kruyswijk
@kruithoph_twitter
entering the IP address instead of URL gives a refused to connect error
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
That's also expected as cURL defaults to the 80 port which is not open.
Steven Kruyswijk
@kruithoph_twitter
I'm comparing your .yml with the default one... `volumes:
  - ./database-data:/var/lib/postgresql/data` has quotation marks in the default
oops, markup
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
I mount the volume right under the working directory, this avoids the problem where the data in the named volume interferes with the application.
Steven Kruyswijk
@kruithoph_twitter
- ./upload-data:/home/hackmd/app/public/uploads lacks the ./ in the original
isn't it strange that your version does give a curl result and the vanilla one doesn't? is there a bug in the vanilla version?
or perhaps just a mismatch with my particular VPS
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
There's multiple factors influencing whether you get the wrong response, I would say it is a user-end issue.
Steven Kruyswijk
@kruithoph_twitter
ah, IP:3000 does work in my browser
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
I can verify that the vanilla setup works on a clean Debian 10 machine.
Steven Kruyswijk
@kruithoph_twitter
alright, then it must be some VPS configuration issue I guess
thank you very much for your help!
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
np.
Steven Kruyswijk
@kruithoph_twitter
oh btw, can you tell me which docker installation guide/method you used just now, for the vanilla verification?
perhaps that makes a difference
Steven Kruyswijk
@kruithoph_twitter
ah yes, I mean docker itself
or do you think that can't make a difference
Steven Kruyswijk
@kruithoph_twitter
right now, if I take this working example (that shows CodiMD in the browser at IP:port) and add - CMD_DOMAIN=url.com to the .yml, it just breaks the CSS on IP:port
and shows an error message from my domain/VPS provider on url.com. would that point to an issue on their side?
apologies for asking this many questions here - if there's more documentation about this stuff I'd love to read it
Steven Kruyswijk
@kruithoph_twitter
ok I guess the HTTPS setup is needed - I thought it was only recommended https://hackmd.io/c/codimd-documentation/%2F%40codimd%2FByDxZQgBL
Steven Kruyswijk
@kruithoph_twitter
and also I needed to modify the DNS settings of my URL @ my domain provider
Steven Kruyswijk
@kruithoph_twitter
the DNS setting in my domain configuration panel was the main issue all this time. I'm an idiot and thanks again...