Package Details: crowdsec 1.6.8-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: 21
Popularity: 0.50
First Submitted: 2021-12-01 20:49 (UTC)
Last Updated: 2025-03-27 07:17 (UTC)

Latest Comments

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

xiota commented on 2024-03-21 02:59 (UTC) (edited on 2024-03-21 03:04 (UTC) by xiota)

Previous versions of this package inproperly installed files to /usr/local. If the files were not removed, they would override files installed to the correct location.

The only files that should be in /usr/local are ones you put there yourself. Most people don't use /usr/local at all, so all files should be safe to delete: find /usr/local -type f

doums commented on 2024-03-21 00:32 (UTC) (edited on 2024-03-21 00:43 (UTC) by doums)

Delete, clone a fresh copy, and rebuild

Actually that is what I did. I even cleaned go cache.

It even warns about the version during the package install -> https://b.deip.fr/p/sloth-tiger-pony

xiota commented on 2024-03-20 22:58 (UTC) (edited on 2024-03-20 23:00 (UTC) by xiota)

@doums Looks like you're using an old build. Delete, clone a fresh copy, and rebuild.

Note: Your output shows date from over four months ago. BuildDate: 2023-11-09_23:28:46

Here is output from my computer:

$ cscli version
2024/03/20 22:53:51 version: v1.6.0
2024/03/20 22:53:51 Codename: alphaga
2024/03/20 22:53:51 BuildDate: 2024-02-24_01:29:32
2024/03/20 22:53:51 GoVersion: 1.22.0
2024/03/20 22:53:51 Platform: linux
2024/03/20 22:53:51 libre2: C++
2024/03/20 22:53:51 Constraint_parser: >= 1.0, <= 3.0
2024/03/20 22:53:51 Constraint_scenario: >= 1.0, <= 3.0
2024/03/20 22:53:51 Constraint_api: v1
2024/03/20 22:53:51 Constraint_acquis: >= 1.0, < 2.0

doums commented on 2024-03-20 22:07 (UTC) (edited on 2024-03-20 22:09 (UTC) by doums)

After successful installation of crowdsec 1.6.0-2 I get warning about outdated version when running cscli commands

WARN[20-03-2024 23:01:13] Crowdsec is not the latest version. Current version is 'v1.5.5' and the latest stable version is 'v1.6.0'. Please update it!

For instance running sudo cscli version

2024/03/20 23:03:06 version: v1.5.5-8224c477027d8f2e1241eacc69a004dd470d3a0f
2024/03/20 23:03:06 Codename: alphaga
2024/03/20 23:03:06 BuildDate: 2023-11-09_23:28:46
2024/03/20 23:03:06 GoVersion: 1.21.4
2024/03/20 23:03:06 Platform: linux
2024/03/20 23:03:06 libre2: C++
2024/03/20 23:03:06 Constraint_parser: >= 1.0, <= 2.0
2024/03/20 23:03:06 Constraint_scenario: >= 1.0, < 3.0
2024/03/20 23:03:06 Constraint_api: v1
2024/03/20 23:03:06 Constraint_acquis: >= 1.0, < 2.0

What the heck?

Note I get this is after a fresh install, not a package upgrade

mirehasfun commented on 2024-03-13 09:53 (UTC) (edited on 2024-03-13 16:22 (UTC) by mirehasfun)

Hi @mhdi

Would it be possible to set the arch in the PKGBUILD to 'any' again? I am using crowdsec on a RPI3 and 4 / aarch64 and it compiles just fine.

xiota commented on 2024-02-23 21:08 (UTC)

@doums Install base-devel.

xiota commented on 2024-02-23 21:05 (UTC)

Since git isn't needed, the errors/warnings can be silenced with:

prepare() {
  # git not needed, silence warnings/errors
  install -m755 /dev/null git
  export PATH="$srcdir:$PATH"
}

Perhaps the files in etc/crowdsec could be added to a backup array?

doums commented on 2024-02-23 16:32 (UTC)

@mhdi I confirm now the packages builds successfully but with a bunch of errors:

  -> Stripping unneeded symbols from binaries and libraries...                                  /usr/share/makepkg/tidy/strip.sh: line 48: debugedit: command not found                                    

Though, the update of the package is failing:

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                          [----------------------------------------] 100%
(2/2) checking package integrity                                        [----------------------------------------] 100%
(2/2) loading package files                                             [----------------------------------------] 100%
(2/2) checking for file conflicts                                       [----------------------------------------] 100%
error: failed to commit transaction (conflicting files)
crowdsec: /etc/crowdsec/acquis.yaml exists in filesystem
crowdsec: /etc/crowdsec/config.yaml exists in filesystem
[...]
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).

mhdi commented on 2024-02-23 12:43 (UTC) (edited on 2024-02-23 21:32 (UTC) by mhdi)

@xiota, I've tested the PKGBUILD in a clean chroot with and without git in makedepends. It builds fines in both cases. However, there are some errors.

git is included in makedepends:

==> Starting build()...
fatal: not a git repository (or any of the parent directories): .git

git is not included in makedepends:

==> Starting build()...
make: git: No such file or directory

Despite these errors, the package builds successfully. Therefore, I think git may not be necessary.