Package Details: crowdsec 1.6.1-1

Git Clone URL: https://aur.archlinux.org/crowdsec.git (read-only, click to copy)
Package Base: crowdsec
Description: The open-source and collaborative security suite
Upstream URL: https://www.crowdsec.net
Licenses: MIT
Submitter: solveit
Maintainer: mhdi
Last Packager: mhdi
Votes: 20
Popularity: 0.87
First Submitted: 2021-12-01 20:49 (UTC)
Last Updated: 2024-04-17 12:40 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

nl.smart commented on 2024-02-23 07:26 (UTC) (edited on 2024-02-23 07:26 (UTC) by nl.smart)

Thanks for your answer, how to provide more info ?

[nls@lap ~]$ pamac update -a
Preparing...
Synchronizing package databases...
Checking crowdsec dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  crowdsec  1.6.0-1  (1.5.5-1)  AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning crowdsec build files...
Generating crowdsec information...
Authentication is required to install, update, or remove packages
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ====

Building crowdsec...
==> Making package: crowdsec 1.6.0-1 (ven. 23 févr. 2024 08:18:02)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading crowdsec-1.6.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  897k    0  897k    0     0  1340k      0 --:--:-- --:--:-- --:--:-- 11.2M
  -> Found crowdsec.install
==> Validating source files with sha256sums...
    crowdsec-1.6.0.tar.gz ... Passed
    crowdsec.install ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting crowdsec-1.6.0.tar.gz with bsdtar
==> Starting build()...
Building v1.6.0 (a78493c) dynamic for linux/amd64
Using C++ regexp library

go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-dummy
Building Release to dir crowdsec-v1.6.0
cp: cannot stat './cmd/crowdsec/crowdsec': No such file or directory
make: *** [Makefile:255: package] Error 1
make: *** Waiting for unfinished jobs....
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-email
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-http
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-sentinel
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-slack
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-23_08:18:04' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-splunk
==> ERROR: A failure occurred in build().
    Aborting...
[nls@lap ~]$ 

mhdi commented on 2024-02-22 11:20 (UTC) (edited on 2024-02-22 11:20 (UTC) by mhdi)

Hi,

I looked into the issue, but wasn't able to reproduce it.

Could you please provide more information?

nl.smart commented on 2024-02-22 08:40 (UTC) (edited on 2024-02-22 08:45 (UTC) by nl.smart)

HI,

Thanks a lot to maintain crowdsec for arch :-)

Same issue as doums during the last up date

PKGDUILD

Preparing...
Synchronizing package databases...
Refreshing AUR...
Checking crowdsec dependencies...
Resolving dependencies...
Checking inter-conflicts...
Cloning crowdsec build files...
Generating crowdsec information...

Building crowdsec...
==> Making package: crowdsec 1.6.0-1 (jeu. 22 févr. 2024 09:22:03)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading crowdsec-1.6.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100 13159    0 13159    0     0  28521      0 --:--:-- --:--:-- --:--:-- 28521
100  897k    0  897k    0     0  1554k      0 --:--:-- --:--:-- --:--:-- 7692k
  -> Found crowdsec.install
==> Validating source files with sha256sums...
    crowdsec-1.6.0.tar.gz ... Passed
    crowdsec.install ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting crowdsec-1.6.0.tar.gz with bsdtar
==> Starting build()...
Building v1.6.0 (a78493c) dynamic for linux/amd64
Using C++ regexp library

go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-dummy
Building Release to dir crowdsec-v1.6.0
cp: cannot stat './cmd/crowdsec/crowdsec': No such file or directory
make: *** [Makefile:255: package] Error 1
make: *** Waiting for unfinished jobs....
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-email
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-http
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-sentinel
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-slack
go build -ldflags "-s -w  -X 'github.com/crowdsecurity/go-cs-lib/version.Version=v1.6.0' -X 'github.com/crowdsecurity/go-cs-lib/version.BuildDate=2024-02-22_09:22:05' -X 'github.com/crowdsecurity/go-cs-lib/version.Tag=a78493c' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec' -X 'github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data' -X 'github.com/crowdsecurity/crowdsec/pkg/cwversion.Libre2=C++'" -trimpath -tags netgo,osusergo,sqlite_omit_load_extension,re2_cgo  -o notification-splunk
==> ERROR: A failure occurred in build().
    Aborting...

crowdsec.install

post_install() {
    cscli capi register --error
    cscli machines add --auto --force --error
    cscli hub update
}

pre_upgrade() {
    cscli config backup /var/lib/crowdsec/backup
}

post_upgrade() {
    if [[ -d /var/lib/crowdsec/backup ]]; then
        cscli config restore /var/lib/crowdsec/backup && rm -rf /var/lib/crowdsec/backup
    fi
    cscli hub update
    cscli hub upgrade
}

pre_remove() {
    cscli dashboard remove --force --yes --error || true
}

doums commented on 2024-02-19 10:05 (UTC) (edited on 2024-02-19 10:05 (UTC) by doums)

Hi, on latest version build is hard failing:

==> Starting build()...
Building v1.6.0 (a78493c) dynamic for linux/amd64
Using C++ regexp library

go build -ldflags [...]
Building Release to dir crowdsec-v1.6.0
cp: cannot stat './cmd/crowdsec/crowdsec': No such file or directory
make: *** [Makefile:255: package] Error 1
make: *** Waiting for unfinished jobs.

solveit commented on 2023-10-05 15:45 (UTC)

@theinterwebthing - there is an error where it doesn't properly run the upgrade script. In the short term, running the following will properly install the new release.

/usr/local/installers/crowdsec/crowdsec/crowdsec-v1.5.4 --upgrade --force

theinterwebthing commented on 2023-10-03 10:32 (UTC) (edited on 2023-10-03 10:34 (UTC) by theinterwebthing)

Seems to have broken with the upgrade of abseil-cpp to 202308 in late September.

crowdsec[xxxxxx]: /usr/local/bin/crowdsec: error while loading shared libraries: libabsl_flags.so.2301.0.0: cannot open shared object file: No such file or directory

]$ locate libabsl_flags

/usr/lib/libabsl_flags.so

/usr/lib/libabsl_flags.so.2308.0.0

]$ pacman -Qo /usr/lib/libabsl_flags.so.2308.0.0

/usr/lib/libabsl_flags.so.2308.0.0 is owned by abseil-cpp 20230802.1-1

solveit commented on 2022-03-14 16:16 (UTC) (edited on 2022-03-14 21:02 (UTC) by solveit)

Edit 2: After emailing with crowdsec, I have an acceptable solution to the build_tag. I will implement it in the next PKGBUILD.

Edit 1: I didn't notice this, but your version shows up as 1.3.0. The latest revision is 1.3.2. While the build_tag still shows up as blank, it is not asking me to update when accessing app.crowdsec.net

I will have to reach out to crowdsec as I don't know what they're looking to see. The issue is that when you download the source from github, it is not seen as a repository. This is why I have to manually adjust the BUILD_VERSION in the PKGBUILD file.

The Makefile defines the missing BUILD_TAG using git rev-parse HEAD. This is then used in the pkg/cwversion/version.go file with the Show function. This defines the version for cscli as BUILD_VERSION-BUILD_TAG.

They also have a "static" release that might be a better option.