Code Monkey home page Code Monkey logo

homebrew-redis-stack's Introduction

CI Latest Release Pre-release Homebrew Helm Chart redis-stack docker pulls redis-stack-server docker pulls

redis-stack

This repository builds redis, and downloads various components (modules, RedisInsight) in order to build redis-stack packages for it's CI process.

Homebrew Recipe | Helm Charts | Docker images | Cloud images | Other downloads


How do I Redis?

Learn for free at Redis University

Build faster with the Redis Launchpad

Try the Redis Cloud

Dive in developer tutorials

Join the Redis community

Work at Redis

Quick start

In the default configuration, Redis does not require a password to authenticate clients. To provide basic security for your Redis Stack server, it is recommended to set a password using the requirepass directive. Configure this using an environment variable when starting the container:

Start a docker docker run -e REDIS_ARGS="--requirepass mypassword" redis/redis-stack:latest

Start a docker with both custom redis arguments and a search configuration docker run -e REDIS_ARGS="--requirepass foo" -e REDISEARCH_ARGS="MAXSEARCHRESULTS 5" redis/redis-stack:latest

From a locally installed package: start a redis stack with custom search results and passwords

REDISEARCH_ARGS="MAXSEARCHRESULTS 5" redis-stack-server --requirepass foo

Redis Stack supports the ability to configure multiple named users, each with their own password and access control configuration. Refer to the Redis Access Control List documentation for more information.


Code contributions

Please see the CONTRIBUTING.md file in this source distribution for more information. For security bugs and vulnerabilities, please see SECURITY.md.


Development Requirements

  • Python > 3.10 (for this toolkit) and poetry
  • Ruby > 2.7 (for fpm)
  • Docker (to build a docker)
  • zip/apt/deb/tar depending on your target outputs.

Building

  1. Create a virtualenv and install dependencies poetry install

  2. Install the fpm gem: gem install fpm

    • Based on your Linux distribution you may need to install a debian tools package (i.e something providing dpkg), something to provide zip, tar, and rpm package tools.
  3. Clone redis if you're developing changes to the redis builds.

  4. Use invoke -l to list, and then execute the various tasks you need (below, an example on packaging).

To build a focal package

invoke package -o Linux -p redis-stack-server -s ubuntu20.04 -t deb -d focal

To build a xenial package

invoke package -o Linux -p redis-stack-server -s ubuntu16.04 -t deb -d xenial

To build a macos (x86_64) zip, prior to homebrew

invoke package -o macos -p redis-stack-server -s monterey -t zip -d monterey

To build a macos (m1) zip, prior to homebrew

invoke package -o macos -p redis-stack-server -s monterey -t zip -d monterey -a arm64

For more examples, see github workflows for how CI reuses invoke.

Packaging

Invoke wraps fpm, in order to provide a unified packaging interface on top of fpm. The script assemble.py provides support for building each target package. To do so, you will need to execute packaging on the target operating system.

While it's possible to build all Linux packages on Arch or Ubuntu, OSX packages must be built on a Mac.

Testing

Tests are run via pytest. Linux tests create and destroy dockers, validating their contents. In order to validate the individual packages (i.e foo.rpm), packages be built, via invoke, then copied to a folder called redis-stack and renamed, so as not to include the version number.

For example to test redis-stack-server-99.99.99-1.x86_64.rpm:

mkdir redis-stack
cp *redis-stack-server-99.99.99-1.x86_64.deb* redis-stack/redis-stack-server.deb
pytest tests/smoketest/test_debs.py::TestXenial

For the various pytest markers, see the pyproject.toml


