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

LinkPreview was working great and then just stopped working #39

Open
katr opened this issue Oct 24, 2023 · 6 comments
Open

LinkPreview was working great and then just stopped working #39

katr opened this issue Oct 24, 2023 · 6 comments
Assignees

Comments

@katr
Copy link

katr commented Oct 24, 2023

We are running an older version of HumHub and have been using LinkPreview with great success for the better part of a year. All of a sudden, LinkPreview just stopped working. We haven't upgraded anything (OS, LinkPreview, HumHub, etc). There is plenty of disk space free and no RAM issues.

None of the logs have any useful information and the specific 500 error doesn't seem to be recorded anywhere (/var/log/httpd/* or in HumHub admin logs).

Do you have any suggestions for what we might do to regain this functionality? Any other information that I could provide?

Thanks,
Bill

LinkPreview: 1.14
HumHub: 1.7.3

$ uname -a
Linux 4.18.0-240.10.1.el8_3.x86_64 #1 SMP Mon Jan 18 17:05:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ httpd -v
Server version: Apache/2.4.37 (centos)
Server built: Nov 4 2020 03:20:37
$ php -v
PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

image

@gevorgmansuryan
Copy link

@katr - minimum PHP version for humhub/linkpreview is php7.4 and it's defined in composer.json of linkpreview. How you installed/updated LinkPreview ?

Also Can You please enabled debug mode and try again, this will give us more detailed error info.

@luke-
Copy link
Contributor

luke- commented Oct 30, 2023

@gevorgmansuryan The LinkPreview is usually installed using the including all dependencies.

The error message should be logged in: Administration -> Information -> Logging

@gevorgmansuryan
Copy link

gevorgmansuryan commented Oct 30, 2023

@luke- thanks for info. @katr please paste here error message from your installation. Coz i can not reproduce this case, it works as expected, even with youtube link from your screenshot.

@katr
Copy link
Author

katr commented Oct 31, 2023

@katr - minimum PHP version for humhub/linkpreview is php7.4 and it's defined in composer.json of linkpreview. How you installed/updated LinkPreview ?

Also Can You please enabled debug mode and try again, this will give us more detailed error info.

We are using php 7.2.24, so that may certainly be an issue...however it was working initially. I'm trying to recall how we installed it, but that was a while ago, so I'm not quite certain. Looking at my modules folder, it looks like I installed it back in Dec 2021.

drwxr-xr-x. 10 apache apache 4096 Feb 28 2021 breakingnews
drwxr-xr-x. 20 apache apache 4096 Feb 28 2021 calendar
drwxr-xr-x. 15 apache apache 4096 Feb 28 2021 cfiles
drwxr-xr-x. 8 apache apache 4096 Feb 28 2021 codebox
drwxr-xr-x. 18 apache apache 4096 Feb 28 2021 custom_pages
drwxr-xr-x. 13 apache apache 4096 Feb 28 2021 drawio
drwxr-xr-x. 15 apache apache 4096 Feb 28 2021 gallery
drwxr-xr-x. 10 apache apache 4096 Mar 1 2021 jitsi-meet
drwxr-xr-x. 11 apache apache 4096 Feb 28 2021 linklist
drwxr-xr-x. 11 apache apache 4096 Dec 27 2021 linkpreview
drwxr-xr-x. 16 apache apache 4096 Feb 28 2021 mail
drwxr-xr-x. 9 apache apache 4096 Feb 28 2021 mostactiveusers
drwxr-xr-x. 13 apache apache 4096 Feb 28 2021 notes
drwxr-xr-x. 15 apache apache 4096 Feb 28 2021 polls
drwxr-xr-x. 9 apache apache 4096 Mar 3 2021 scrollup
drwxr-xr-x. 19 apache apache 4096 Feb 28 2021 tasks
drwxr-xr-x. 10 apache apache 4096 Mar 1 2021 termsbox

I did turn on debug mode, however I don't see any additional information.
image

We are using linkpreview 1.14
image

@gevorgmansuryan
Copy link

@katr Seems firewall is blocking incoming request or something like this. Can You please try wget https://youtube.com and check contents of generated index.html ?

@katr
Copy link
Author

katr commented Nov 3, 2023

@katr Seems firewall is blocking incoming request or something like this. Can You please try wget https://youtube.com and check contents of generated index.html ?

wget works just fine...I wouldn't expect outgoing http/https requests to be blocked....

$ wget https://youtube.com
--2023-11-02 20:49:25--  https://youtube.com/
Resolving youtube.com (youtube.com)... 2607:f8b0:4023:1006::5d, 2607:f8b0:4023:1006::be, 2607:f8b0:4023:1006::5b, ...
Connecting to youtube.com (youtube.com)|2607:f8b0:4023:1006::5d|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.youtube.com/ [following]
--2023-11-02 20:49:25--  https://www.youtube.com/
Resolving www.youtube.com (www.youtube.com)... 2607:f8b0:4023:1000::5b, 2607:f8b0:4023:1000::5d, 2607:f8b0:4023:1000::88, ...
Connecting to www.youtube.com (www.youtube.com)|2607:f8b0:4023:1000::5b|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’

index.html                             [ <=>                                                            ] 699.69K  3.56MB/s    in 0.2s

2023-11-02 20:49:25 (3.56 MB/s) - ‘index.html’ saved [716482]

$ head index.html
<!DOCTYPE html><html style="font-size: 10px;font-family: Roboto, Arial, sans-serif;" lang="en" darker-dark-theme darker-dark-theme-deprecat                               e system-icons typography typography-spacing><head><script data-id="_gd" nonce="53SjbVPWSa8gs_pGFMOuJA">window.WIZ_global_data = {"MuJWjd":                               false,"nQyAE":{},"oxN3nb":{"1":false}};</script><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta http-equiv="origin-trial" conte                               

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

3 participants