GithubHelp home page GithubHelp logo

gplessis / dotdeb-redis Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 2.0 3.6 MB

Dotdeb : Redis

Home Page: http://www.dotdeb.org/

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.28% Shell 0.53% C 80.59% Ruby 2.40% Tcl 15.90% Smarty 0.04% C++ 0.27%

dotdeb-redis's People

Contributors

gplessis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ondrejp petems

dotdeb-redis's Issues

Changelog

Please consider including a link in the changelog to upstream changelog. (not exclusively in redis packages)
Thank you for your work.

redis (2:3.0.7-1~dotdeb+8.1) stable; urgency=medium

  * Imported Upstream version 3.0.7
  * Sync with Debian

 -- Guillaume Plessis <[email protected]>  Sat, 30 Jan 2016 00:13:31 +0000

redis-sentinel symlink exists in 2 packages

Both redis-server and redis-sentinel packages create a symlink to /usr/bin/redis-sentinel, which makes installing redis-sentinel impossible on at least Jessie.

Unpacking redis-sentinel (2:3.0.2-1dotdeb+8.1) ...dpkg: error processing archive /var/cache/apt/archives/redis-sentinel_2%3a3.0.2-1dotdeb+8.1_amd64.deb (--unpack): trying to overwrite '/usr/bin/redis-sentinel', which is also in package redis-server 2:3.0.2-1~dotdeb+8.1

Should this package exist?

Hi,
Sorry for the strange question but why does this package exist given that sid and jessie-backports are kept well up-to-date with upstream?

Error on package update

Hello, I updated Redis to latest version today, and I had the following error:

Setting up redis-server (2:3.2.1-1~dotdeb+8.1) ...
Job for redis-server.service failed. See 'systemctl status redis-server.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript redis-server, action "start" failed.
dpkg: error processing package redis-server (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up logstash (1:2.3.3-1) ...
Installing new version of config file /etc/init.d/logstash ...
Processing triggers for systemd (215-17+deb8u4) ...
Errors were encountered while processing:
 redis-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

And if I run systemctl status redis-server.service I get

root@ns2:~# systemctl status redis-server.service
● redis-server.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/redis-server.service; enabled)
   Active: failed (Result: start-limit) since Sat 2016-06-18 13:51:28 CEST; 4min 11s ago
     Docs: http://redis.io/documentation,
           man:redis-server(1)
  Process: 10386 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=1/FAILURE)
  Process: 10381 ExecStartPre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/SUCCESS)
 Main PID: 9142 (code=exited, status=0/SUCCESS)

Jun 18 13:51:28 ns2.webdl.org systemd[1]: Failed to start Advanced key-value store.
Jun 18 13:51:28 ns2.webdl.org systemd[1]: Unit redis-server.service entered failed state.
Jun 18 13:51:28 ns2.webdl.org systemd[1]: redis-server.service holdoff time over, scheduling restart.
Jun 18 13:51:28 ns2.webdl.org systemd[1]: Stopping Advanced key-value store...
Jun 18 13:51:28 ns2.webdl.org systemd[1]: Starting Advanced key-value store...
Jun 18 13:51:28 ns2.webdl.org systemd[1]: redis-server.service start request repeated too quickly, refusing to start.
Jun 18 13:51:28 ns2.webdl.org systemd[1]: Failed to start Advanced key-value store.
Jun 18 13:51:28 ns2.webdl.org systemd[1]: Unit redis-server.service entered failed state.

And in the daemon.log I have the following messages:

> Jun 18 14:03:01 ns2 systemd[1]: Starting Advanced key-value store...
> Jun 18 14:03:01 ns2 run-parts[27079]: run-parts: executing /etc/redis/redis-server.pre-up.d/00_example
> Jun 18 14:03:01 ns2 redis-server[27087]: *** FATAL CONFIG FILE ERROR ***
> Jun 18 14:03:01 ns2 redis-server[27087]: Reading the configuration file, at line 143
> Jun 18 14:03:01 ns2 redis-server[27087]: >>> 'logfile /var/log/redis/redis-server.log'
> Jun 18 14:03:01 ns2 redis-server[27087]: Can't open the log file: Permission denied
> Jun 18 14:03:01 ns2 systemd[1]: redis-server.service: control process exited, code=exited status=1
> Jun 18 14:03:01 ns2 systemd[1]: Failed to start Advanced key-value store.
> Jun 18 14:03:01 ns2 systemd[1]: Unit redis-server.service entered failed state.
> Jun 18 14:03:02 ns2 systemd[1]: redis-server.service holdoff time over, scheduling restart.
> Jun 18 14:03:02 ns2 systemd[1]: Stopping Advanced key-value store...
> Jun 18 14:03:02 ns2 systemd[1]: Starting Advanced key-value store...
> Jun 18 14:03:02 ns2 systemd[1]: redis-server.service start request repeated too quickly, refusing to start.
> Jun 18 14:03:02 ns2 systemd[1]: Failed to start Advanced key-value store.
> Jun 18 14:03:02 ns2 systemd[1]: Unit redis-server.service entered failed state.
root@ns2:~# ls -la /var/log/redis
total 8.0K
drwxrwxrwx  2 redis redis 4.0K May  8 10:52 .
drwxr-xr-x 15 root  root  4.0K Jun 18 06:27 ..
-rw-rw-r--  1 redis redis    0 Jun 18 14:02 redis-server.log

