Upgrade from 2.1.3 to 2.1.3_1 borked

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrade from 2.1.3 to 2.1.3_1 borked

Doug Sampson
I just noticed that the foswiki site doesn't come up correctly after an upgrade from 2.1.3 to 2.1.3_1. About two weeks ago there was also an upgrade to apache24 so keep that in mind as we read on.

When attempting to open http://aries.dawnsign.com/foswiki/bin/view, I receive this error message:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [hidden email] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.



root@aries:/usr/local/www/foswiki # tail /var/log/httpd-error.log
[Fri Jul 07 13:01:37.826769 2017] [cgi:error] [pid 51344] [client 192.168.101.35:52476] End of script output before headers: view, referer: http://aries.dawnsign.com/foswiki/bin/view/OpsSupport/WebHome
[Fri Jul 07 13:11:22.648532 2017] [cgi:error] [pid 51345] [client 192.168.101.149:19468] AH01215: env: perl: : /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:11:22.648626 2017] [cgi:error] [pid 51345] [client 192.168.101.149:19468] AH01215: No such file or directory: /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:11:22.648656 2017] [cgi:error] [pid 51345] [client 192.168.101.149:19468] End of script output before headers: view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:11:35.369930 2017] [cgi:error] [pid 51343] [client 192.168.101.149:19470] AH01215: env: perl: : /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:11:35.370018 2017] [cgi:error] [pid 51343] [client 192.168.101.149:19470] AH01215: No such file or directory: /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:11:35.370056 2017] [cgi:error] [pid 51343] [client 192.168.101.149:19470] End of script output before headers: view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:16:30.962016 2017] [cgi:error] [pid 51529] [client 192.168.101.149:19534] AH01215: env: perl: : /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:16:30.962073 2017] [cgi:error] [pid 51529] [client 192.168.101.149:19534] AH01215: No such file or directory: /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
[Fri Jul 07 13:16:30.962096 2017] [cgi:error] [pid 51529] [client 192.168.101.149:19534] End of script output before headers: view, referer: http://aries.dawnsign.com/
root@aries:/usr/local/www/foswiki #



root@aries:/usr/local/www/foswiki # ll ./bin
total 153
-r-xr-xr-x  1 www  www  6510 Feb 12 13:59 .htaccess-advanced.txt*
-r-xr-xr-x  1 www  www  2353 Feb 12 13:59 .htaccess-basic.txt*
-r-xr-xr-x  1 www  www  3758 Jul  6 14:48 LocalLib.cfg*
-r--r--r--  1 www  www  3758 Feb 12 13:59 LocalLib.cfg.txt
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 attach*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 changes*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 compare*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 compareauth*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 configure*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 edit*
-r-xr-xr-x  1 www  www  3142 Feb 12 13:59 foswiki.fcgi*
-r-xr-xr-x  1 www  www  1527 Feb 12 14:00 jsonrpc*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 login*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 logon*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 manage*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 oops*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 preview*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 previewauth*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rdiff*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rdiffauth*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 register*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rename*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 resetpasswd*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rest*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 restauth*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 save*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 search*
-r--r--r--  1 www  www  3978 Feb 12 13:59 setlib.cfg
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 statistics*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 upload*
-r-xr-xr-x  1 www  www  1875 Feb 12 13:59 view*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewauth*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewfile*
-r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewfileauth*
root@aries:/usr/local/www/foswiki #


So the path is correct but I'm unable to execute bin/view. I've tried googling using the error message from the log to no avail. I'm running FreeBSD 11.0. I've checked the installation instructions at https://foswiki.org/System.InstallationGuide.

What I've done so far:
1) regenerated an Apache24 config file;
2) chown -R www:www /usr/local/www/foswiki;
3) sh tools/fix_file_permissions.sh;
4) bootstrapping presents me with a standard menu from which at this point all correct links fail with the above error message;
5) perl tools/dependencies;

root@aries:/usr/local/www/foswiki # tools/configure -check -verbose
** Be sure to run as 'perl -CA tools/configure' if any settings will use utf-8 data

Checking:General settings -> File System Paths:  {TempfileDir}
WARNING:    {TempfileDir} is not set (or is set to nothing). Temporary files will be written to: =/tmp=
   Other possible alternatives:
      * Alternate Foswiki suggested location: =/usr/local/www/foswiki/working/requestTmp=

      * Perl detected temporary file location: =/tmp=

Checking:Mail -> Advanced settings:  {MailProgram}
   None of the below parameters are used by the configured Email method MailProgram

Checking:Security and Authentication -> Passwords:  {Htpasswd}{Encoding}
      * Crypt::PasswdMD5 1.40 installed for use or auto-detection of apache-md5
      * Crypt::Eksblowfish::Bcrypt is not installed. use or auto-detection of bcrypt: *Warning suppressed:* No passwords using this encoding were found in /usr/local/www/foswiki/data/.htpasswd.
      * Crypt::PasswdMD5 1.40 installed for use or auto-detection of crypt-md5
      * Digest::MD5 2.54 installed for use or auto-detection of htdigest-md5
      * Digest::SHA 5.95_01 installed for use or auto-detection of sha1

Checking:Extensions -> Extension operation and maintenance -> Enable or disable installed extensions:  {Plugins}{MailerContribPlugin}{Enabled}
   This plugin is part of the MailerContrib, and must be enabled for mail notification from the browser to work

Checking:Security and Authentication -> Sessions:  {UseClientSessions}
      * CGI::Session 4.48 installed for persistent session support
      * CGI::Cookie 4.36 installed for persistent session support

Checking:Logging and Statistics -> Logging:  {LogFileName}
   This setting might be used by old plugins that have not been migrated to the Foswiki API.
If not provided, the Foswiki core will provide a default setting of  =/usr/local/www/foswiki/working/logs/event.log=.

   It is not used by the PlainFile logger.

Checking:Mail -> Basic settings & Auto-configure:  {WebMasterEmail}
   Email::MIME 1.940 installed for Required for Email Support

Checking:Store -> Store Implementation:  {NFCNormalizeFilenames}
   Data Storage allows NFC filenames

Checking:Extensions -> Extension operation and maintenance -> Enable or disable installed extensions:  {Plugins}{CompareRevisionsAddonPlugin}{Enabled}
   HTML::TreeBuilder 5.06 installed for Recommended minimum version

Checking:Extensions -> Extension operation and maintenance -> Enable or disable installed extensions:  {Plugins}{EditRowPlugin}{Enabled}
   This plugin replaces EditTablePlugin

Checking:Security and Authentication -> Login:  {AuthScripts}
   The following scripts can be run by unauthenticated users: =changes, compare, foswiki.fcgi, jsonrpc, oops, preview, rdiff, register, resetpasswd, rest, search, view, viewfile=

Checking:Miscellaneous -> Operating System:  {DetailedOS}
   You are running CGI Version 4.36.

Checking:Miscellaneous -> Rendering control:  {TemplatePath}
   Expands to:
      * /usr/local/www/foswiki/templates/$web/$name.$skin.tmpl
      *  /usr/local/www/foswiki/templates/$name.$skin.tmpl
      *  $web.$skinSkin$nameTemplate
      *  System.$skinSkin$nameTemplate
      *  /usr/local/www/foswiki/templates/$web/$name.tmpl
      *  /usr/local/www/foswiki/templates/$name.tmpl
      *  $web.$nameTemplate
      *  System.$nameTemplate
root@aries:/usr/local/www/foswiki #



Does anyone see anything amiss? I'd be happy to supply additional information if needed. The standard apache24 server functions correctly as far as I can tell.

~Doug

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Foswiki-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/foswiki-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade from 2.1.3 to 2.1.3_1 borked

Doug Sampson
> -----Original Message-----
> From: Doug Sampson [mailto:[hidden email]]
> Sent: Friday, July 07, 2017 1:40 PM
> To: [hidden email]
> Subject: [Foswiki-discuss] Upgrade from 2.1.3 to 2.1.3_1 borked
>
> I just noticed that the foswiki site doesn't come up correctly after an
> upgrade from 2.1.3 to 2.1.3_1. About two weeks ago there was also an
> upgrade to apache24 so keep that in mind as we read on.
>
> When attempting to open http://aries.dawnsign.com/foswiki/bin/view, I
> receive this error message:
>
>
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator at [hidden email] to inform
> them of the time this error occurred, and the actions you performed just
> before this error.
>
> More information about this error may be available in the server error
> log.
>
>
>
> root@aries:/usr/local/www/foswiki # tail /var/log/httpd-error.log
> [Fri Jul 07 13:01:37.826769 2017] [cgi:error] [pid 51344] [client
> 192.168.101.35:52476] End of script output before headers: view, referer:
> http://aries.dawnsign.com/foswiki/bin/view/OpsSupport/WebHome
> [Fri Jul 07 13:11:22.648532 2017] [cgi:error] [pid 51345] [client
> 192.168.101.149:19468] AH01215: env: perl: :
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:11:22.648626 2017] [cgi:error] [pid 51345] [client
> 192.168.101.149:19468] AH01215: No such file or directory:
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:11:22.648656 2017] [cgi:error] [pid 51345] [client
> 192.168.101.149:19468] End of script output before headers: view,
> referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:11:35.369930 2017] [cgi:error] [pid 51343] [client
> 192.168.101.149:19470] AH01215: env: perl: :
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:11:35.370018 2017] [cgi:error] [pid 51343] [client
> 192.168.101.149:19470] AH01215: No such file or directory:
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:11:35.370056 2017] [cgi:error] [pid 51343] [client
> 192.168.101.149:19470] End of script output before headers: view,
> referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:16:30.962016 2017] [cgi:error] [pid 51529] [client
> 192.168.101.149:19534] AH01215: env: perl: :
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:16:30.962073 2017] [cgi:error] [pid 51529] [client
> 192.168.101.149:19534] AH01215: No such file or directory:
> /usr/local/www/foswiki/bin/view, referer: http://aries.dawnsign.com/
> [Fri Jul 07 13:16:30.962096 2017] [cgi:error] [pid 51529] [client
> 192.168.101.149:19534] End of script output before headers: view,
> referer: http://aries.dawnsign.com/
> root@aries:/usr/local/www/foswiki #
>
>
>
> root@aries:/usr/local/www/foswiki # ll ./bin
> total 153
> -r-xr-xr-x  1 www  www  6510 Feb 12 13:59 .htaccess-advanced.txt*
> -r-xr-xr-x  1 www  www  2353 Feb 12 13:59 .htaccess-basic.txt*
> -r-xr-xr-x  1 www  www  3758 Jul  6 14:48 LocalLib.cfg*
> -r--r--r--  1 www  www  3758 Feb 12 13:59 LocalLib.cfg.txt
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 attach*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 changes*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 compare*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 compareauth*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 configure*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 edit*
> -r-xr-xr-x  1 www  www  3142 Feb 12 13:59 foswiki.fcgi*
> -r-xr-xr-x  1 www  www  1527 Feb 12 14:00 jsonrpc*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 login*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 logon*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 manage*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 oops*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 preview*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 previewauth*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rdiff*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rdiffauth*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 register*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rename*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 resetpasswd*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 rest*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 restauth*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 save*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 search*
> -r--r--r--  1 www  www  3978 Feb 12 13:59 setlib.cfg
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 statistics*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 upload*
> -r-xr-xr-x  1 www  www  1875 Feb 12 13:59 view*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewauth*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewfile*
> -r-xr-xr-x  1 www  www  1938 Feb 12 13:59 viewfileauth*
> root@aries:/usr/local/www/foswiki #
>
>
> So the path is correct but I'm unable to execute bin/view. I've tried
> googling using the error message from the log to no avail. I'm running
> FreeBSD 11.0. I've checked the installation instructions at
> https://foswiki.org/System.InstallationGuide.
>
> What I've done so far:
> 1) regenerated an Apache24 config file;
> 2) chown -R www:www /usr/local/www/foswiki;
> 3) sh tools/fix_file_permissions.sh;
> 4) bootstrapping presents me with a standard menu from which at this
> point all correct links fail with the above error message;
> 5) perl tools/dependencies;
>
> root@aries:/usr/local/www/foswiki # tools/configure -check -verbose
> ** Be sure to run as 'perl -CA tools/configure' if any settings will use
> utf-8 data
>
> Checking:General settings -> File System Paths:  {TempfileDir}
> WARNING:    {TempfileDir} is not set (or is set to nothing). Temporary
> files will be written to: =/tmp=
>    Other possible alternatives:
>       * Alternate Foswiki suggested location:
> =/usr/local/www/foswiki/working/requestTmp=
>
>       * Perl detected temporary file location: =/tmp=
>
> Checking:Mail -> Advanced settings:  {MailProgram}
>    None of the below parameters are used by the configured Email method
> MailProgram
>
> Checking:Security and Authentication -> Passwords:  {Htpasswd}{Encoding}
>       * Crypt::PasswdMD5 1.40 installed for use or auto-detection of
> apache-md5
>       * Crypt::Eksblowfish::Bcrypt is not installed. use or auto-
> detection of bcrypt: *Warning suppressed:* No passwords using this
> encoding were found in /usr/local/www/foswiki/data/.htpasswd.
>       * Crypt::PasswdMD5 1.40 installed for use or auto-detection of
> crypt-md5
>       * Digest::MD5 2.54 installed for use or auto-detection of htdigest-
> md5
>       * Digest::SHA 5.95_01 installed for use or auto-detection of sha1
>
> Checking:Extensions -> Extension operation and maintenance -> Enable or
> disable installed extensions:  {Plugins}{MailerContribPlugin}{Enabled}
>    This plugin is part of the MailerContrib, and must be enabled for mail
> notification from the browser to work
>
> Checking:Security and Authentication -> Sessions:  {UseClientSessions}
>       * CGI::Session 4.48 installed for persistent session support
>       * CGI::Cookie 4.36 installed for persistent session support
>
> Checking:Logging and Statistics -> Logging:  {LogFileName}
>    This setting might be used by old plugins that have not been migrated
> to the Foswiki API.
> If not provided, the Foswiki core will provide a default setting of
> =/usr/local/www/foswiki/working/logs/event.log=.
>
>    It is not used by the PlainFile logger.
>
> Checking:Mail -> Basic settings & Auto-configure:  {WebMasterEmail}
>    Email::MIME 1.940 installed for Required for Email Support
>
> Checking:Store -> Store Implementation:  {NFCNormalizeFilenames}
>    Data Storage allows NFC filenames
>
> Checking:Extensions -> Extension operation and maintenance -> Enable or
> disable installed extensions:
> {Plugins}{CompareRevisionsAddonPlugin}{Enabled}
>    HTML::TreeBuilder 5.06 installed for Recommended minimum version
>
> Checking:Extensions -> Extension operation and maintenance -> Enable or
> disable installed extensions:  {Plugins}{EditRowPlugin}{Enabled}
>    This plugin replaces EditTablePlugin
>
> Checking:Security and Authentication -> Login:  {AuthScripts}
>    The following scripts can be run by unauthenticated users: =changes,
> compare, foswiki.fcgi, jsonrpc, oops, preview, rdiff, register,
> resetpasswd, rest, search, view, viewfile=
>
> Checking:Miscellaneous -> Operating System:  {DetailedOS}
>    You are running CGI Version 4.36.
>
> Checking:Miscellaneous -> Rendering control:  {TemplatePath}
>    Expands to:
>       * /usr/local/www/foswiki/templates/$web/$name.$skin.tmpl
>       *  /usr/local/www/foswiki/templates/$name.$skin.tmpl
>       *  $web.$skinSkin$nameTemplate
>       *  System.$skinSkin$nameTemplate
>       *  /usr/local/www/foswiki/templates/$web/$name.tmpl
>       *  /usr/local/www/foswiki/templates/$name.tmpl
>       *  $web.$nameTemplate
>       *  System.$nameTemplate
> root@aries:/usr/local/www/foswiki #
>
>
>
> Does anyone see anything amiss? I'd be happy to supply additional
> information if needed. The standard apache24 server functions correctly
> as far as I can tell.
>
> ~Doug
>


<bump>



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Foswiki-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/foswiki-discuss
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade from 2.1.3 to 2.1.3_1 borked

George (Foswiki)
Doug,

I have no idea what 2.1.3_1 is.  The current Foswiki release is 2.1.4.  
Before that was 2.1.3.   We don't use _1 numbering in anything released
by the project.  Some of our release candidates were numbered 2.1.3_003.

Are you able to run the bin/view script from the shell? (Be sure to use
the web server userid, not root, or ownership of critical log files
might change.)  Note that sometimes "not found" errors can be triggered
by missing dependencies.  You could also run tools/dependencies to check
the status of the perl CPAN packages.

George Clark

On 07/10/2017 04:06 PM, Doug Sampson wrote:
> I just noticed that the foswiki site doesn't come up correctly after an
> upgrade from 2.1.3 to 2.1.3_1. About two weeks ago there was also an
> upgrade to apache24 so keep that in mind as we read on.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Foswiki-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/foswiki-discuss

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Upgrade from 2.1.3 to 2.1.3_1 borked

Doug Sampson
> I have no idea what 2.1.3_1 is.  The current Foswiki release is 2.1.4.
> Before that was 2.1.3.   We don't use _1 numbering in anything released
> by the project.  Some of our release candidates were numbered 2.1.3_003.
>
> Are you able to run the bin/view script from the shell? (Be sure to use
> the web server userid, not root, or ownership of critical log files
> might change.)  Note that sometimes "not found" errors can be triggered
> by missing dependencies.  You could also run tools/dependencies to check
> the status of the perl CPAN packages.
>

It turns out that I needed to run the rewriteshebang.pl script to reset things. Our foswiki site is functioning correctly now.

The version 2.1.3_1 is unique to FreeBSD. It uses the version 2.1.3 of foswiki but the port maintainer does change the version from time to time based on various situations. See https://www.freshports.org/www/foswiki/ for further details.

Best-

~Doug
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Foswiki-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/foswiki-discuss