Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 18/04/2014, à 21:02

Samquad

Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Je viens de mettre à jour mon pc qui était sous ubuntu desktop 12.04 LTS avec ubuntu desktop 14.04 LTS.
J'utilise le serveur Apache pour les services suivants:
Zoneminder 1.27 (vidéo surveillance)
Ouwclound serveur 6 pour le stockage.

Tout c'est bien passé sauf que depuis le reboot les 2 services ne sont plus accessible.
Le serveur apache a bien le statut ok mais je n'arrive pas à accéder à zm et owncloud.

Pouvez-vous m'aider?

Merci
Samquad

Hors ligne

#2 Le 18/04/2014, à 22:40

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Bonsoir.

Déjà il te faudrait indiquer plusieurs choses pour espérer avoir une réponse.

Le fichier de config de Apache, et où se trouvent Zoneminder et Ouwncloud.

Tu les a installé par les dépôts, manuellement en les mettant dans un autre dossier ?

Précise comment tu as installé le tout sur Precise.
Merci. wink

Hors ligne

#3 Le 19/04/2014, à 09:00

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

En fait j'avais installé owncloud et zoneminder en suivant des tuto d’installation sur les sites respectif  uand j'étais encore sous ubuntu V12.04 LTS donc le dépot ne vient pas de la logithèque Ubuntu.

Suite à la mise à jour en V14.04LTS je pense que des fichiers ont été supprimés car par exemple, quand je lance la commande

sudo /etc/init.d/zoneminder restart

j'ai le message suivant:

Stopping ZoneMinder: /etc/init.d/zoneminder: 1: /etc/init.d/zoneminder: /usr/bin/zmpkg.pl: not found
Zoneminder already stopped

Starting ZoneMinder: /etc/init.d/zoneminder: 28: /etc/init.d/zoneminder: /usr/bin/zmpkg.pl: not found
failure

Il faut donc que je réinstalle certainement zoneminder et owncloud mais je ne sais pas comment faire car j'ai peur de perdre mes fichiers de configuration et mes sauvegardes.

Je débute dans linux et ce n'est pas très évident pour moi car je ne sais pas comment trouver facilement ou sont installés les 2 programmes ( je maîtrise mieux windows)

pour installer zoneminder j'avais suivi cette procédure:


Open the terminal
become root
sudo su
install tasksel
apt-get install tasksel
Start tasksel
tasksel
Check the option to install LAMP
Follow the instructions at:
Ubuntu Server 12.04 64-bit with Zoneminder 1.25.0 the easy way
Start at Install Zoneminder
or
Ubuntu Server 12.04 64-bit with Zoneminder 1.26.5 the easy way
Start at: Install PPA Repository for Zoneminder
When Zoneminder is installed, open Firefox and enter: http://localhost/zm to configure Zoneminder.
Install the remote control package of your choice to access your PC from the internet.
Ubuntu Server 12.04 64-bit with Zoneminder 1.26.5 the easy way


Zoneminder 1.26.5-1 on Ubuntu 12.04 64 BIT and 32 BIT

Note: This has also been tested with 12.04 32 BIT.
Note 1: This also works for Ubuntu 13.04 server.
Note 2: I have tested this on Ubuntu Desktop versions 12.04 and 13.04. You will have to install tasksel before trying to install LAMP. The purpose of this was to use Teamviewer to remote control a PC behind multiple firewalls where the client was not able to do dynamic DNS or port forwarding.
Note 3: This was prepared on December 17th, 2013 after the ZM 1.26.5 update was posted to the PPA repository. If you are running ZM 1.26.4 you can do an upgrade (apt-get upgrade) to get the new version if you have the PPA repository added to your system.
Install Ubuntu

Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server
Log in then become root:
sudo su
apt-get update
apt-get upgrade
apt-get dist-upgrade
Install PPA Repository for Zoneminder 1.26.5-1

apt-get install python-software-properties
add-apt-repository ppa:iconnor/zoneminder
apt-get update

