gitlab-致命:无法访问 - 无法解决主机 - >由于缺少斜线

发布于 2025-01-23 01:00:43 字数 2029 浏览 0 评论 0 原文

我使用Apache2 WebRver在Ubuntu Server上安装了新的GitLab Instalation。我在这里(在Web GUI中)创建了新的存储库,例如“ testik.git”,我得到了http路径:

http://git.domain.tld/teld/testovic/testovic/testik.git

”我将其放在我的winpc

git clone http://git.domain.tld/testovic/testik.git

命令返回

Cloning into 'testik'...
fatal: unable to access 'http://git.domain.tld/testovic/testik.git/': Could not resolve host: git.domain.tldtestovic

中,将其放在git命令中,我看到“致命”信息中的不必要的拖延,我也看到,此之前的 slash在“ tld”之后缺少 “用户名”。

同样的问题也是,当我在WebGui中打开项目并单击左侧菜单时,例如“安全& compliance” - > “配置”和在例如“静态应用程序证券测试(SAST)”的第一部分中“尝试单击使用Merge请求”按钮“配置”。

我有错误页面,URL从开始

我看到这里再次失踪了斜线...当我在TLD之后手动斜线并按Enter时,一切都完全有效。

您有一个好主意吗?问题在哪里?

我知道,这不是DNS的问题,因为ping git.domain.tld还可以。我想,有些错误需要进行配置。

\ etc et \ gitlab \ gitlab.rh 中,我已经完成了这些工具的更改

external_url 'http://git.domain.tld'
gitlab_rails['trusted_proxies'] = ['<my Ubuntu serverIP>']
gitlab_rails['initial_root_password'] = "<some good password>"
gitlab_rails['db_adapter'] = "postgresql"
gitlab_rails['db_encodig'] = "unicode"
gitlab_rails['db_database'] = "<database name>"
gitlab_rails['db_username'] = "<some username>"
gitlab_rails['db_password'] = "<some another good password>"
gitlab_rails['db_host'] = "<correct address to the nonlocalhost DB server>"
gitlab_rails['db_port'] = 5432
gitlab_workhouse['listen_network'] = "tcp"
gitlab_workhouse['listen_addr'] = "127.0.0.1:8181"
postgresql['enable'] = false
web_server['external_users'] = ['www-data']
nginx['enable'] = false
nginx['redirect_http_to_https'] = true

,我读了很多帖子,页面等,但没有成功。非常感谢您与GitLab的功能性Git的方式。

I have install new Gitlab instalation on my Ubuntu server with Apache2 websrver. I created here (in web GUI) new repository like "testik.git" and I get http path:

http://git.domain.tld/testovic/testik.git

But, when I put this in git command on my winPC

git clone http://git.domain.tld/testovic/testik.git

Command return

Cloning into 'testik'...
fatal: unable to access 'http://git.domain.tld/testovic/testik.git/': Could not resolve host: git.domain.tldtestovic

I see unnecessary trailing slash in "fatal" information and I see too, that this slash is missing after "TLD" before "username".

And same problem is, when I open project in webGUI and click on leftside menu e.g. to "Security&Compliance" --> "Configuration" and in e.g. first part named "Static Application Securty Testing (SAST)" try to click on button "Configure with a merge request".

I have got error page with URL starting with
https://git.domain.tldtestovic/testik/-/merge_requests/new?merge_request....

I see here missing slash after TLD again ... when I put manually slash after TLD and press enter, everything is fully funtional.

Do you have somebody any good idea, any solution what to do with missing slash after TLD ? Where could be the problem?

I know, that this is not problem of DNS, because ping git.domain.tld is OK. I suppose, that something wrong need to be in configuration.

In \etc\gitlab\gitlab.rh I have done these manuall changes

external_url 'http://git.domain.tld'
gitlab_rails['trusted_proxies'] = ['<my Ubuntu serverIP>']
gitlab_rails['initial_root_password'] = "<some good password>"
gitlab_rails['db_adapter'] = "postgresql"
gitlab_rails['db_encodig'] = "unicode"
gitlab_rails['db_database'] = "<database name>"
gitlab_rails['db_username'] = "<some username>"
gitlab_rails['db_password'] = "<some another good password>"
gitlab_rails['db_host'] = "<correct address to the nonlocalhost DB server>"
gitlab_rails['db_port'] = 5432
gitlab_workhouse['listen_network'] = "tcp"
gitlab_workhouse['listen_addr'] = "127.0.0.1:8181"
postgresql['enable'] = false
web_server['external_users'] = ['www-data']
nginx['enable'] = false
nginx['redirect_http_to_https'] = true

I read a lot of post, pages, etc. But without success. Thank you very much for the way to functional git with Gitlab.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文