Announcement

Collapse
No announcement yet.

issue - client checkout adds only the first code module

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • issue - client checkout adds only the first code module

    Nearly every bit of documentation I've read gives but a brief mention of "complex" projects, wherein the code for modules is kept in separate directories. I have, I believe, stumbled into one of the resulting undocumented issues, caused by my server's SVN structure.

    Apache works. I can see all of the directories when I access my Ubuntu SVN repository from my clients (MacOSX, macOS, OSX, Ubuntu, Debian, Fedora, local). Fine. If I have a structural error, that is where it probably needs to be "announced" somehow, in a note, warning, or error. The problem is that there is no structure-checking utility that I have found.

    I run the SVN and Apache2 servers on an Ubuntu 18.04.
    On it, the SVN structure is like the following:

    /var/svn/proj-svn/
    /var/svn/proj-svn/module1
    /var/svn/proj-svn/module1/branches/
    /var/svn/proj-svn/module1/tags/
    /var/svn/proj-svn/module1/trunk/
    /var/svn/proj-svn/module1/trunk/module1.py
    /var/svn/proj-svn/module2
    /var/svn/proj-svn/module2/branches/
    /var/svn/proj-svn/module2/tags/
    /var/svn/proj-svn/module2/trunk/
    /var/svn/proj-svn/module2/trunk/module2.py
    ..
    /var/svn/proj-svn/moduleN
    /var/svn/proj-svn/moduleN/branches/
    /var/svn/proj-svn/moduleN/tags/
    /var/svn/proj-svn/moduleN/trunk/
    /var/svn/proj-svn/moduleN/trunk/moduleN.py

    Each client workstation has three operating systems on it, and each user is known as <first 4 letters of hostname><3-letter acronym for the OS, such that
    I can tell exactly which system and which operating system user has files checked out.

    Examples:
    server system: hostname=robin, user=robiubu (robin + ubuntu)
    client system1: hostname=sparrow, user=sparsno (sparrow + snow leopard)
    client system2: hostname=pillbug, user=pillfed (combined from pillbug + fedora)
    client system2: hostname=pillbug, user=pilldeb (combined from pillbug + debian)
    client system2: hostname=pillbug, user=pillubu (combined from pillbug + ubuntu)

    As a client, my structure looks like one of the following:
    linux: /home/<user>/svn-work/proj-<user>/
    mac: /Users/<user>/svn-work/proj-<user>/

    When running the checkout command, I am in one of the following:
    linux: /home/<user>/svn-work/
    mac: /Users/<user>/svn-work/

    In either case, I run the following:
    $ svn checkout [url]https://192.168.0.200/svn/proj-svn/[/url] ./proj-<user>/

    SVN states that it has added:
    module1
    module1/branches/
    module1/tags/
    module1/trunk/
    module1/trunk/module1.py

    And "that's all, folks."
    It hangs there; [Ctrl]+[c] fails; I have to kill the terminal process.
    It does give me a hint, by hanging, that it has found all that it expected to find, and that it has found more than it expected to find....
    So, I am hypothesizing that my error is a result of my misunderstanding of the structure which I used to establish the initial structure on the server.
    The documentation I have read always shows the branches/, tags/, and trunk/ for a "simple" (one file + one directory) project, and eludes to "complex" projects, however, never fully shows its structure.
    Painfully, I think that I have sifted the wreckage and found my error that interpreted missing documentation to require those three directories under each module.
    Here is my guess for a corrected structure, which assumes that all directories and files are under only one trunk/ directory. I hope....

    /var/svn/proj-svn/
    /var/svn/proj-svn/branches/
    /var/svn/proj-svn/tags/
    /var/svn/proj-svn/trunk/module1/
    /var/svn/proj-svn/trunk/module1/module1.py
    /var/svn/proj-svn/trunk/module2/
    /var/svn/proj-svn/trunk/module2/module2.py
    ..
    /var/svn/proj-svn/trunk/moduleN/
    /var/svn/proj-svn/trunk/moduleN/moduleN.py

    Am I correct in my assessment of the issue?
    If not, can you elaborate?

    Thanks,
    chris

  • #2
    That repository structure seems quite normal. What version of SVN is on the server? What version is on the clients?

    Also, it's strange that the Ctrl-C did not kill the svn command line process. Was this windows or linux? That can be a real symptom of something low-level going wrong (like some drive hanging on a bad sector, etc.). If this is linux you might be able to use "strace" to determine what is happening when it hangs.

    Also, check the log files on the server. You said Apache 2.2 so that means /var/log/httpd/error_log (or ssl_access_log or access_log).

    Comment


    • #3
      Okay. I did some digging and read a few posts.
      I may have tracked it down to APACHE_RUN_DIR not being set.
      -------
      robinadm@robin:$ cd /var/log/apache2
      robinadm@robin:/var/log/apache2$ ls -alrt
      total 132

      -rw-r----- 1 root adm 1223 Mar 24 08:43 error.log
      -------
      robinadm@robin:/var/log/apache2$ cat error.log
      [Tue Mar 24 00:09:43.542387 2020] [ssl:warn] [pid 1836:tid 140322471754688] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
      [Tue Mar 24 00:09:43.542919 2020] [mpm_event:notice] [pid 1836:tid 140322471754688] AH00489: Apache/2.4.29 (Ubuntu) SVN/1.9.7 OpenSSL/1.1.1 configured -- resuming normal operations
      [Tue Mar 24 00:09:43.542929 2020] [core:notice] [pid 1836:tid 140322471754688] AH00094: Command line: '/usr/sbin/apache2'
      [Tue Mar 24 08:43:28.716643 2020] [ssl:warn] [pid 1897:tid 140468095200192] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
      [Tue Mar 24 08:43:28.804653 2020] [so:warn] [pid 1897] AH01574: module dav_module is already loaded, skipping
      [Tue Mar 24 08:43:28.812132 2020] [ssl:warn] [pid 1926:tid 140468095200192] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
      [Tue Mar 24 08:43:28.813789 2020] [mpm_event:notice] [pid 1926:tid 140468095200192] AH00489: Apache/2.4.29 (Ubuntu) SVN/1.9.7 OpenSSL/1.1.1 configured -- resuming normal operations
      [Tue Mar 24 08:43:28.813838 2020] [core:notice] [pid 1926:tid 140468095200192] AH00094: Command line: '/usr/sbin/apache2'
      -------
      robinadm@robin:/var/log/apache2$ which apache2
      /usr/sbin/apache2
      -------
      robinadm@robin:/var/log/apache2$ apache2 --version
      [Tue Mar 24 14:50:34.071865 2020] [core:warn] [pid 6196] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
      apache2: Syntax error on line 84 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
      -------
      READ:
      "Apache2 - AH00111: Config variable ${APACHE_RUN_DIR} is not defined"
      [url]https://linuxquestions.org/questions/linux-newbie-8/apache2-ah00111-config-variable-%24%7Bapache_run_dir%7D-is-not-defined-4175635791/[/url]

      "
      "Apache2 returning 'APACHE_RUN_DIR' error..."
      [url]https://unix.stackexchange.com/questions/512723/apache2-returning-apache-run-dir-error-on-docker-container[/url]
      -------
      robinadm@robin:/var/log/apache2$ apache2 -S
      [Tue Mar 24 14:56:19.455256 2020] [core:warn] [pid 6585] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
      apache2: Syntax error on line 84 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
      -------
      robinadm@robin:/var/log/apache2$ apache2ctl -S
      [Tue Mar 24 14:57:43.975813 2020] [so:warn] [pid 6597] AH01574: module dav_module is already loaded, skipping
      AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/default-ssl.conf:
      SSLCertificateKeyFile: file '/etc/ssl/private/ssl-cert-snakeoil.key' does not exist or is empty
      Action '-S' failed.
      The Apache error log may have more information.
      -------
      NOTE:
      The SSL error may exist due to the Apache2 error, or vice-versa.
      I am uncertain, for certain....
      -------
      OPENSSL
      robinadm@robin:/var/log/apache2$ openssl version
      OpenSSL 1.1.1 11 Sep 2018

      robinadm@robin:/var/log/apache2$ which openssl
      /usr/bin/openssl

      robinadm@robin:/var/log/apache2$ whereis openssl
      openssl: /usr/bin/openssl /usr/share/man/man1/openssl.1ssl.gz

      The commands to install OpenSSL:
      $ sudo openssl genrsa -out ca.key 2048
      $ sudo openssl req -nodes -new -key ca.key -out ca.csr
      $ sudo openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
      -------
      SETTINGS: /etc/apache2/apache.conf

      ServerRoot "/etc/apache2"
      ServerName robin
      # ServerName 192.168.0.200
      #DefaultRuntimeDir ${APACHE_RUN_DIR}
      APACHE_RUN_DIR=/var/run/apache2
      DefaultRuntimeDir ${APACHE_RUN_DIR}
      PidFile ${APACHE_PID_FILE}
      Timeout 300
      KeepAlive On
      MaxKeepAliveRequests 100
      KeepAliveTimeout 5
      User ${APACHE_RUN_USER}
      Group ${APACHE_RUN_GROUP}
      HostnameLookups On
      ErrorLog ${APACHE_LOG_DIR}/error.log
      LogLevel warn
      Include ports.conf
      &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
      Require all denied
      &lt;/Directory&gt;

      &lt;Directory /usr/share&gt;
      AllowOverride None
      Require all granted
      &lt;/Directory&gt;

      &lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
      &lt;/Directory&gt;

      &lt;Directory /srv/&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
      Require all granted
      &lt;/Directory&gt;

      &lt;Directory /var/svn/svn-notw&gt;
      Deny from all
      Allow from 127.0.0.1 ::1
      Allow from localhost
      Allow from 192.168
      &lt;/Directory&gt;
      AccessFileName .htaccess

      &lt;FilesMatch "^\.ht"&gt;
      Require all denied
      &lt;/FilesMatch&gt;

      LogFormat "%v:%p %h %l %u %t "%r" %&gt;s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
      LogFormat "%h %l %u %t "%r" %&gt;s %O "%{Referer}i" "%{User-Agent}i"" combined
      LogFormat "%h %l %u %t "%r" %&gt;s %O" common
      LogFormat "%{Referer}i -&gt; %U" referer
      LogFormat "%{User-agent}i" agent
      IncludeOptional conf-enabled/*.conf
      IncludeOptional sites-enabled/*.conf
      -------
      SETTINGS: /etc/apache2/envvars

      if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
      SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
      else
      SUFFIX=
      fi

      export APACHE_RUN_USER=www-data
      export APACHE_RUN_GROUP=www-data
      export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
      export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
      export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
      export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
      export LANG=C
      export LANG
      -------
      robinadm@robin:/etc/apache2/conf-enabled$ ls
      blue (=actually running)
      charset.conf
      security.conf
      localized-error-pages.conf
      serve-cgi-bin.conf
      -------
      robinadm@robin:/etc/apache2/sites-enabled$ ls
      white (=not actually running, even though still in the directory?)
      000-default.conf
      notwrepos.conf-24feb2020
      notwrepos.conf
      blue (=actually running)
      [url]www.robin.com.conf[/url]
      default-ssl.conf
      svn-notw.conf
      webdav.conf
      -------
      robinadm@robin:/etc/apache2/mods-enabled$ ls
      blue (=actually running)
      access_compat.load dav_fs.conf mpm_event.conf
      alias.conf dav_fs.load mpm_event.load
      alias.load dav.load negotiation.conf
      auth_basic.load dav_svn.conf negotiation.load
      auth_digest.load dav_svn.load reqtimeout.conf
      authn_core.load deflate.conf reqtimeout.load
      authn_file.load deflate.load setenvif.conf
      authz_core.load dir.conf setenvif.load
      authz_host.load dir.load socache_shmcb.load
      authz_svn.load env.load ssl.conf
      authz_user.load filter.load ssl.load
      autoindex.conf mime.conf status.conf
      autoindex.load mime.load status.load
      -------
      ssl.conf
      &lt;IfModule mod_ssl.c&gt;
      SSLRandomSeed startup builtin
      SSLRandomSeed startup file:/dev/urandom 512
      SSLRandomSeed connect builtin
      SSLRandomSeed connect file:/dev/urandom 512
      AddType application/x-x509-ca-cert .crt
      AddType application/x-pkcs7-crl .crl
      SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
      SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
      SSLSessionCacheTimeout 300
      SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
      SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
      SSLSessionCacheTimeout 300
      SSLCipherSuite HIGH:!aNULL
      SSLProtocol all -SSLv3
      &lt;/IfModule&gt;
      -------
      dav_svn.conf

      &lt;Location /svn&gt;
      DAV svn
      SVNParentPath /var/svn/svn-notw
      AuthType Basic
      AuthName "SVN Repository"
      #AuthUserFile /etc/apache2/dav_svn.passwd
      # Instead of svn-auth-file, I also use the same file listed below,
      # otherwise there are security hole possibilities in the "many".
      AuthUserFile /etc/apache2/.htpasswd
      Require valid-user
      &lt;/Location&gt;

      -------
      NOTE:
      Aha! The same [unset] APACHE_RUN_DIR is her as well,
      so perhaps that is why the SSL errors show up, as "snowball" errors.
      -------
      QUESTION:
      Do I need to add the following line into a startup/configuration file somewhere?
      export APACHE_RUN_DIR=/var/run/apache2
      -------

      Does the missing globally-accessed variable, APACHE_RUN_DIR, seem to be the culprit?
      Where is it usually set? And, if it is usually set to /var/run/apache2, isn't that presented as
      a default or commented-out line somewhere, and, if it is, where is that location?

      My /var/run/apache2 directory contains a single file, apache2.pid, which contains a four-digit
      process id number, 1926.

      Thanks and best wishes,
      chris

      Comment


      • #4
        Once again when I edited my file (before it was okayed), I was given the message "You are not authorized to update this post." I mentioned this before but the forum seems intent on rejecting any edits I perform, so that to not lose the fixes and additions, I have to submit the second one now (which has everything from the first). Please be careful. Last time you cleared away the preceding post, it wiped out the original posts and replies completely. Something is definitely wrong here.

        chris

        =========
        UPDATED
        =========

        Okay. I did some digging and read a few posts.
        I may have tracked it down to APACHE_RUN_DIR not being set.
        I added a line into the /etc/apache2/apache.conf file and will reload/restart apache2 afterwards.
        -------
        robinadm@robin:$ cd /var/log/apache2
        robinadm@robin:/var/log/apache2$ ls -alrt error.log
        total 132

        -rw-r----- 1 root adm 1223 Mar 24 08:43 error.log
        -------
        robinadm@robin:/var/log/apache2$ cat error.log
        [Tue Mar 24 00:09:43.542387 2020] [ssl:warn] [pid 1836:tid 140322471754688] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
        [Tue Mar 24 00:09:43.542919 2020] [mpm_event:notice] [pid 1836:tid 140322471754688] AH00489: Apache/2.4.29 (Ubuntu) SVN/1.9.7 OpenSSL/1.1.1 configured -- resuming normal operations
        [Tue Mar 24 00:09:43.542929 2020] [core:notice] [pid 1836:tid 140322471754688] AH00094: Command line: '/usr/sbin/apache2'
        [Tue Mar 24 08:43:28.716643 2020] [ssl:warn] [pid 1897:tid 140468095200192] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
        [Tue Mar 24 08:43:28.804653 2020] [so:warn] [pid 1897] AH01574: module dav_module is already loaded, skipping
        [Tue Mar 24 08:43:28.812132 2020] [ssl:warn] [pid 1926:tid 140468095200192] AH01909: robin:443:0 server certificate does NOT include an ID which matches the server name
        [Tue Mar 24 08:43:28.813789 2020] [mpm_event:notice] [pid 1926:tid 140468095200192] AH00489: Apache/2.4.29 (Ubuntu) SVN/1.9.7 OpenSSL/1.1.1 configured -- resuming normal operations
        [Tue Mar 24 08:43:28.813838 2020] [core:notice] [pid 1926:tid 140468095200192] AH00094: Command line: '/usr/sbin/apache2'
        -------
        robinadm@robin:/var/log/apache2$ which apache2
        /usr/sbin/apache2
        -------
        robinadm@robin:/var/log/apache2$ apache2 --version
        [Tue Mar 24 14:50:34.071865 2020] [core:warn] [pid 6196] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
        apache2: Syntax error on line 84 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
        -------
        READ:
        "Apache2 - AH00111: Config variable ${APACHE_RUN_DIR} is not defined"
        [URL="https://linuxquestions.org/questions/linux-newbie-8/apache2-ah00111-config-variable-%24%7Bapache_run_dir%7D-is-not-defined-4175635791/"]https://linuxquestions.org/questions...ed-4175635791/[/URL]

        "
        "Apache2 returning 'APACHE_RUN_DIR' error..."
        [URL="https://unix.stackexchange.com/questions/512723/apache2-returning-apache-run-dir-error-on-docker-container"]https://unix.stackexchange.com/quest...cker-container[/URL]
        -------
        robinadm@robin:/var/log/apache2$ apache2 -S
        [Tue Mar 24 14:56:19.455256 2020] [core:warn] [pid 6585] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
        apache2: Syntax error on line 84 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
        -------
        robinadm@robin:/var/log/apache2$ apache2ctl -S
        [Tue Mar 24 14:57:43.975813 2020] [so:warn] [pid 6597] AH01574: module dav_module is already loaded, skipping
        AH00526: Syntax error on line 33 of /etc/apache2/sites-enabled/default-ssl.conf:
        SSLCertificateKeyFile: file '/etc/ssl/private/ssl-cert-snakeoil.key' does not exist or is empty
        Action '-S' failed.
        The Apache error log may have more information.
        -------
        NOTE:
        The SSL error may exist due to the Apache2 error, or vice-versa.
        I am uncertain, for certain....
        -------
        OPENSSL
        robinadm@robin:/var/log/apache2$ openssl version
        OpenSSL 1.1.1 11 Sep 2018

        robinadm@robin:/var/log/apache2$ which openssl
        /usr/bin/openssl

        robinadm@robin:/var/log/apache2$ whereis openssl
        openssl: /usr/bin/openssl /usr/share/man/man1/openssl.1ssl.gz

        The commands to install OpenSSL:
        $ sudo openssl genrsa -out ca.key 2048
        $ sudo openssl req -nodes -new -key ca.key -out ca.csr
        $ sudo openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
        -------
        SETTINGS: /etc/apache2/apache.conf

        ServerRoot "/etc/apache2"
        ServerName robin
        # ServerName 192.168.0.200
        #DefaultRuntimeDir ${APACHE_RUN_DIR}
        APACHE_RUN_DIR=/var/run/apache2
        DefaultRuntimeDir ${APACHE_RUN_DIR}
        PidFile ${APACHE_PID_FILE}
        Timeout 300
        KeepAlive On
        MaxKeepAliveRequests 100
        KeepAliveTimeout 5
        User ${APACHE_RUN_USER}
        Group ${APACHE_RUN_GROUP}
        HostnameLookups On
        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        Include ports.conf
        <Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
        </Directory>

        <Directory /usr/share>
        AllowOverride None
        Require all granted
        </Directory>

        <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
        </Directory>

        <Directory /srv/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
        </Directory>

        <Directory /var/svn/svn-notw>
        Deny from all
        Allow from 127.0.0.1 ::1
        Allow from localhost
        Allow from 192.168
        </Directory>
        AccessFileName .htaccess

        <FilesMatch "^\.ht">
        Require all denied
        </FilesMatch>

        LogFormat "%v:%p %h %l %u %t "%r" %&gt;s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
        LogFormat "%h %l %u %t "%r" %&gt;s %O "%{Referer}i" "%{User-Agent}i"" combined
        LogFormat "%h %l %u %t "%r" %&gt;s %O" common
        LogFormat "%{Referer}i -&gt; %U" referer
        LogFormat "%{User-agent}i" agent
        IncludeOptional conf-enabled/*.conf
        IncludeOptional sites-enabled/*.conf
        -------
        SETTINGS: /etc/apache2/envvars

        if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
        SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
        else
        SUFFIX=
        fi

        export APACHE_RUN_USER=www-data
        export APACHE_RUN_GROUP=www-data
        export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
        export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
        export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
        export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
        export LANG=C
        export LANG
        -------
        robinadm@robin:/etc/apache2/conf-enabled$ ls

        these are displayed in blue text (=actually running)
        charset.conf
        security.conf
        localized-error-pages.conf
        serve-cgi-bin.conf
        -------
        robinadm@robin:/etc/apache2/sites-enabled$ ls

        these are displayed in white text (=not actually running, even though still in the directory?)
        000-default.conf
        notwrepos.conf-24feb2020
        notwrepos.conf

        these are displayed in blue text (=actually running)
        [URL="http://www.robin.com.conf"]www.robin.com.conf[/URL]
        default-ssl.conf
        svn-notw.conf
        webdav.conf
        -------
        robinadm@robin:/etc/apache2/mods-enabled$ ls

        these are displayed in blue text (=actually running)

        access_compat.load dav_fs.conf mpm_event.conf
        alias.conf dav_fs.load mpm_event.load
        alias.load dav.load negotiation.conf
        auth_basic.load dav_svn.conf negotiation.load
        auth_digest.load dav_svn.load reqtimeout.conf
        authn_core.load deflate.conf reqtimeout.load
        authn_file.load deflate.load setenvif.conf
        authz_core.load dir.conf setenvif.load
        authz_host.load dir.load socache_shmcb.load
        authz_svn.load env.load ssl.conf
        authz_user.load filter.load ssl.load
        autoindex.conf mime.conf status.conf
        autoindex.load mime.load status.load
        -------
        Settings in file: ssl.conf

        <IfModule mod_ssl.c>
        SSLRandomSeed startup builtin
        SSLRandomSeed startup file:/dev/urandom 512
        SSLRandomSeed connect builtin
        SSLRandomSeed connect file:/dev/urandom 512
        AddType application/x-x509-ca-cert .crt
        AddType application/x-pkcs7-crl .crl
        SSLPassPhraseDialog exec:/usr/share/apache2/ask-for-passphrase
        SSLSessionCache shmcb:${APACHE_RUN_DIR}/ssl_scache(512000)
        SSLSessionCacheTimeout 300
        SSLCipherSuite HIGH:!aNULL
        SSLProtocol all -SSLv3
        </IfModule>
        -------
        Settings in file: dav_svn.conf

        <Location /svn>
        DAV svn
        SVNParentPath /var/svn/svn-notw
        AuthType Basic
        AuthName "SVN Repository"
        #AuthUserFile /etc/apache2/dav_svn.passwd
        # Instead of svn-auth-file, I also use the same file listed below,
        # otherwise there are security hole possibilities in the "many".
        AuthUserFile /etc/apache2/.htpasswd
        Require valid-user
        </Location>

        -------
        NOTE:
        Aha! The same [unset] APACHE_RUN_DIR is her as well,
        so perhaps that is why the SSL errors show up, as "snowball" errors.
        -------
        QUESTION:
        Do I need to add the following line into a startup/configuration file somewhere?
        export APACHE_RUN_DIR=/var/run/apache2
        -------
        Does the missing globally-accessed variable, APACHE_RUN_DIR, seem to be the culprit?
        Where is it usually set? And, if it is usually set to /var/run/apache2, isn't that presented as
        a default or commented-out line somewhere, and, if it is, where is that location?

        My /var/run/apache2 directory contains a single file, apache2.pid, which contains a four-digit
        process id number, 1926.

        Thanks and best wishes,
        chris

        Comment


        • #5
          First, apparently when a post is not "Approved" it can't be edited. Given our difficulties with SPAM we've tightened things down to ugly levels. There are things you just can't unsee... Anyway, sorry for the troubles. I've left both postings and approved them both. Let me know if I can clobber the 1st one (seems likely).

          Second, I really get unhappy when the Linux distros make gratuitous and arbitrary changes to the sub-components like Apache. It very much means that expertise is not transferable. I help administrate on RHEL, CentOS, SUSE but not Ubuntu. So this is on the Ubuntu folks. They think they're helping but, well, not so much.

          The definition of APACHE_RUN_DIR is clearly supposed to be in /etc/apache2/envvars and that should be, just as clearly, executed BEFORE it reads the /etc/apache2/apache.conf file. Apparently something is getting in the way. I'd check for directory and file permissions and make sure all are properly owned by the account that Apache runs as on Ubuntu ("apache"? "httpd"? ???) and that the permissions are such that they are searchable/readable. Perhaps you've mistakenly changed one to be owned by root?

          Comment

          Working...
          X