Install MySQL
apt-get install mysql-server
Install Zoneminder

apt-get install zoneminder

Optional install H.264

apt-get install x264

Add delay to allow MySQL to start before Zoneminder

nano /etc/init.d/zoneminder
Add above "zmfix -a" sleep 15
Ctrl+o Enter to save
CTRL+x to exit
Fix a minor omission in teh zm.conf file
nano /etc/zm/zm.conf
At the end of the file add:
ZM_VERSION=1.26.5
Ctrl+o Enter to save
CTRL+x to exit

Link Apache to Zoneminder

sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

/etc/init.d/apache2 force-reload
adduser www-data video

Install Cambozola

cd /usr/src && wget http://www.andywilcock.com/code/cambozo … est.tar.gz
tar -xzvf cambozola-latest.tar.gz
replace 935 with cambozola version downloaded
cp cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder
NTP Daily Sync

nano /etc/cron.daily/ntpdate
Copy the following into nano
!/bin/sh ntpdate ntp.ubuntu.com
Ctrl+o Enter to save
CTRL+x to exit
chmod 755 /etc/cron.daily/ntpdate

Dernière modification par Samquad (Le 19/04/2014, à 21:29)

Hors ligne

#4 Le 19/04/2014, à 11:18

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Le répertoire de owncloud est /var/www/owncloud

voici le fichier /etc/apache2/apache2.conf

 # This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See [url]http://httpd.apache.org/docs/2.4/[/url] for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#	/etc/apache2/
#	|-- apache2.conf
#	|	`--  ports.conf
#	|-- mods-enabled
#	|	|-- *.load
#	|	`-- *.conf
#	|-- conf-enabled
#	|	`-- *.conf
# 	`-- sites-enabled
#	 	`-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., [url=http://www.apache.org]www.apache.org[/url] (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<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>

# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
	Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Dernière modification par Samquad (Le 19/04/2014, à 21:35)

Hors ligne

#5 Le 19/04/2014, à 11:31

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Bonjour.

Une mise à niveau n’écrase pas les fichiers système ajoutés manuellement.
Elle peut modifier (après demande) les fichiers de configuration se trouvant généralement dans le répertoire /etc/...  de certains logiciels mais elle ne modifie pas ceux ajoutés manuellement.
Quand je dis manuellement c'est avec une archive et non avec un dépôt externe.

Samquad a écrit :

donc le dépot ne vient pas de la logithèque Ubuntu.

À mon avis la mise à niveau a éjecté les deux logiciels.

Poste entre des balises code le contenu de

gedit /var/log/apt/history.log

et de

gedit /etc/apt/sources.list

Hors ligne

#6 Le 19/04/2014, à 11:45

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Pour zoneminder:
Je viens de l'installer à partir de la logitheque ubuntu et maintenant j'arrive à accéder la page web http://127.0.1.1/zm

par contre le service ne démarre pas
j'ai lancé la commande

 sudo /etc/init.d/zoneminder restart 

dans le terminal et j'ai le message d'erreur suivant:

Starting ZoneMinder: Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/ZoneMinder.pm line 33.
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/ZoneMinder.pm line 33.
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/ZoneMinder.pm line 33.
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/ZoneMinder.pm line 33.
failure

voici la copie du fichier  /usr/share/perl5/ZoneMinder.pm:

# ==========================================================================
#
# ZoneMinder Common Module, $Date$, $Revision$
# Copyright (C) 2001-2008  Philip Coombes
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#
# ==========================================================================
#
# This module contains the common definitions and functions used by the rest 
# of the ZoneMinder scripts
#
package ZoneMinder;

use 5.006;
use strict;
use warnings;

require Exporter;
use ZoneMinder::Base qw(:all);
use ZoneMinder::Config qw(:all);
use ZoneMinder::Logger qw(:all);
use ZoneMinder::General qw(:all);
use ZoneMinder::Database qw(:all);
use ZoneMinder::Memory qw(:all);

