简体   繁体   English

在 nextcloud 上安装应用程序时出现 Curl 错误 7

[英]Curl error 7 when installing apps on nextcloud

Hey this is my first question on here, so go easy.嘿,这是我在这里的第一个问题,所以 go 很容易。

I set up a Nextcloud server on my homelab in an ubuntu server 20.04 vm using the snap install.我使用 snap install 在我的 homelab 中的 ubuntu 服务器 20.04 vm 中设置了 Nextcloud 服务器。 I have a seperate vm running nginx as a reverse proxy to my Nextcloud instance.我有一个单独的 vm 运行 nginx 作为我的 Nextcloud 实例的反向代理。 Everything works flawlessly as intended, except that when I try and install apps on Nextcloud, I get a curl error #7.一切都按预期完美运行,除了当我尝试在 Nextcloud 上安装应用程序时,我收到 curl 错误 #7。 I've tried using my lan ip through the web ui, my public domain name through the web ui, and the commandline using the nextcloud.occ app:install command.我尝试通过 web ui 使用我的局域网 ip,通过 web ui 使用我的公共域名,以及使用 nextcloud.oc 应用程序的命令行: I always get the same error.我总是得到同样的错误。 I tried to find the appropriate log file to get more information but looking in /var/snap/nextcloud/current/log/ I couldn't find any relevant info in any of the logs.我试图找到适当的日志文件以获取更多信息,但查看 /var/snap/nextcloud/current/log/ 我在任何日志中都找不到任何相关信息。 Running php -m comes up with php not installed, I guess because php is installed via the Nextcloud snap?运行 php -m 出现 php 未安装,我猜是因为 php 是通过 Nextcloud snap 安装的? Obviously php is installed somewhere because Nextcloud is running, but I don't know how to look and see what modules are enabled, or how to install new ones using the snap.显然 php 安装在某处,因为 Nextcloud 正在运行,但我不知道如何查看和查看启用了哪些模块,或者如何使用 snap 安装新模块。 Any help on what to do is much appreciated!非常感谢您对做什么的任何帮助!

enter image description here在此处输入图像描述

Update: I fixed it.更新:我修好了。 I think I had improperly configured my firewall, and turning it off (in proxmox)/making some changes to my /etc/netplan/*.yaml file to properly configure the static IP fixed it.我认为我的防火墙配置不正确,并关闭了它(在 proxmox 中)/对我的 /etc/netplan/*.yaml 文件进行了一些更改,以正确配置 static ZA12A3079E14CED406E69BA5AZ。 GL总帐

Another reason can be a wrongliy configured network.另一个原因可能是网络配置错误。 I forgot to set the gateway/proxy for IPv4, so github.com was unreachable.我忘记为 IPv4 设置网关/代理,所以 github.com 无法访问。 Most other services I use seem to resolve IPv6 first, so I did not have any other problems besides updating nextcloud apps.我使用的大多数其他服务似乎首先解决了 IPv6,所以除了更新 nextcloud 应用程序之外我没有任何其他问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM