pcmacdon / pdq

Single-file CMS using fossil and jsish
3 stars 0 forks source link

Install report on Dreamhost.com #4

Open maphew opened 3 years ago

maphew commented 3 years ago

Install report on Dreamhost.com. I have jsi symlinked to jsish binary.

[thomas-lynch-jr] $ uname -a
Linux thomas-lynch-jr 4.14.117-grsec-grsec+ #1 SMP Sat May 11 00:40:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[thomas-lynch-jr]$ mkdir pdq && cd pdq

[thomas-lynch-jr]$ jsi -m sclone
current directory is not within an open checkout
clone https://jsish.org/afossil/pdq pdq.fossil
Round-trips: 2   Artifacts sent: 0  received: 117
Clone done, wire bytes sent: 538  received: 3500564  ip: 50.116.0.90
Rebuilding repository meta-data...
  100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 5b7e1585db8601042a0bf504a57c9a799ac8a12f
server-id:  121281c49c09e5189c1c611a2061e5cbe74bfd1d
admin-user: dh_user (password is "Q******8c")

Autosync failed.
y
DONE! To finish setup run: "jsish ."

Note here I had to answer Y to the blind SSL prompt, as before in Windows WSL.

[thomas-lynch-jr]$ jsi .
FAI /var/www/fossil/pdq-plugins.fossil
pdq.jsi:683:  "INFO: Project == PDQ and not created with: "jsish -m sclone"", main()
ccc { histmode:false, home:"/admin", noBreak:false }
Pdq started: file=index.html, port=43339

At this point links text browser is launched automatically in the bash console but doesn't appear to be usable. Pointing a browser from my desktop at my-domain.dreamhosters.com/pdq shows web pages but there doesn't appear to be any live content. Using my-domain.dreamhosters.com:43339/pdq instead times out with no connection.

pcmacdon commented 3 years ago

Rather than uname, can you cat /etc/issue to try and determine the linux distribution used.

Like the Windows WSL problems, these are likely due to the way SSL is integrated in the distro on dreamhost.

maphew commented 3 years ago

Ubuntu 18.04.4 LTS \n \l

pcmacdon commented 3 years ago

To my knowledge on a "normal" distribution using an fossil with SSL does not require responding to SSL related prompts.

Obviously due to the sensitive nature of SSL (ie. used for financial transactions) integration into an OS is never going to be routine. Also, hackers will always routinely be attacking that interface.

For those reasons, I generally use SSH:

fossil remote
ssh://jsish.org//var/www/fossil/pdq.fossil

Not sure if that helps your problem or not.

maphew commented 3 years ago

As far as I know ssh can't be used anonymously though right? Anyway I don't think that's the central issue. After setting the remote server manually to match the https url in the fossil info comment fossil sync works.

I feel like missing too much background to troubleshoot meaningfully. I'm going to turn my attention to just reading the docs and studying the code. I think I'm missing some fundamentals, like how Vue operates on it's own let alone in jsi+fossil+vue.

[my-hostname]$ pwd
/home/my-username/me-pdq.dreamhosters.com/pdq

[my-hostname]$ fossil info
project-name: PDQ
repository:   /home/my-username/me-pdq.dreamhosters.com/pdq/pdq.fossil
local-root:   /home/my-username/me-pdq.dreamhosters.com/pdq/
config-db:    /home/my-username/.fossil
project-code: b609c1b53c864ea98a454fa29fd6260b6f33e69d
derived-from: 5b7e1585db8601042a0bf504a57c9a799ac8a12f PDQ
checkout:     cff451aa32fe14762dafac8fca427e8fcdf8ca9e 2021-10-13 04:56:49 UTC
parent:       7d4c876855580308c5842fc7c595bb1f413f52c8 2021-10-05 20:24:11 UTC
tags:         trunk
comment:      sclone of https://jsish.org/afossil/pdq (user: my-username)
check-ins:    14

[my-hostname]$ fossil remote
off

[my-hostname]$ fossil remote ssh://jsish.org/afossil/pdq

[my-hostname]$ fossil sync
Sync with ssh://jsish.org/afossil/pdq
my-username@jsish.org: Permission denied (publickey).
server did not reply
Sync done, wire bytes sent: 767  received: 0  ip: jsish.org

[my-hostname]$ fossil remote https://jsish.org/afossil/pdq

[my-hostname]$ fossil sync
Sync with https://jsish.org/afossil/pdq
Round-trips: 1   Artifacts sent: 0  received: 0
Error: wrong project
Round-trips: 1   Artifacts sent: 0  received: 0
Sync done, wire bytes sent: 739  received: 287  ip: 50.116.0.90
pcmacdon commented 3 years ago

Correct, ssh can not be anonymous. But of course we're talking "sync" here. And the problems your battling are with fossil.

I sympathize: There is a pretty steep learning curve with Js, Vue, and web frameworks in general.