our @ISA = qw(Exporter ZoneMinder::Base ZoneMinder::Config ZoneMinder::Logger ZoneMinder::General ZoneMinder::Database ZoneMinder::Memory);

# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.

# This allows declaration    use ZoneMinder ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
our %EXPORT_TAGS = (
    'base' => [ 
        @ZoneMinder::Base::EXPORT_OK
    ],
    'config' => [ 
        @ZoneMinder::Config::EXPORT_OK
    ],
    'debug' => [ 
        @ZoneMinder::Logger::EXPORT_OK
    ],
    'general' => [ 
        @ZoneMinder::General::EXPORT_OK
    ],
    'database' => [ 
        @ZoneMinder::Database::EXPORT_OK
    ],
    'memory' => [ 
        @ZoneMinder::Memory::EXPORT_OK
    ],
);
push( @{$EXPORT_TAGS{all}}, @{$EXPORT_TAGS{$_}} ) foreach keys %EXPORT_TAGS;

our @EXPORT_OK = @{ $EXPORT_TAGS{'all'} };

our @EXPORT = ( @EXPORT_OK );

our $VERSION = $ZoneMinder::Base::VERSION;

1;
__END__

=head1 NAME

ZoneMinder - Container module for common ZoneMinder modules

=head1 SYNOPSIS

  use ZoneMinder;

=head1 DESCRIPTION

This module is a convenience container module that uses the
ZoneMinder::Base, ZoneMinder::Common, ZoneMinder::Logger,
ZoneMinder::Database and ZoneMinder::Memory modules. It also
exports by default all symbols provided by the 'all' tag of 
each of the modules.

Thus 'use'ing this module is equivalent to the following 

  use ZoneMinder::Base qw(:all);
  use ZoneMinder::Config qw(:all);
  use ZoneMinder::Logger qw(:all);
  use ZoneMinder::Database qw(:all);
  use ZoneMinder::Memory qw(:all);

but is somewhat easier.

=head2 EXPORT

All symbols exported by the 'all' tag of each of the included
modules.

=head1 SEE ALSO

ZoneMinder::Base, ZoneMinder::Common, ZoneMinder::Logger,
ZoneMinder::Database, ZoneMinder::Memory

[url]http://www.zoneminder.com[/url]

=head1 AUTHOR

Philip Coombes, E<lt>philip.coombes@zoneminder.comE<gt>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2005 by Philip Coombes

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.3 or,
at your option, any later version of Perl 5 you may have available.


=cut

Dernière modification par Samquad (Le 19/04/2014, à 21:38)

Hors ligne

#7 Le 19/04/2014, à 11:47

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

voici la copie de History.log:

Start-Date: 2014-04-06  10:53:27
Commandline: aptdaemon role='role-commit-packages' sender=':1.78'
Upgrade: bluez-alsa:amd64 (4.98-2ubuntu7, 4.98-2ubuntu7.1), bluez-alsa:i386 (4.98-2ubuntu7, 4.98-2ubuntu7.1), libnss3:amd64 (3.15.4-0ubuntu0.12.04.1, 3.15.4-0ubuntu0.12.04.2), libnss3:i386 (3.15.4-0ubuntu0.12.04.1, 3.15.4-0ubuntu0.12.04.2), bluez-gstreamer:amd64 (4.98-2ubuntu7, 4.98-2ubuntu7.1), libgnome-control-center1:amd64 (3.4.2-0ubuntu0.13.1, 3.4.2-0ubuntu0.13.2), gnome-settings-daemon:amd64 (3.4.2-0ubuntu0.6.5, 3.4.2-0ubuntu0.6.6), bluez-cups:amd64 (4.98-2ubuntu7, 4.98-2ubuntu7.1), gnome-control-center-data:amd64 (3.4.2-0ubuntu0.13.1, 3.4.2-0ubuntu0.13.2), bluez:amd64 (4.98-2ubuntu7, 4.98-2ubuntu7.1), synaptic:amd64 (0.75.9ubuntu1, 0.75.9ubuntu1.1), gnome-control-center:amd64 (3.4.2-0ubuntu0.13.1, 3.4.2-0ubuntu0.13.2), libnss3-1d:amd64 (3.15.4-0ubuntu0.12.04.1, 3.15.4-0ubuntu0.12.04.2), libbluetooth3:amd64 (4.98-2ubuntu7, 4.98-2ubuntu7.1)
End-Date: 2014-04-06  10:54:18

Start-Date: 2014-04-06  10:58:35
Commandline: aptdaemon role='role-remove-packages' sender=':1.92'
Remove: ia32-libs:amd64 (20090808ubuntu36), lib32z1:amd64 (1.2.3.4.dfsg-3ubuntu4), teamviewer:amd64 (9.0.24147)
End-Date: 2014-04-06  10:58:39

Start-Date: 2014-04-13  09:40:41
Commandline: aptdaemon role='role-commit-packages' sender=':1.115'
Install: linux-image-3.8.0-39-generic:amd64 (3.8.0-39.57~precise1), linux-headers-3.8.0-39:amd64 (3.8.0-39.57~precise1), linux-headers-3.8.0-39-generic:amd64 (3.8.0-39.57~precise1)
Upgrade: php5:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), php5-sqlite:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), icedtea-6-jre-cacao:amd64 (6b30-1.13.1-1ubuntu2~0.12.04.1, 6b30-1.13.1-1ubuntu2~0.12.04.3), linux-image-generic-lts-raring:amd64 (3.8.0.38.38, 3.8.0.39.39), libapache2-mod-php5:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), openjdk-6-jre-lib:amd64 (6b30-1.13.1-1ubuntu2~0.12.04.1, 6b30-1.13.1-1ubuntu2~0.12.04.3), php5-gd:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), linux-headers-generic-lts-raring:amd64 (3.8.0.38.38, 3.8.0.39.39), update-manager:amd64 (0.156.14.12, 0.156.14.13), update-manager-core:amd64 (0.156.14.12, 0.156.14.13), openjdk-6-jre-headless:amd64 (6b30-1.13.1-1ubuntu2~0.12.04.1, 6b30-1.13.1-1ubuntu2~0.12.04.3), php-pear:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), php5-curl:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), openssh-client:amd64 (5.9p1-5ubuntu1.2, 5.9p1-5ubuntu1.3), icedtea-6-jre-jamvm:amd64 (6b30-1.13.1-1ubuntu2~0.12.04.1, 6b30-1.13.1-1ubuntu2~0.12.04.3), libssl-dev:amd64 (1.0.1-4ubuntu5.11, 1.0.1-4ubuntu5.12), libssl-doc:amd64 (1.0.1-4ubuntu5.11, 1.0.1-4ubuntu5.12), file:amd64 (5.09-2ubuntu0.2, 5.09-2ubuntu0.3), flashplugin-installer:amd64 (11.2.202.346ubuntu0.12.04.1, 11.2.202.350ubuntu0.12.04.1), php5-pgsql:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), php5-intl:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), openssl:amd64 (1.0.1-4ubuntu5.11, 1.0.1-4ubuntu5.12), php5-mysql:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), linux-libc-dev:amd64 (3.2.0-60.91, 3.2.0-61.92), php5-cli:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), php5-dev:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), ssh-askpass-gnome:amd64 (5.9p1-5ubuntu1.2, 5.9p1-5ubuntu1.3), openjdk-6-jre:amd64 (6b30-1.13.1-1ubuntu2~0.12.04.1, 6b30-1.13.1-1ubuntu2~0.12.04.3), php5-common:amd64 (5.3.10-1ubuntu3.10, 5.3.10-1ubuntu3.11), libmagic1:amd64 (5.09-2ubuntu0.2, 5.09-2ubuntu0.3), libssl1.0.0:amd64 (1.0.1-4ubuntu5.11, 1.0.1-4ubuntu5.12), libssl1.0.0:i386 (1.0.1-4ubuntu5.11, 1.0.1-4ubuntu5.12), linux-generic-lts-raring:amd64 (3.8.0.38.38, 3.8.0.39.39)
End-Date: 2014-04-13  09:43:09