Version number epoch is lower than backports

Backports has epoch 3:, Dotdeb has 2:
https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version

Could we go 3?

$ apt-cache policy redis-server
redis-server:
  Installed: 2:3.2.5-1~dotdeb+8.1
  Candidate: 2:3.2.6-1~dotdeb+8.1
  Version table:
     3:3.2.5-4~bpo8+1 0
        100 http://debian-archive.trafficmanager.net/debian/ jessie-backports/main amd64 Packages
     2:3.2.6-1~dotdeb+8.1 0
        500 http://packages.dotdeb.org/ jessie/all amd64 Packages
 *** 2:3.2.5-1~dotdeb+8.1 0
        500 http://packages.dotdeb.org/ jessie/all amd64 Packages
        100 /var/lib/dpkg/status
     2:3.2.4-1~dotdeb+8.1 0
        500 http://packages.dotdeb.org/ jessie/all amd64 Packages

Redis starts in foreground after installing redis-sentinel

When installing the redis-sentinel package on Debian Wheezy (7.8) the Redis server starts in the foreground and blocks dpkg.

Packages:

iF  redis-sentinel                     2:3.2.4-1~dotdeb+7.1          amd64        Persistent key-value database with network interface (monitoring)
ii  redis-server                       2:3.2.4-1~dotdeb+7.1          amd64        Persistent key-value database with network interface
ii  redis-tools                        2:3.2.4-1~dotdeb+7.1          amd64        Persistent key-value database with network interface (client)

Process tree:

apt-get---dpkg---redis-sentinel.---invoke-rc.d---redis-sentinel---redis-sentinel---2*[{redis-sentinel}]

Output:

root@high-available-wheezy:~# apt-get install redis-sentinel
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  redis-server redis-tools
Suggested packages:
  ruby-redis
The following NEW packages will be installed:
  redis-sentinel redis-server redis-tools
0 upgraded, 3 newly installed, 0 to remove and 80 not upgraded.
Need to get 0 B/1554 kB of archives.
After this operation, 3592 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously unselected package redis-tools.
(Reading database ... 44136 files and directories currently installed.)
Unpacking redis-tools (from .../redis-tools_2%3a3.2.4-1~dotdeb+7.1_amd64.deb) ...
Selecting previously unselected package redis-server.
Unpacking redis-server (from .../redis-server_2%3a3.2.4-1~dotdeb+7.1_amd64.deb) ...
Selecting previously unselected package redis-sentinel.
Unpacking redis-sentinel (from .../redis-sentinel_2%3a3.2.4-1~dotdeb+7.1_amd64.deb) ...
Processing triggers for man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up redis-tools (2:3.2.4-1~dotdeb+7.1) ...
Setting up redis-server (2:3.2.4-1~dotdeb+7.1) ...
Starting redis-server: redis-server.
Setting up redis-sentinel (2:3.2.4-1~dotdeb+7.1) ...
Starting redis-sentinel: 4389:X 03 Oct 13:55:20.919 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
4389:X 03 Oct 13:55:20.920 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
4389:X 03 Oct 13:55:20.920 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If $ou need higher maxclients increase 'ulimit -n'.
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 3.2.4 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in sentinel mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 26379
 |    `-._   `._    /     _.-'    |     PID: 4389
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

4389:X 03 Oct 13:55:20.925 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to 
the lower value of 128.
4389:X 03 Oct 13:55:20.928 # Sentinel ID is 466424fd294da569f9d61d361cf97693dcd3ce07
4389:X 03 Oct 13:55:20.928 # +monitor master mymaster 127.0.0.1 6379 quorum 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.