Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeneWeb7 CGI Debian 10 #1109

Closed
stingfi opened this issue Dec 30, 2020 · 11 comments
Closed

GeneWeb7 CGI Debian 10 #1109

stingfi opened this issue Dec 30, 2020 · 11 comments

Comments

@stingfi
Copy link

stingfi commented Dec 30, 2020

Installed GeneWeb7 on RaspberryPi4 model B. following these instructions. https://geneweb.tuxfamily.org/wiki/Installing_GeneWeb_7_on_a_Raspberry_Pi_webserver
It works but there is a problem: "gwd.sh?m=IM&v=/modules/menubar_1.jpg", causing an error: "500 (Internal server error)" but for instance "gwd.sh?m=IM&v=/married.png" works. The files exists and ownership and rights are the same for both files and directories.

I did apply the same instructions on my PC Linux Debian 10. I had to make some changes: jingoo.1.4.1 -> jingoo.1.4.2 and dune.1.11.4 -> dune.2.7.1 and ~$opam install syslog.
The result is the same, "gwd.sh?m=IM&v=/modules/menubar_1.jpg" causing error: 500 (Internal server error)

An other thing: maybe css related, is the footer of the web page. I don't think it should look like this: (appendix image)

Raspberry url: http://stingfi.ddns.net:8080/cgi-bin/gwd.sh?b=family3&lang=en;
PC url: https://stingfi.ddns.net/cgi-bin/gwd.sh?b=family3&lang=en;

image

PS
Did post this on https://en.geneanet.org/forum/viewtopic.php?f=85&t=699639&sid=fa0b4e9c9b7d347eb5db4b3f4150a0d2 but didn't get any answers.

Regards
StIngFI

@hgouraud
Copy link
Collaborator

m=IM&v=file does not allow (at this time) for sub-folders!!

@stingfi
Copy link
Author

stingfi commented Dec 31, 2020

This means that release 7.0.0 has features that doesn't work???
No one else complaining about this??
I would like a more detailed explanation on the issue.

Is this footer text related o the same problem: '[File "bin/gwd/request.ml", line 458, characters 14-21]:...'.
Such a file exists but not in the /home/GW/ folder, but in /home/pi/geneweb/bin/gwd/, from my understanding, not reachable by gwd.

@hgouraud
Copy link
Collaborator

hgouraud commented Dec 31, 2020

This means that release 7.0.0 has features that doesn't work???
No one else complaining about this??
I would like a more detailed explanation on the issue.

This means that you may have stumbled on a part of the documentation of GeneWeb 7 anticipated on a (useful) feature that is not yet implemented!! Should have been flagged!! The french and english versions were not in sync. Reference to future v7 features have been suppressed in the french version.
The main documentation (http://geneweb.tuxfamily.org/wiki/image) says m=IM;s=file (not v=file!), and does not mention the possibility of sub-folders.

The footer issue is related to the same problem (debugging message sent on stdout. Should typically go to a log file defined at launch time).

@stingfi
Copy link
Author

stingfi commented Dec 31, 2020

To clarify things:
I have downloaded and compiled geneweb as follows:

git clone https://github.com/geneweb/geneweb
cd geneweb
ocaml ./configure.ml --sosa-zarith
make distrib
cd
The Pi package on dec 12 (592ed1f (2020-12-01))
The PC package on dec 28 (4effdf8 (2020-12-28))

I have not stumbled on any documentation that I'm supposed to have utilized.
No code of my own, all comes from the GeneWeb 7 package 'as is'.
The "?m=IM&v=/modules/menubar_1.jpg" just emanates from the package, and is backed by the fact that such a folder and file exists.
Equal on both machines.

An other completely different thing is: In the Raspberry version the log file gwdl.log grows all the time, but in the PC version it is emptied every time I logout.

@hgouraud
Copy link
Collaborator

hgouraud commented Dec 31, 2020

Huummm!
the source involving menubar_1.jpg is:
hd/etc/menubar.txt: <img src="%image_prefix;/modules/menubar_1.jpg" ...>
You must be in CGI mode, in which case, image_prefix becomes ?m=IM&v= if images_url is not defined), which will not work until the subfolder issue is addressed! (and the v= replaced by s=).
Thanks for pointing out this discrepancy.

One possible alternative for immediate relief would be to define (in your basename.gwf file) images_url in such a way that images are not loaded by GeneWeb (m=IM) but by some other http server on your machine (Apache? imahes_url=http://hostname/).
Unless you are familiar with Apache (making the modules folder readable by Apache!), this may be a difficult path to follow!! Sorry.

One other alternative is to suppress from menubar.txt the part relative to modules selection (from line 37 to line 110).

@stingfi
Copy link
Author

stingfi commented Dec 31, 2020

Thank U
I got rid of the error messages by copying >cp /home/GW/GeneWeb7/gw/images/modules/*.jpg /home/GW/GeneWeb7/gw/images/ (where the *.png images are). !?, but the trouble with the footer remains, but it seems to be some debugging info: "ifdef DEBUG"?? but I can't find where the DEBUG is defined (if it is).
Regards
/StIngFI

@hgouraud
Copy link
Collaborator

hgouraud commented Dec 31, 2020 via email

@hgouraud
Copy link
Collaborator

hgouraud commented Jan 1, 2021

Are you sending stderr to a log file or /dev/null?
Try something like:
$BIN_DIR/gwd $OPT -bd $WEB_DIR/GeneWeb-Bases -log $LOGS_DIR/gwdl.log 2>$LOGS_DIR/gwd.log

@stingfi
Copy link
Author

stingfi commented Jan 1, 2021

The gwd.sh are identical:
OPT="-cgi -hd $BIN_DIR -bd $BASE_DIR -allowed_tags $BASE_DIR/tags.txt -add_lexicon $BIN_DIR/lang/lex_utf8.txt"
"$BIN_DIR/gwd $OPT -log $LOGS_DIR/gwdl.log 2>$LOGS_DIR/gwd.log"
Seems the PC version overwrites every time, but the Pi appends, the gwdl.log logfile. (The gwd.log is empty all the time in both systems)

PC Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-6-686-pae
Architecture: x86
Server version: Apache/2.4.38 (Debian)
Server built: 2020-08-25T20:08:29

Pi Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 5.4.72-v7l+
Architecture: arm
Server version: Apache/2.4.38 (Raspbian)
Server built: 2020-08-25T20:08:29

@stingfi
Copy link
Author

stingfi commented Jan 14, 2021

Did download geneweb7 https://github.com/geneweb/geneweb/archive/v7.0.0.tar.gz dated 2020/10/30 and compiled with Caml. All problems, mentioned above, gone:) (applies to my PC/Linux, have not tested on the Raspberry yet)

@stingfi
Copy link
Author

stingfi commented Jan 15, 2021

The 30/10/2020 GeneWeb7 version found here https://geneweb.tuxfamily.org/wiki/download alternative Caml / Geneweb v7.00 (.tar.gz) works well in PC Debian 10 ond also in Raspberry pi Debian 10, if you follow these instruktions: https://geneweb.tuxfamily.org/wiki/Installing_GeneWeb_7_on_a_Raspberry_Pi_webserver Leaving out the part "git clone https://github.com/geneweb/geneweb" and take the .tar.gz version instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants