Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:10
    whitsunndale edited #1655
  • 11:09
    whitsunndale opened #1655
  • 10:11
    Yukaii labeled #1654
  • 10:10
    Yukaii edited #1654
  • 10:08
    Yukaii edited #1654
  • 10:08
    Yukaii edited #1654
  • 10:07
    Yukaii converted_to_draft #1654
  • 10:06
    Yukaii opened #1654
  • 10:05

    Yukaii on autofix-linting

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

  • 08:50

    Yukaii on fix-reveal-markdown-stored-xss

    (compare)

  • 08:50

    Yukaii on develop

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

  • 08:50
    Yukaii closed #1650
  • 08:50
    Yukaii closed #1648
  • 08:50
    Yukaii milestoned #1650
  • 08:48
    jackycute commented #1650
  • 07:01

    Yukaii on fix-pdf-embed-freeze-on-safari-big-sur

    (compare)

  • 07:00

    Yukaii on develop

    fix: avoid insert embed tag on … fix: typo Signed-off-by: Max W… Merge pull request #1651 from h… (compare)

  • 07:00
    Yukaii closed #1651
  • 07:00

    Yukaii on fix-vimeo-jsonp-callback

    (compare)

  • 07:00

    Yukaii on develop

    fix: vimeo won't show up due to… fix: code style Signed-off-by:… Merge pull request #1652 from h… (compare)

Steven Kruyswijk
@kruithoph_twitter
I would think that the domain would need to be set at least?
林博仁(Buo-ren, Lin)
@Lin-Buo-Ren
Yep.
That won't be necessary
Steven Kruyswijk
@kruithoph_twitter
ok let me try
alright and then docker-compose down and docker-compose up -d to restart the container right
林博仁(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