Start-Date: 2014-04-15  19:51:08
Commandline: apt-get install nodejs git wget rubygems -y
Install: libdpkg-perl:amd64 (1.16.1.2ubuntu7.2, automatic), ruby1.8-dev:amd64 (1.8.7.352-2ubuntu1.4, automatic), fakeroot:amd64 (1.18.2-1, automatic), libalgorithm-merge-perl:amd64 (0.08-2, automatic), g++-4.6:amd64 (4.6.3-1ubuntu5, automatic), rubygems:amd64 (1.8.15-1ubuntu0.1), git-man:amd64 (1.7.9.5-1, automatic), libalgorithm-diff-xs-perl:amd64 (0.04-2build2, automatic), g++:amd64 (4.6.3-1ubuntu5, automatic), ruby1.8:amd64 (1.8.7.352-2ubuntu1.4, automatic), git:amd64 (1.7.9.5-1), libreadline5:amd64 (5.2-11, automatic), nodejs:amd64 (0.10.26-1chl1~precise1), libstdc++6-4.6-dev:amd64 (4.6.3-1ubuntu5, automatic), liberror-perl:amd64 (0.17-1, automatic), build-essential:amd64 (11.5ubuntu2.1, automatic), dpkg-dev:amd64 (1.16.1.2ubuntu7.2, automatic), libalgorithm-diff-perl:amd64 (1.19.02-2, automatic), libruby1.8:amd64 (1.8.7.352-2ubuntu1.4, automatic), rlwrap:amd64 (0.37-2, automatic)
End-Date: 2014-04-15  19:51:57

Start-Date: 2014-04-15  19:52:53
Commandline: aptdaemon role='role-commit-packages' sender=':1.84'
Upgrade: libsnmp15:amd64 (5.4.3~dfsg-2.4ubuntu1.1, 5.4.3~dfsg-2.4ubuntu1.2), python-imaging:amd64 (1.1.7-4, 1.1.7-4ubuntu0.12.04.1), libsnmp-base:amd64 (5.4.3~dfsg-2.4ubuntu1.1, 5.4.3~dfsg-2.4ubuntu1.2), libcurl3:amd64 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8), libcurl3:i386 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8), libcurl3-nss:amd64 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8), curl:amd64 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8), libcurl4-gnutls-dev:amd64 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8), whoopsie:amd64 (0.1.33, 0.1.34), libcurl3-gnutls:amd64 (7.22.0-3ubuntu4.7, 7.22.0-3ubuntu4.8)
End-Date: 2014-04-15  19:53:56

