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!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Siemanko!
Jakiś czas temu budując swój serwer skorzystałem z redis. Niestety, nie mogę go w żaden sposób zaktualizować ani przeinstalować.
root@sysadmin4u:/home/cheshirecat# sudo apt install redis-server Reading package lists... Done Building dependency tree Reading state information... Done redis-server is already the newest version (3:3.2.6-3+deb9u2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up redis-server (3:3.2.6-3+deb9u2) ... Job for redis-server.service failed because the control process exited with error code. See "systemctl status redis-server.service" and "journalctl -xe" for details. invoke-rc.d: initscript redis-server, action "start" failed. ● redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/redis-server.service.d └─override.conf Active: activating (auto-restart) (Result: exit-code) since Tue 2018-11-13 10:38:11 UTC; 9ms ago Docs: http://redis.io/documentation, man:redis-server(1) Process: 1418 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=226/NAMESPACE) Process: 1415 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=226/NAMESPACE) Nov 13 10:38:11 sysadmin4u systemd[1]: redis-server.service: Unit entered f…ate. Nov 13 10:38:11 sysadmin4u systemd[1]: redis-server.service: Failed with re…de'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package redis-server (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: redis-server E: Sub-process /usr/bin/dpkg returned an error code (1)
Co z tym fantem zrobić? Nie chciałbym z niego rezygnować. Przerobiłem już kilka rozwiązań z netu, ale żadne nie zadziałało.
root@sysadmin4u:/home/cheshirecat# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Ostatnio edytowany przez cheshirecat (2018-11-13 11:41:28)
Offline
Ja redisa i parę innych usług wywaliłem na jednym VPSie do daemontoolsa i chodzi grzecznie.
root ~> svstat /service/redis /service/redis: up (pid 1475) 141275 seconds
###root ~> cat /service/redis/run #!/bin/bash exec 2>&1 export TZ='Europe/Warsaw' export ULIMIT='65536' ulimit -n $ULIMIT || true /bin/pidof redis-server && /usr/bin/redis-cli shutdown || true; mkdir -p /var/run/redis mkdir -p /var/log/redis chown redis:redis /var/run/redis chown redis:redis /var/log/redis setuidgid redis /usr/bin/redis-server /etc/redis/redis.conf
Systemd podnosi tylko usługę [b]daemontools.service[/b]
a ten podnosi takie usługi:
svstat /service/* /service/cgroup: up (pid 1482) 141488 seconds /service/dovecot: up (pid 1481) 141488 seconds /service/dropbear: up (pid 1484) 141488 seconds /service/mysql: up (pid 1487) 141488 seconds /service/nginx: up (pid 16277) 20798 seconds /service/opendkim: up (pid 1488) 141488 seconds /service/php71: up (pid 1485) 141488 seconds /service/phpmageadmin: up (pid 1469) 141488 seconds /service/phpmagento: up (pid 1486) 141488 seconds /service/postfix: up (pid 1741) 141486 seconds /service/prosody: up (pid 1473) 141488 seconds /service/redis: up (pid 1475) 141488 seconds /service/sshd: up (pid 1472) 141488 seconds
W ten sposób prawie wszystkie przyszłe błędy związane z aktualizacjami SystemD
mam z głowy. :P
Pozdro
;-)
Offline
Redis działa normalnie po ostatnich aktualizacjach. Wersja z repo stable jak i z backportów:
systemctl status redis-server.service ● redis-server.service - Advanced key-value store Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2018-11-13 12:35:59 UTC; 10min ago Docs: http://redis.io/documentation, man:redis-server(1) Process: 111 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS) Main PID: 152 (redis-server) CGroup: /system.slice/redis-server.service └─152 /usr/bin/redis-server 127.0.0.1:6379
lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch
Twoje logi są poucinane.
Nie napisałeś jakie „porady z netu” zastosowałeś.
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00116 | 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='18.118.19.123' WHERE u.id=1 |
0.00101 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.118.19.123', 1732210580) |
0.00058 | SELECT * FROM punbb_online WHERE logged<1732210280 |
0.00054 | SELECT topic_id FROM punbb_posts WHERE id=321947 |
0.00066 | SELECT id FROM punbb_posts WHERE topic_id=30724 ORDER BY posted |
0.00072 | 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=30724 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00112 | 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=30724 ORDER BY p.id LIMIT 0,25 |
0.00071 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30724 |
Total query time: 0.00673 s |