Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 13 11:01
    TobiasHoll opened #1648
  • Jan 12 14:51
    TI-Admin edited #1647
  • Jan 12 14:47
    TI-Admin opened #1647
  • Jan 10 16:58
    lfuhr commented #525
  • Jan 07 13:57
    cblessing24 closed #1617
  • Jan 07 13:56
    cblessing24 commented #1617
  • Jan 05 08:32
    littlefish0331 commented #820
  • Jan 04 19:27
    elearningdienst commented #1614
  • Jan 04 09:57

    Yukaii on 2.3.2

    (compare)

  • Jan 04 09:57

    Yukaii on 2.3.2

    (compare)

  • Jan 04 09:57

    Yukaii on master

    Merge branch 'master' into deve… Bump package/package.lock versi… Merge pull request #1646 from h… (compare)

  • Jan 04 09:57
    Yukaii closed #1646
  • Jan 04 09:56
    Yukaii milestoned #1646
  • Jan 04 09:47
    Yukaii review_requested #1646
  • Jan 04 09:47

    Yukaii on 2.3.1

    (compare)

  • Jan 04 09:46
    Yukaii opened #1646
  • Jan 04 09:45

    Yukaii on 2.3.2

    Merge branch 'master' into deve… Bump package/package.lock versi… (compare)

  • Jan 04 09:36

    Yukaii on 2.3.1

    (compare)

  • Jan 04 09:36

    Yukaii on master

    Merge branch 'master' into deve… Bump mermaid to 8.6.4 Signed-o… Bump cdn mermaid version Signe… and 3 more (compare)

  • Jan 04 09:36
    Yukaii closed #1645
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Yep
You can omit the -d to put it in the foreground during the testing phase
Steven Kruyswijk
@kruithoph_twitter
ok now I get curl: (7) Failed to connect to localhost port 3000: Connection refused for both curl http and https
林博仁(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