Start-Date: 2014-04-19  11:26:13
Commandline: aptdaemon role='role-commit-packages' sender=':1.137'
Install: libmime-tools-perl:amd64 (5.505-1, automatic), libdevice-serialport-perl:amd64 (1.04-2build3, automatic), libmime-types-perl:amd64 (2.04-1, automatic), libemail-date-format-perl:amd64 (1.004-1, automatic), libmime-lite-perl:amd64 (3.030-1, automatic), libsys-mmap-perl:amd64 (0.16-1build2, automatic), libconvert-binhex-perl:amd64 (1.123-1, automatic), libdate-manip-perl:amd64 (6.42-1, automatic), libphp-serialization-perl:amd64 (0.34-1, automatic), zoneminder:amd64 (1.26.5-1ubuntu3), libjs-mootools:amd64 (1.4.5~debian1-2.1, automatic), libnet-sftp-foreign-perl:amd64 (1.77+dfsg-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2014-04-19  11:26:49

Et la copie de source.list:

# deb cdrom:[Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)]/ dists/precise/main/binary-i386/

# deb cdrom:[Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)]/ precise main restricted

# See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
# newer versions of the distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty main restricted
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates main restricted
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty universe
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty universe
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates universe
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty multiverse
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty multiverse
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates multiverse
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-backports main restricted universe multiverse
deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-backports main restricted universe multiverse

deb [url]http://security.ubuntu.com/ubuntu[/url] trusty-security main restricted
deb-src [url]http://security.ubuntu.com/ubuntu[/url] trusty-security main restricted
deb [url]http://security.ubuntu.com/ubuntu[/url] trusty-security universe
deb-src [url]http://security.ubuntu.com/ubuntu[/url] trusty-security universe
deb [url]http://security.ubuntu.com/ubuntu[/url] trusty-security multiverse
deb-src [url]http://security.ubuntu.com/ubuntu[/url] trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb [url]http://archive.canonical.com/ubuntu[/url] precise partner
# deb-src [url]http://archive.canonical.com/ubuntu[/url] precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb [url]http://extras.ubuntu.com/ubuntu[/url] trusty main
deb-src [url]http://extras.ubuntu.com/ubuntu[/url] trusty main
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] trusty-proposed restricted main multiverse universe

Dernière modification par Samquad (Le 19/04/2014, à 21:41)

Hors ligne

#8 Le 19/04/2014, à 12:08

Oedipe

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Bonjour,

Samquad a écrit :

Je viens de mettre à jour mon pc qui était sous ubuntu desktop 12.04 LTS avec ubuntu desktop 14.04 LTS.
J'utilise le serveur Apache pour les services suivants:
Zoneminder 1.27 (vidéo surveillance) .../...


***PLEASE NOTE***
ZoneMinder currently does not work on 13.10 or newer, due to mysql support in PHP being deprecated.
1.28 will hopefully work on 13.10 and up when it is released.
*** END NOTE ***


https://launchpad.net/~iconnor/+archive/zoneminder


[Kubuntu 16.04.1 LTS "Xenial" - Noyau 4.4.0-53 (x86_64) + Plasma 5.8.4 + Framework 5.28.0 + Qt 5.6.1]
Serveur Nextcloud 11.0.0 "running at home" - Apache/2.4.25 - PHP/7.0.14.2  (IPV6 & HTTP/2 - WebRTC)

Hors ligne

#9 Le 19/04/2014, à 12:19

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Bonjour.

@Oedipe
Tu lui indiques un dépôt où il n'y a pas de version pour Trusty.
De plus la version de zoneminder dans les dépôts de Trusty est la même que celle du dépôt Launchpad.

@Samquad
Il n'y a aucune trace de dépôt externe. Donc si tu as installé les deux logiciels en utilisant un dépôt externe, ils ont été supprimés lors de la mise à niveau.

Tape dans un terminal

sudo apt-get install zoneminder

pour voir et poste le retour terminal.

Hors ligne

#10 Le 19/04/2014, à 12:35

Oedipe

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

yann_001 a écrit :

@Oedipe
Tu lui indiques un dépôt où il n'y a pas de version pour Trusty.
De plus la version de zoneminder dans les dépôts de Trusty est la même que celle du dépôt Launchpad.

Bah il indique qu'il a une version 1.27
Il l'a donc bien prise dans un ppa quelconque puisque "l'officielle" de Trusty n'est que la  1.26.5-1ubuntu3
https://launchpad.net/ubuntu/+source/zoneminder

Et de toute façon (je traduis en français) il faut attendre la version 1.28 si l'on est en 13.10 ou 14.04..... C'est clair, non ?...

Dernière modification par Oedipe (Le 19/04/2014, à 12:38)


[Kubuntu 16.04.1 LTS "Xenial" - Noyau 4.4.0-53 (x86_64) + Plasma 5.8.4 + Framework 5.28.0 + Qt 5.6.1]
Serveur Nextcloud 11.0.0 "running at home" - Apache/2.4.25 - PHP/7.0.14.2  (IPV6 & HTTP/2 - WebRTC)

