簡體   English   中英

飛濺問題(d-bus、QSslSocket、libpng)

[英]Splash issues (d-bus, QSslSocket, libpng)

我正在嘗試通過scrapinghub/splash Docker 映像使用 Splash,並在第一個請求(這是到/robots.txt端點,因為我正在使用scrapy-splash插件作為scrapy庫(使用 Python 3.6)之后出現一些警報。

[-] "172.17.0.1" - - [18/Jan/2018:00:05:12 +0000] "GET /robots.txt HTTP/1.1" 404 153 "-" "Scrapy/1.5.0 (+https://scrapy.org)"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
process 1: D-Bus library appears to be incorrectly set up; failed to read machine uuid: UUID file '/etc/machine-id' should contain a hex string of length 32, not length 0, with no other text
See the manual page for dbus-uuidgen to correct this issue.
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method

最可悲的是它不呈現此頁面 還需要提及的是,有時它會呈現此頁面,並且在 JS 可用的情況下包含重定向。

如何使它工作?

更新

當使用scrapinghub/splash:3.0這些消息仍然存在,但渲染有效。 那么我應該將其報告為scrapinghub/splash image 中的錯誤還是這些錯誤可能是由我的環境引起的?

更新

出於某種原因,即使3.0從現在開始也不會渲染,以及master (docker 圖像標簽)。 因此,對於每個帶有latestmaster3.0標簽的圖像,在請求(索引端點上的表單)渲染http://floodlist.com/news頁面后,它只顯示一個帶有You are being redirected...標題的頁面。

我發現了這個問題,所以d-bus問題可能是無害的。

過程1:D-Bus庫設置錯誤; 無法讀取機器 uuid:UUID 文件“/etc/machine-id”應包含長度為 32 的十六進制字符串,而不是長度為 0,沒有其他文本請參閱 dbus-uuidgen 的手冊頁以更正此問題。

這些似乎是關於如何解決 D-Bus 問題的相當簡潔的說明。

我不知道其他警告,或者它們中的任何一個是否相關。

這些警告/錯誤似乎是無害的(參見Splash 上的 #491scrapy-splash 上的 #122

通過將wait值增加到 1 秒來解決渲染問題。 更多關於渲染問題的信息在這里

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM