Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-12-28 18:14:51

  Jacq - Użytkownik

Jacq
Użytkownik
Zarejestrowany: 2012-12-28

Problem z instalacja MySQLa

Witajcie,

Napotkałem pewien problem podczas instalacji mysqla i nie bardzo wiem jak sobie z nim poradzić:

Kod:

/# aptitude install mysql-server
[  0%] Building dependency tree
The following partially installed packages will be configured:
  mysql-server mysql-server-5.1
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

Setting up mysql-server-5.1 (5.1.66-0+squeeze1) ...
Stopping MySQL database server: mysqld.
121228 18:01:24 [Note] Plugin 'FEDERATED' is disabled.
121228 18:01:24  InnoDB: Initializing buffer pool, size = 8.0M
121228 18:01:24  InnoDB: Completed initialization of buffer pool
121228 18:01:25  InnoDB: Started; log sequence number 0 44233
121228 18:01:25  InnoDB: Starting shutdown...
121228 18:01:30  InnoDB: Shutdown completed; log sequence number 0 44233
insserv: warning: script 'owserver' missing LSB tags and overrides
insserv: There is a loop between service openmediavault-beep and owserver if stopped
insserv:  loop involving service owserver at depth 2
insserv:  loop involving service openmediavault-beep at depth 1
insserv: Stopping owserver depends on openmediavault-beep and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.1; however:
  Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
configured to not write apport reports
                                      Errors were encountered while processing:
 mysql-server-5.1
 mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up mysql-server-5.1 (5.1.66-0+squeeze1) ...
Stopping MySQL database server: mysqld.
insserv: warning: script 'owserver' missing LSB tags and overrides
insserv: There is a loop between service openmediavault-beep and owserver if stopped
insserv:  loop involving service owserver at depth 2
insserv:  loop involving service openmediavault-beep at depth 1
insserv: Stopping owserver depends on openmediavault-beep and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing mysql-server-5.1 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.1; however:
  Package mysql-server-5.1 is not configured yet.
dpkg: error processing mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.1
 mysql-server

Próbowałem usuwać wszystkie pliki konfiguracyjne i powiązane pakiety ale niestety bez zmian://
Pomożecie?

Z góry dziękuje.

Ostatnio edytowany przez Jacq (2012-12-28 18:16:29)

Offline

 

#2  2012-12-28 18:38:14

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: Problem z instalacja MySQLa

[quote=Jacq]

Kod:

insserv: warning: script 'owserver' missing LSB tags and overrides

[/quote]
Uwalony skrypt startowy owserver. Skąd go masz? Widzę, że w Wheezym jest, ale mysql 5.1 to raczej Squeeze. Zatem jakiś z zewnątrz?


[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

#3  2012-12-29 00:17:46

  Jacq - Użytkownik

Jacq
Użytkownik
Zarejestrowany: 2012-12-28

Re: Problem z instalacja MySQLa

Tak z zewnatrz, jego postac to

Kod:

#! /bin/sh
# /etc/init.d/owserver
case "$1" in
  start)
        /opt/owfs/bin/owserver -d /dev/ttyUSB0 -p 3001
        ;;
  stop)
        killall owserver
        ;;
  *)
        echo "Usage: $N {start|stop}" >&2
        exit 1
        ;;
esac
exit 0

Mam go z jakiegoś forum:)
Jak zatem podpinać to pod crona by uniknąć takich problemów?

Ostatnio edytowany przez Jacq (2012-12-29 00:24:22)

Offline

 

#4  2012-12-29 00:23:45

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: Problem z instalacja MySQLa

Może inaczej – spróbuj nagłówek mu dać: http://dug.net.pl/tekst/157/jak_umiescic_swoj_skrypt_w_skryptach_startowych__/


[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

#5  2012-12-29 00:27:30

  Jacq - Użytkownik

Jacq
Użytkownik
Zarejestrowany: 2012-12-28

Re: Problem z instalacja MySQLa

A można ten poprzedni jakoś usunąć?

Offline

 

#6  2012-12-29 00:29:27

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: Problem z instalacja MySQLa

Kod:

update-rc.d -f owserver remove

[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

#7  2012-12-29 00:34:17

  Jacq - Użytkownik

Jacq
Użytkownik
Zarejestrowany: 2012-12-28

Re: Problem z instalacja MySQLa

Ok, ale czego wystepuje poniższy konflikt:

Kod:

:/etc/init.d# insserv owserver
insserv: script owserver is not an executable regular file, skipped!
insserv: warning: script 'owfs' missing LSB tags and overrides
insserv: There is a loop between service openmediavault-beep and owfs if stopped
insserv:  loop involving service owfs at depth 2
insserv:  loop involving service openmediavault-beep at depth 1
insserv: Stopping owfs depends on openmediavault-beep and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!

Offline

 

#8  2012-12-29 00:35:20

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: Problem z instalacja MySQLa

Jakieś inne uwalone skrypty najwyraźniej jeszcze masz. ;) A co do początku, to chyba nie nadałeś skryptowi prawa do wykonywania.


[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

#9  2012-12-29 00:40:46

  Jacq - Użytkownik

Jacq
Użytkownik
Zarejestrowany: 2012-12-28

Re: Problem z instalacja MySQLa

Uprawnienia poprawiłem:)
Jeśli chodzi o ten drugi z ktorym jest konflikt, ma on ten nagłówek:

Kod:

etc/init.d# cat openmediavault-beep
#!/bin/sh

### BEGIN INIT INFO
# Provides:          openmediavault-beep
# Required-Start:    $all
# Required-Stop:     $all
# Should-Start:
# Should-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Beeps after system start or before shutdown
### END INIT INFO

case "$1" in
        start|"")
                beep -f 3000 -l 100 -n -f 3500 -l 100 -r 2
                ;;
        stop)
                beep -f 3000 -l 100 -r 2 -n -f 2000 -l 150
                ;;
        *)
                echo "Usage: openmediavault-beep [start|stop]" >&2
                exit 3
                ;;
esac

Offline

 

#10  2012-12-29 00:44:28

  ArnVaker - Kapelusznik

ArnVaker
Kapelusznik
Skąd: Midgard
Zarejestrowany: 2009-05-06

Re: Problem z instalacja MySQLa

Według tego zobacz: http://wiki.debian.org/LSBInitScripts

No i jeszcze z owfs też coś jest nie tak.


[img]http://svn.debianart.org/themes/generic/spinner/spinner48px-moreblue.png[/img]

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.009 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00010 SET CHARSET latin2
0.00006 SET NAMES latin2
0.00120 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.144.92.165' WHERE u.id=1
0.00073 UPDATE punbb_online SET logged=1732937896 WHERE ident='3.144.92.165'
0.00049 SELECT * FROM punbb_online WHERE logged<1732937596
0.00060 DELETE FROM punbb_online WHERE ident='3.145.109.144'
0.00078 SELECT topic_id FROM punbb_posts WHERE id=218822
0.00005 SELECT id FROM punbb_posts WHERE topic_id=22585 ORDER BY posted
0.00054 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=22585 AND t.moved_to IS NULL
0.00004 SELECT search_for, replace_with FROM punbb_censoring
0.00107 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=22585 ORDER BY p.id LIMIT 0,25
0.00091 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=22585
Total query time: 0.00657 s