Hors ligne

#11 Le 19/04/2014, à 13:58

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

sous ubuntu V12.04 zoneminder était en version 1.27 et fonctionnait bien.
suite à la mise à jour en v14.04 d'ubuntu, zoneminder était inaccessible.
j'ai installé la version de zoneminder disponible sur la logitheque ubuntu (v1.26.5) et maintenant la page web est accessible mais le service ne démarre pas.
j'ai exécuté la commande

 sudo apt-get install zoneminder

voici le compte rendu:

 
no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
zoneminder est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de zoneminder (1.26.5-1ubuntu3) ...
Stopping ZoneMinder: Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/ZoneMinder.pm line 33.
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/ZoneMinder.pm line 33.
Constant subroutine ZoneMinder::ZM_VERSION redefined at /usr/share/perl5/ZoneMinder.pm line 33.
Prototype mismatch: sub ZoneMinder::ZM_VERSION () vs none at /usr/share/perl5/ZoneMinder.pm line 33.
Zoneminder already stopped

Constant subroutine main::ZM_VERSION redefined at /usr/bin/zmupdate.pl line 47.
	main::BEGIN() called at /usr/bin/zmupdate.pl line 47
	eval {...} called at /usr/bin/zmupdate.pl line 47
Prototype mismatch: sub main::ZM_VERSION () vs none at /usr/bin/zmupdate.pl line 47.
	main::BEGIN() called at /usr/bin/zmupdate.pl line 47
	eval {...} called at /usr/bin/zmupdate.pl line 47
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 360.
Use of uninitialized value $version in concatenation (.) or string at /usr/bin/zmupdate.pl line 366.

Initiating database upgrade to version 1.26.5 from version 

Upgrading database to version 1.26.5
Loading config from DB
Saving config to DB
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 482.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 488.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 494.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 500.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 506.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 529.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 537.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 543.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 549.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 555.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 561.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 567.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 629.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 702.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 751.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 757.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 763.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 878.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 884.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 890.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 896.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 902.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 908.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 914.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 920.
Use of uninitialized value $version in string eq at /usr/bin/zmupdate.pl line 969.
Use of uninitialized value $version in string lt at /usr/bin/zmupdate.pl line 987.
Upgrading DB to 1.26.1 from 1.26.0

Database successfully upgraded from version 1.26.1.
Upgrading DB to 1.26.2 from 1.26.0

Database successfully upgraded from version 1.26.2.
Upgrading DB to 1.26.3 from 1.26.0

Database successfully upgraded from version 1.26.3.
Upgrading DB to 1.26.5 from 1.26.0
ERROR 1060 (42S21) at line 8: Duplicate column name 'AlarmRefBlendPerc'
Output: 
Command 'mysql -hlocalhost -uzmuser -pzmpass zm < /usr/share/zoneminder/db/zm_update-1.26.5.sql' exited with status: 1
dpkg: error processing package zoneminder (--configure):
 le sous-processus script post-installation installé a retourné une erreur de sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)
pcvideo@pcvideo-ubuntu:~$

Dernière modification par Samquad (Le 19/04/2014, à 21:45)

Hors ligne

#12 Le 19/04/2014, à 14:51

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Avant de répondre mets tes retours code entre des balises http://doc.ubuntu-fr.org/tutoriel/bbcode?s=balise comme demandé avant parce que sinon le topic va vite devenir illisible.

Merci.

Hors ligne

#13 Le 19/04/2014, à 15:12

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Oedipe a écrit :

Bah il indique qu'il a une version 1.27
Il l'a donc bien prise dans un ppa quelconque puisque "l'officielle" de Trusty n'est que la  1.26.5-1ubuntu3
https://launchpad.net/ubuntu/+source/zoneminder

Et de toute façon (je traduis en français) il faut attendre la version 1.28 si l'on est en 13.10 ou 14.04..... C'est clair, non ?...