Releasing

  1. To make a release, use the GitHub release drafter. By creating a tag, in the release drafter, a release is made. Versions are taken from the config.yaml.

    The process of releasing copies existing built artifacts (dockers, rpms, snaps, etc) from the snapshot directories, and re-uploading them to the root s3 folder (s3://redismodules/redis-stack/). No compilation or testing of releases occur, as that has already happened as part of the continuous integration process. As of this writing, this repository releases the dockers as well.

The following steps only apply to non-prerelease, releases. As of this writing only a single package version can be released for the following installation methods.

  1. Tag the rpm repository and wait for the publish action to complete.
    1. This repository cannot release multiple versions simultaneously. This means that each release must wait for the outcome of the previous release's output tasks.
  2. Tag the debian repository and wait for and wait for the publish action to complete.
  3. Update homebrew with the latest version of redis-stack
    1. Note that if RedisInsight is being upgraded, it too needs to be edited in that pull request,
    2. Merge to master. There are no tags for this repository.
  4. Update the helm charts with the latest version of redis-stack
    1. After the pull request, create a release, using the release drafter.

Modifying service initializations

Today, to modify the way a service starts, the following files all need editing:

  • entrypoint.sh (for dockers)
  • snapcraft.j2 (for ubuntu snaps)
  • etc/services/ (for systemd services on Linux)

Changing package versions and sources

Versions for all packages are defined in the config.yaml file, and within a function named generate_url for each source type. In the case where you need to test a package that has been built to a custom location, set a variable named -url-override in the config file at the top level. For example, to override the rejson package location create a variable named rejson-url-override. In the case of RedisInsight, all packages would derive from redisinsight-url-override.

Do not commit this change to a mainline branch.


Signed Binaries

The following redis-stack builds are currently signed using the Redis GPG key. The public key can be downloaded from here.

  1. Debian archives (deb files) - The indivial packages themselves are signed, as is the debian archive respository. Repository signing can be found in the debian tagging repository. Adding the apt repository includes importing, and validating the GPG key.

  2. RedHat packages (rpm files) - The indivial packages themselves are signed. Adding the rpm repository includes importing, and validating the GPG key.

  3. All binaries within OSX zip files are code-signed using Redis' code-signing certificates. Validation is handled by the operating system.

  4. Tarballs generated by redis-stack, are GPG signed.

homebrew-redis-stack's People

Contributors

chayim avatar makoto1021 avatar ofekshenawa avatar vladvildanov avatar zalenskisofteq avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebrew-redis-stack's Issues

Clean up brew casks

Warning: Cannot verify integrity of '5b804d20376f7c76f12da3f2505023b85363af501ce8bba8585a2e14f0c389c9--redis-stack-server-6.2.6-v6.catalina.x86_64.zip'.
No checksum was provided for this cask.
For your reference, the checksum is:
sha256 "8bb8201a56cf9861cb22b2bc4b7d25f2e764fd64c0891b54f956efbc1c7fbf23"
==> Installing Cask redis-stack-server
๐Ÿบ redis-stack-server was successfully installed!
==> Downloading https://s3.amazonaws.com/redisinsight.download/public/releases/2.20.0/redisst
######################################################################## 100.0%
Warning: Cannot verify integrity of '88d2d53518f33faee50a465bef83e1eac4c39b0accfde2e2e86e73e0d0ede3f7--RedisInsight-v2-app-darwin.x64.tar.gz'.
No checksum was provided for this cask.
For your reference, the checksum is:
sha256 "08b8f758533d0b44d2ddf868c740b50814373d29d3c254881534f718a8d4d61f"
==> Installing Cask redis-stack-redisinsight
==> Purging files for version 2.20.0 of Cask redis-stack-redisinsight
Error: It seems there is already an App at '/Applications/RedisInsight-v2.app'.

Error: undefined method `exists?' for class Dir shows up when I brew install redis-stack

==> Installing Cask redis-stack-server
==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method exists?' for class Dir /usr/local/Homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in block (2 levels) in load'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /usr/local/Homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /usr/local/Homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /usr/local/Homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /usr/local/Homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /usr/local/Homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:102:in install' /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/usr/local/Homebrew/Library/Homebrew/cmd/install.rb:235:in each' /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/usr/local/Homebrew/Library/Homebrew/brew.rb:92:in `

'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/redis-stack/homebrew-redis-stack/issues/new

HDGhsdjahgdh ~ % brew doctor
Your system is ready to brew.

sdkfhskdjfskdhf ~ % brew config
HOMEBREW_VERSION: 4.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9fdb0d53990d3e62e25325a6f89dbb769e84a530
Last commit: 4 days ago
Core tap JSON: 31 May 01:44 UTC
Core cask tap JSON: 31 May 01:44 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.1 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: octa-core 64-bit icelake
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4.1-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3

Error: redis-stack/redis-stack/redis-stack-server: undefined method `exists?' for class File

==> Purging files for version 7.2.0-v11 of Cask redis-stack-server
Error: redis-stack/redis-stack/redis-stack-server: undefined method `exists?' for class File
/opt/homebrew/Caskroom/redis-stack-server/.metadata/7.2.0-v10/20240405001954.235/Casks/redis-stack-server.rb:34:in `block (3 levels) in load'
/opt/homebrew/Caskroom/redis-stack-server/.metadata/7.2.0-v10/20240405001954.235/Casks/redis-stack-server.rb:32:in `each'
/opt/homebrew/Caskroom/redis-stack-server/.metadata/7.2.0-v10/20240405001954.235/Casks/redis-stack-server.rb:32:in `block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `instance_eval'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:30:in `uninstall_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:474:in `block in uninstall_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:471:in `uninstall_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:430:in `start_upgrade'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:195:in `upgrade_cask'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:113:in `block in upgrade_casks'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:112:in `each'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:112:in `upgrade_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:260:in `upgrade_outdated_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:138:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'

Error: undefined method `exists?' for class Dir,

Error: undefined method exists?' for class Dir /opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

Installing redis-server undefined method 'exists?'

Had to edit the cask file and replace every instance of "File.exists?" & "Dir.exists?" with "File.exist?" and "Dire.exist?" respectively.

It was my first time entering that territory, installation worked after.

Error: undefined method `exists?' for class Dir for brew install --cask redis-stack

CMD: brew install --cask redis-stack

Error: undefined method exists?' for class Dir /opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

Install fails with "undefined method `exists?' for class Dir"

Hi there,
I'm trying to install Redis-stack but it fails with this error:

==> Downloading https://redismodules.s3.amazonaws.com/redis-stack/redis-stack-server-7.2.0-v10.
Already downloaded: /Users/phil/Library/Caches/Homebrew/downloads/233de96d05b20119de565d70e00318af8e5a7cac497d6248137041730192055e--redis-stack-server-7.2.0-v10.monterey.arm64.zip
Warning: Cannot verify integrity of '233de96d05b20119de565d70e00318af8e5a7cac497d6248137041730192055e--redis-stack-server-7.2.0-v10.monterey.arm64.zip'.
No checksum was provided.
For your reference, the checksum is:
  sha256 "bdd8ecb61f3619f898842d141d558b8c683767edce9874fd618a79a28cf68d64"
All dependencies satisfied.
==> Installing Cask redis-stack-server
==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method `exists?' for class Dir
/opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in `block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `instance_eval'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in `install_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:248:in `block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in `install_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:113:in `install'
/opt/homebrew/Library/Homebrew/cmd/install.rb:246:in `block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `each'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/redis-stack/homebrew-redis-stack/issues/new

any idea why this is happening ?

Error installing redis-stack on mac M1

When running this command: brew install redis-stack got this:

==> Installing Cask redis-stack-server
==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method `exists?' for class Dir

Undefined method `exists?' for class File and/or Dir

When I use homebrew to install redis-stack, I receive the following errors:

Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method exists?' for class Dir /opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

and

Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method exists?' for class File /opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:65:in block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

According to the answer from stackoverflow, the exists should be changed to exist.

Version redis-stack 6.2.2-5 not working

After updating redis-stack to the latest version redis-stack-server isn't able to start anymore.

32676:M 05 Jul 2022 11:32:56.708 # Server initialized
32676:M 05 Jul 2022 11:32:56.714 * <search> Redis version found by RedisSearch : 6.2.7 - oss
32676:M 05 Jul 2022 11:32:56.714 * <search> RediSearch version 2.4.9 (Git=HEAD-55607bc4)
32676:M 05 Jul 2022 11:32:56.714 * <search> Low level api version 1 initialized successfully
32676:M 05 Jul 2022 11:32:56.715 * <search> concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results:  10000, search pool size: 20, index pool size: 8, 
32676:M 05 Jul 2022 11:32:56.715 * <search> Initialized thread pool!
32676:M 05 Jul 2022 11:32:56.715 * <search> Enabled diskless replication
32676:M 05 Jul 2022 11:32:56.715 * Module 'search' loaded from /opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redisearch.so
32676:M 05 Jul 2022 11:32:56.722 * <graph> Starting up RedisGraph version 2.8.15.
32676:M 05 Jul 2022 11:32:56.722 * <graph> Thread pool created, using 10 threads.
32676:M 05 Jul 2022 11:32:56.722 * <graph> Maximum number of OpenMP threads set to 10
32676:M 05 Jul 2022 11:32:56.722 * Module 'graph' loaded from /opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redisgraph.so
32676:M 05 Jul 2022 11:32:56.723 # Module /opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redistimeseries.so failed to load: dlopen(/opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redistimeseries.so, 0x0006): Library not loaded: /opt/homebrew/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib
  Referenced from: /opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redistimeseries.so
  Reason: tried: '/opt/homebrew/opt/gcc/lib/gcc/11/libgcc_s.1.1.dylib' (no such file), '/usr/lib/libgcc_s.1.1.dylib' (no such file)
32676:M 05 Jul 2022 11:32:56.723 # Can't load module from /opt/homebrew/Caskroom/redis-stack-server/6.2.2-v5/lib/redistimeseries.so: server aborting

Seems like a missing dependency, isn't this something that the brew script should install if it is needed?

Missing SHA hash for verification. Cannot uninstall Redis-Stack-Server on M2 Pro

Here redis stack server seems to be broken on Apple Silicon. Here is the issue I get when it fails to verify, then attempts to uninstall.

โžœ  bin git:(stable) brew install redis-stack-server
==> Downloading https://formulae.brew.sh/api/formula.jws.json

==> Downloading https://formulae.brew.sh/api/cask.jws.json

==> Downloading https://redismodules.s3.amazonaws.com/redis-stack/redis-stack-se
Already downloaded: /Users/mmangione/Library/Caches/Homebrew/downloads/233de96d05b20119de565d70e00318af8e5a7cac497d6248137041730192055e--redis-stack-server-7.2.0-v10.monterey.arm64.zip
Warning: Cannot verify integrity of '233de96d05b20119de565d70e00318af8e5a7cac497d6248137041730192055e--redis-stack-server-7.2.0-v10.monterey.arm64.zip'.
No checksum was provided.
For your reference, the checksum is:
  sha256 "bdd8ecb61f3619f898842d141d558b8c683767edce9874fd618a79a28cf68d64"
All dependencies satisfied.
==> Installing Cask redis-stack-server
==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method `exists?' for class Dir
/opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in `block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `instance_eval'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in `install_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:248:in `block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in `install_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:113:in `install'
/opt/homebrew/Library/Homebrew/cmd/install.rb:246:in `block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `each'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/redis-stack/homebrew-redis-stack/issues/new

undefined method `exists`? for class Dir

When i tried install redis stack using brew i encountered the following errror:

Harun-MacBook-Pro:Projects harunkelesoglu$ brew install redis-stack
==> Downloading https://redismodules.s3.amazonaws.com/redis-stack/.donotremove
-#O=-#     #        #                                                                                                                                                                                                 
==> Installing dependencies: libomp, redis-stack-server, redis-stack-redisinsight
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/manifests/18.1.6
############################################################################################################################################################################################################### 100.0%
==> Fetching libomp
==> Downloading https://ghcr.io/v2/homebrew/core/libomp/blobs/sha256:a70d0d40688e8aff2129836f502b2b405b41113cab3ebb0c46c5a3ed049513b1
############################################################################################################################################################################################################### 100.0%
==> Installing libomp
==> Pouring libomp--18.1.6.arm64_sonoma.bottle.tar.gz
๐Ÿบ  /opt/homebrew/Cellar/libomp/18.1.6: 9 files, 1.7MB
==> Downloading https://redismodules.s3.amazonaws.com/redis-stack/redis-stack-server-7.2.0-v10.monterey.arm64.zip
############################################################################################################################################################################################################### 100.0%
Warning: Cannot verify integrity of '233de96d05b20119de565d70e00318af8e5a7cac497d6248137041730192055e--redis-stack-server-7.2.0-v10.monterey.arm64.zip'.
No checksum was provided.
For your reference, the checksum is:
  sha256 "bdd8ecb61f3619f898842d141d558b8c683767edce9874fd618a79a28cf68d64"
==> Installing Cask redis-stack-server
==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method `exists?' for class Dir
/opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in `block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `instance_eval'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in `abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in `install_phase'
/opt/homebrew/Library/Homebrew/cask/installer.rb:248:in `block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in `each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in `install_artifacts'
/opt/homebrew/Library/Homebrew/cask/installer.rb:113:in `install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in `block in satisfy_cask_and_formula_dependencies'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in `each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in `satisfy_cask_and_formula_dependencies'
/opt/homebrew/Library/Homebrew/cask/installer.rb:71:in `fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in `install'
/opt/homebrew/Library/Homebrew/cmd/install.rb:246:in `block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `each'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'

Error: undefined method `exists?' for class Dir

==> Purging files for version 7.2.0-v10 of Cask redis-stack-server
Error: undefined method exists?' for class Dir /opt/homebrew/Library/Taps/redis-stack/homebrew-redis-stack/Casks/redis-stack-server.rb:59:in block (2 levels) in load'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in instance_eval' /opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:47:in abstract_phase'
/opt/homebrew/Library/Homebrew/cask/artifact/abstract_flight_block.rb:26:in install_phase' /opt/homebrew/Library/Homebrew/cask/installer.rb:248:in block in install_artifacts'
/opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each' /opt/homebrew/Library/Homebrew/cask/artifact_set.rb:10:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:241:in install_artifacts' /opt/homebrew/Library/Homebrew/cask/installer.rb:113:in install'
/opt/homebrew/Library/Homebrew/cask/installer.rb:360:in block in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:346:in each'
/opt/homebrew/Library/Homebrew/cask/installer.rb:346:in satisfy_cask_and_formula_dependencies' /opt/homebrew/Library/Homebrew/cask/installer.rb:71:in fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:102:in install' /opt/homebrew/Library/Homebrew/cmd/install.rb:246:in block in run'
/opt/homebrew/Library/Homebrew/cmd/install.rb:235:in each' /opt/homebrew/Library/Homebrew/cmd/install.rb:235:in run'
/opt/homebrew/Library/Homebrew/brew.rb:92:in `

'

Where/how are the zip files built?

Which repo contains the source for how the zip files https://redismodules.s3.amazonaws.com/redis-stack/redis-stack-server-#{version}.#{osnick}.#{platform}.zip are being built?

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.