Un mic down time: Muie Linux. Mai precis Open SUSE.

Sunt pe Suse LEap 42.2 si voiam sa fac un upgrade la 42.3 inainte sa instalez noua masina si sa incerc sa transform cumva masina asta intr-o masina virtuala. Dar cred ca e o idee proasta spre foarte proasta. Cred ca e mult mai inteligent sa migrez datele din bazele de date si aplicatiile separat.  Nu stiu cum, dar am sa vad.

De ce?

Ca uite am citit si eu ca n00bu’ cum faci upgrade de la 42.2 – 42.3. Aici. 

Si ma apuc si :

# zypper ref

Ca sa updatez repozitori-urile.

Face ala refresh si dupa aia dau si

# zypper up

Ca sa updatez toate aplicatiile din sistem inainte de upgrade. Da, ca parca asta a mers vreodata bine !

De ce pula mea ar fi mers acuma. Dar am scris eu ca la windows si l-am lasat sa-si faca de cap.

Am ajuns la ceva conflicte gen :

There are some running programs that might use files deleted by recent upgrade. You may wish to check and restart some of them. Run ‘zypper ps -s’ to list these programs.
You have new mail in /var/spool/mail/root

Dau cu comanda aia și să moară mă-sa dacă înțeleg ceva .

Ma uit si vad listarea de mai jos. Paștele mă-tii, că nu am timp de asta acum .

 

catalinx:/ # zypper ps -s
The following running processes use deleted files:

PID | PPID | UID | User | Command | Service
——+——-+——+————+———————–+—————–
1 | 0 | 0 | root | systemd |
450 | 1 | 0 | root | systemd-journald | systemd-journald
474 | 1 | 0 | root | haveged | haveged
514 | 1 | 0 | root | systemd-udevd | systemd-udevd
776 | 1 | 499 | messagebus | dbus-daemon (deleted) | dbus
780 | 1 | 482 | avahi | avahi-daemon | avahi-daemon
805 | 1 | 0 | root | irqbalance | irqbalance
806 | 1 | 0 | root | ModemManager | ModemManager
825 | 1 | 0 | root | systemd-logind | systemd-logind
847 | 1 | 497 | polkitd | polkitd | polkit
1246 | 1 | 0 | root | teamviewerd | teamviewerd
1357 | 1 | 0 | root | sddm | display-manager
1362 | 1357 | 0 | root | Xorg (deleted) | display-manager
1480 | 1 | 0 | root | master | postfix
1483 | 1480 | 51 | postfix | qmgr | postfix
1504 | 1 | 0 | root | cron | cron
1511 | 1357 | 0 | root | sddm-helper |
1514 | 1 | 483 | sddm | systemd |
1518 | 0 | 483 | sddm | systemd |
1521 | 1511 | 483 | sddm | sddm-greeter |
1713 | 1 | 483 | sddm | dbus-launch (deleted) |
1717 | 1 | 483 | sddm | dbus-daemon (deleted) |
1726 | 1 | 0 | root | udisksd | udisks2
1734 | 1 | 0 | root | upowerd | upower
12257 | 1 | 0 | root | sshd (deleted) |
12262 | 1 | 1000 | catalinux | systemd |
12265 | 0 | 1000 | catalinux | systemd |
12270 | 12257 | 1000 | catalinux | sshd (deleted) |
12271 | 12270 | 1000 | catalinux | bash (deleted) |
12310 | 12271 | 0 | root | su (deleted) |
12311 | 12310 | 0 | root | bash (deleted) |

Ridic din umeri și restartez.

După reboot, dau să pornesc apache, dar dă el să nu pornească . Mă așteptam , că-n mod normal l-am configurat să pornească singur nu-i nevoie să fac de mână, dar vreau să văd ce erori scuipa pe cioc,

 

catalinx:~ # service apache2 restart
Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details.
catalinx:~ # systemctl status apache2.service
● apache2.service – The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-05-28 19:33:11 EEST; 11s ago
Process: 2105 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 2096 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 2096 (code=exited, status=1/FAILURE)

May 28 19:33:11 catalinx start_apache2[2096]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
May 28 19:33:11 catalinx start_apache2[2096]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
May 28 19:33:11 catalinx systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE
May 28 19:33:11 catalinx start_apache2[2105]: [Mon May 28 19:33:11.589635 2018] [so:warn] [pid 2105] AH01574: module php7_module is already loaded, skipping
May 28 19:33:11 catalinx start_apache2[2105]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
May 28 19:33:11 catalinx start_apache2[2105]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
May 28 19:33:11 catalinx systemd[1]: apache2.service: Control process exited, code=exited status=1
May 28 19:33:11 catalinx systemd[1]: Failed to start The Apache Webserver.
May 28 19:33:11 catalinx systemd[1]: apache2.service: Unit entered failed state.
May 28 19:33:11 catalinx systemd[1]: apache2.service: Failed with result ‘exit-code’.

Aha, nagios config, ce-o fi având de a face cu upgrade-ul, dracu știe.  Nici nu știam că am aia instalată, că nu am ce face cu nagios.

Dau pe net, nu găsesc soluție de configurare ci de dezinstalare .

Cum se zice pe net mai nou  , “click dreapta delet in morti tai nu stam la discuti”

Si-acuma merge , daca puteti citi asta.

Daca nu mai merge mai incolo poate sa fie pentru ca m-a mancat in cur sa termin upgrade-ul ala. Mdeh, linuxuri. Stabile ca nitrolglicerina.

Apropo de care, credeam  ca am si eu un backup pe un network drive atasat pe USB la  router.

catalinx:~ # cat /etc/fstab
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J1RP400520-part2 swap swap defaults 0 0
/dev/disk/by-id/ata-SAMSUNG_HD161HJ_S0V3J1RP400520-part3 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/ata-WDC_WD10EZEX-08M2NA0_WD-WCC3F2CY8DEP-part1 /bck ext3 acl,user_xattr 1 2
/dev/disk/by-id/ata-SAMSUNG_SP1654N_S0GEJ1JL900131-part1 /home ext3 acl,user_xattr 1 2
/dev/group1/sdx1 /var ext3 acl,user_xattr 1 2
//HOMECLOUD/BCKSRV /asus cifs rw, credentials=/root/.credAsus

 

Si eram je fericit ca mi se face backup-ul zi de noapte in drive-ul ala, pana cand vad ceva subspect.   Asta ca ma intreba Webby cum imi fac becap, ca altfel, traiam linistit si azi, ca ce nu stii nu te poate deranja. Pana cand te deranjeaza, gen .

Zic:

-Uuuliuuu, ce e cu astea neapdatate  asa de demult ca cel putin baza de la wordpressu’ asta se schimba zilnic?

Si ma uit la ea din linux. Ia uite ce bine arata. Doar ca-i facuta tot pe hardurile serverului. Beton si alta nu.

E-he, “click dreapta delet nu mai merge de data asta”.

Nu stiu ce s-a stricat si de ce nu mai pot sa montez mizeria aia de drive in linux nici nu-l pot accessa.

Da, am ala “cifs-utils” instalat, ca a mers futu-i grijania lui. Oi fi schimbat eu ceva prin configul din router. Dracu sa-l ia.  Ma mai gandesc…

 

0 0 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
0040
0040
6 years ago

Open a ticket…. :))