Je ne dis que tu as tort. Je dis juste qu'il n'y a ''actuellement''  pas de dépôt pour Trusty et embarquant une version supérieure. wink
Indiquer , développer, etc sur Launchpad qu'il y a une version supérieure ne veut pas dire qu'il y a un dépôt utilisable derrière.

Il y a plein de logiciel sur Launchpad qui n'ont pas de dépôt packagé. Et lorsque c'est le cas c'est rarement fait par les dev officiels.

Hors ligne

#14 Le 19/04/2014, à 18:03

Oedipe

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

yann_001 a écrit :

Indiquer , développer, etc sur Launchpad qu'il y a une version supérieure ne veut pas dire qu'il y a un dépôt utilisable derrière.
Il y a plein de logiciel sur Launchpad qui n'ont pas de dépôt packagé. Et lorsque c'est le cas c'est rarement fait par les dev officiels.

Des "dépôts packagés" ?...  Whouarf, quelle expression !... tongue lol (1ere fois en 25 ans de linux que je la vois celle là)
et je te signale que j'indiquais bien dans mon message le ppa "original" du mainteneur "officiel" Ubuntu, à savoir Isaac Connor... Il doit savoir de quoi il parle quand il dit qu' il faut attendre la version 1.28 si l'on est en 13.10 ou 14.04.

Alors je ne vois vraiment pas où tu veux en venir..... mad


[Kubuntu 16.04.1 LTS "Xenial" - Noyau 4.4.0-53 (x86_64) + Plasma 5.8.4 + Framework 5.28.0 + Qt 5.6.1]
Serveur Nextcloud 11.0.0 "running at home" - Apache/2.4.25 - PHP/7.0.14.2  (IPV6 & HTTP/2 - WebRTC)

Hors ligne

#15 Le 19/04/2014, à 18:58

yann_001

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Oedipe a écrit :

Des "dépôts packagés" ?...  Whouarf, quelle expression !... tongue lol

Si ça te fait rire c'est déjà pas mal.

Oedipe a écrit :

je te signale que j'indiquais bien dans mon message le ppa "original" du mainteneur "officiel

Officiel laisse-moi rire.
Plein de site pointe vers un PPA alors qu'ils sont obsolètes.

Oedipe a écrit :

il faut attendre la version 1.28

Sur le site officiel c'est la version 1.26.5 lui propose sur son dépôt la version 1.27.

Youpi une nouvelle version. Tiens tant que j'y suis je suis le mainteneur officiel de direct X for Linux. Tu veux pas ajouter mon dépôt ? T’inquiète le site officiel raconte des conneries. tongue

Je veux en venir c'est que tu proposes un dépôt à Samquad sans même chercher les raisons de son problèmes.
Elles ne se limitent pas à Zoneminder.

Bon je m'excuse si tu as perçu mes réponses comme des attaques parce que ce n'était pas le cas. wink
Revenons au sujet et tentons d'aider Samquad si tu veux. smile

Dernière modification par yann_001 (Le 19/04/2014, à 19:00)

Hors ligne

#16 Le 19/04/2014, à 21:53

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

J'ai remis de l'ordre dans la discussion en ajoutant les balises et c'est plus lisible.

En fait, vous me mettez le doute et je ne sais plus si j'étais en V1.26.5 ou bien si j'étais passé en V1.27 quand j'étais sous ubuntu 12.04

Dernière modification par Samquad (Le 19/04/2014, à 21:54)

Hors ligne

#17 Le 27/04/2014, à 17:08

Samquad

Re : Maj 12.04/14.04: serveur Apache ok mais les services ne démarrent pas

Finalement j'ai réinstallé complètement ubuntu 14.04 sur mon PC.
J'ai suivi le tuto d'installation de zoneminder 1.26.5 the easy way ça fonctionne bien maintenant.
la commande pour passer de ubuntu 12.04 à 14.04

sudo apt-get dist-upgrade

n'est pas à conseiller pour ceux qui installent des programmes sur serveur apache

Hors ligne