AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[subversion](unix)

Martin Hope
MoteCL
Asked: 2018-08-21 11:24:16 +0800 CST

为什么制作两次目录websvn

  • 0

我websvn在 svncreate 中创建一个存储库时使用,我可以在 websvn 视图中两次看到具有相同名称的相同存储库,但在服务器中我只能看到一个目录

网络虚拟机 在此处输入图像描述。

服务器

在此处输入图像描述

配置.php

$config->parentPath("/var/lib/svn");
$config->addRepository("Mantencion", "file:///var/lib/svn/Mantencion");
$config->addRepository("Mantenedor", "file:///var/lib/svn/Mantenedor");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();

使用 svncreate 或在websvm/include/config.php. 将不胜感激任何帮助。问候

ubuntu subversion
  • 1 个回答
  • 24 Views
Martin Hope
MoteCL
Asked: 2018-08-21 06:10:47 +0800 CST

配置 websvn Ubuntu

  • 1

我需要websvn为我的程序创建一个服务器。

我确实在服务器上安装了 websvn 并开始工作,但向我显示了这条消息。

Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.

所以我做了一个 nano include/config.php

    <?php
$config->parentPath("/var/lib/svn");
$config->addRepository("FirstRepo", "file:///var/lib/svn/FirstRepo");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
    ?>

然后一个sudo /etc/init.d/apache2 restart

现在,如果我转到 URL http://192.168.x.xxx/websvn/,该网站将变为空白,并且视图会丢失

这是我有我的回购协议的路线,我必须在其中/var/lib/svn文件夹FirstRepo

不知道我是不是做错了什么。

apt list php-xml

Listing... Done
php-xml/xenial-updates,xenial-updates 1:7.0+35ubuntu6.1 all
N: There is 1 additional version. Please use the '-a' switch to see it

ls -la /var/lib/svn/FirstRepo

drwxrwxr-x 6 root     root 4096 Aug 20 10:52 .
drwxrwxr-x 5 www-data root 4096 Aug 20 10:52 ..
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 conf
drwxrwsr-x 6 root     root 4096 Aug 20 10:52 db
-rwxrwxr-x 1 root     root    2 Aug 20 10:52 format
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 hooks
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 locks
-rwxrwxr-x 1 root     root  246 Aug 20 10:52 README.txt
ubuntu subversion
  • 1 个回答
  • 259 Views
Martin Hope
mulllhausen
Asked: 2017-12-05 03:40:54 +0800 CST

带有 apache2 配置路径错误的 SVN

  • 0

我刚刚svn通过 https (with apache2) 进行了配置。我可以svn checkout,但是提交失败了。我可以从apache2日志中看到,svn服务器正在错误的位置查找用于执行提交的存储库。这是我的apache2443.example.com.conf 文件:

<IfModule mod_ssl.c>
    <virtualhost *:443>
    # requests to https://example.com land here
    ServerName example.com
    DocumentRoot /home/me/svn-repos

    # global properties for all directories in this site
    <Location />
        # do not use .htaccess files
        allowoverride none
        #DirectoryIndex index.html
        #require all granted                                                                                    

        DAV svn
        SVNParentPath /home/me/svn-repos
        AuthType Basic
        AuthName "svn repositories"
        AuthUserFile blah.passwd
        #<LimitExcept GET PROPFIND OPTIONS REPORT>
        Require valid-user
        #</LimitExcept>
    </Location>

    SSLEngine On
    SSLCertificateFile blah
    SSLCertificateKeyFile blah

    <FilesMatch "\.(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
    </FilesMatch>

    ErrorDocument 400 /index.html
    ErrorDocument 401 /index.html
    # lots more ErrorDocument entries

    </virtualhost>
</IfModule>

请注意,我所有的svn存储库都在/home/me/svn-repos(例如/home/me/svn-repos/repo1,,/home/me/svn-repos/repo2等)下的目录中

因此,我查看了我的一个存储库的新本地副本:

$ cd /tmp
$ svn co --username me https://example.com/repo1 repo1
Authentication realm: <https://example.com:443> svn repositories
Password for 'me': ***

A repo1/file1.txt
Checked out revision 1.

到目前为止,一切都很好。但是当我尝试提交时:

$ touch file2.txt
$ svn add file2.txt
A     file2.txt
$ svn ci file2.txt -m added
Authentication realm: <https://example.com:443> svn repositories
Password for 'me': ***

Adding         file2.txt
svn: E175009: Commit failed (details follow):
svn: E175009: The XML response contains invalid XML
svn: E130003: Malformed XML: no element found

我可以从apache2错误日志中看到svn服务器在错误的位置寻找存储库:

$ sudo tail -4 /var/log/apache2/error.log
[Sat Dec 02 20:23:29.626227 2017] [:error] [pid 123] (20014)Internal error (specific information not available): [client x.x.x.x:x] Can't open file '/home/me/svn-repos/index.html/format': Not a directory
[Sat Dec 02 20:23:29.626264 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not fetch resource information.  [404, #0]
[Sat Dec 02 20:23:29.626272 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not find the requested SVN filesystem  [404, #20]
[Sat Dec 02 20:23:29.626277 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not find the requested SVN filesystem  [404, #20]

它正在寻找的文件是/home/me/svn-repos/repo1/format,但是它没有附加正确的路径才能找到该文件。我怀疑这意味着我需要在我的apache2443.example.com.conf 文件中放一些东西,但我想不出是什么。

更新

我对 443.example.com.conf 文件进行了以下更改:

# ErrorDocument 404 /index.html
ErrorDocument 404 /indexyz.html

现在,当我尝试提交时,错误消息变为:

[Sat Dec 02 20:39:00.153942 2017] [:error] [pid 123] (20014)Internal error (specific information not available): [client 192.168.1.177:50228] Can't open file '/home/me/svn-repos/indexyz.html/format': No such file or directory
[Sat Dec 02 20:39:00.153979 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not fetch resource information.  [404, #0]
[Sat Dec 02 20:39:00.153987 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not find the requested SVN filesystem  [404, #2]
[Sat Dec 02 20:39:00.153992 2017] [dav:error] [pid 123] [client x.x.x.x:x] Could not find the requested SVN filesystem  [404, #2]

但这仍然没有多大帮助。

apache-httpd subversion
  • 2 个回答
  • 1588 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve