Giter Club home page Giter Club logo

remp2020 / remp Goto Github PK

View Code? Open in Web Editor NEW
126.0 126.0 39.0 132.25 MB

REMP - Reader's engagement and monetization platform. Set of open-source tools for publishers to engage with their audience. Repository is public mirror of our internal private repo.

Home Page: https://remp2020.com

License: MIT License

Makefile 0.16% PHP 64.30% Shell 0.12% Go 5.01% JavaScript 3.84% Vue 11.65% HTML 0.01% Dockerfile 0.06% Blade 4.85% Latte 4.26% SCSS 5.67% Twig 0.07%

remp's People

Contributors

banalytics avatar brezak avatar burithetech avatar danilloricardo avatar davidkoberan avatar drzikfilip avatar ericlima avatar klepek avatar kudlohlavec avatar laravel-shift avatar lubo-makky avatar lubos-michalik avatar lulco avatar markoph avatar martin-ha avatar martinstrycek avatar matefko avatar matejminar avatar megadevel avatar miroc avatar mmacsodi-fcm avatar nakashu avatar obrunodelgado avatar payter avatar pulzarraider avatar rastislavbr avatar rootpd avatar strstensky avatar tomaj avatar zoldia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

remp's Issues

Error while ordering campaign list by segments

Description
When I try to order the Campaign Lists by segments, I receive this error:

image

Steps to Reproduce

  1. Access http://campaign.remp.press/campaigns;
  2. Order Campaign List by Segments;
  3. The error will occur;

Facts
During debug, we found that this errors occurs when CollectionDataTable.php calls $this->ordering(); at line 158.

image

Stack Trace

[2019-10-16 16:05:00] production.ERROR: Undefined index: segments {"userId":6,"email":"[email protected]","exception":"[object] (Yajra\\DataTables\\Exceptions\\Exception(code: 0): Undefined index: segments at /var/www/remp/Campaign/vendor/yajra/laravel-datatables-oracle/src/DataTableAbstract.php:778, ErrorException(code: 0): Undefined index: segments at /var/www/remp/Campaign/vendor/yajra/laravel-datatables-oracle/src/CollectionDataTable.php:288)
[stacktrace]
#0 /var/www/remp/Campaign/vendor/yajra/laravel-datatables-oracle/src/CollectionDataTable.php(167): Yajra\\DataTables\\DataTableAbstract->errorResponse(Object(ErrorException))
#1 /var/www/remp/Campaign/app/Http/Controllers/CampaignController.php(131): Yajra\\DataTables\\CollectionDataTable->make(true)
#2 [internal function]: App\\Http\\Controllers\\CampaignController->json(Object(Yajra\\DataTables\\DataTables), Object(App\\Contracts\\SegmentAggregator))
#3 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#4 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('json', Array)
#5 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\CampaignController), 'json')
#6 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\\Routing\\Route->runController()
#7 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\\Routing\\Route->run()
#8 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#9 /var/www/remp/Campaign/vendor/remp/laravel-sso/src/Http/Middleware/VerifyJwtToken.php(74): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#10 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Remp\\LaravelSso\\Http\\Middleware\\VerifyJwtToken->handle(Object(App\\Http\\Request), Object(Closure))
#11 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#12 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#13 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(App\\Http\\Request), Object(Closure))
#14 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#15 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#16 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(App\\Http\\Request), Object(Closure))
#17 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#18 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#19 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(App\\Http\\Request), Object(Closure))
#20 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#21 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(63): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#22 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Session\\Middleware\\StartSession->handle(Object(App\\Http\\Request), Object(Closure))
#23 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#24 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#25 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(App\\Http\\Request), Object(Closure))
#26 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#27 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#28 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(App\\Http\\Request), Object(Closure))
#29 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#30 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#31 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Router.php(684): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#32 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Router.php(659): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Request))
#33 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\\Routing\\Router->runRoute(Object(App\\Http\\Request), Object(Illuminate\\Routing\\Route))
#34 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Router.php(614): Illuminate\\Routing\\Router->dispatchToRoute(Object(App\\Http\\Request))
#35 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(App\\Http\\Request))
#36 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(App\\Http\\Request))
#37 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(31): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#38 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(App\\Http\\Request), Object(Closure))
#39 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#40 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(31): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#41 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(App\\Http\\Request), Object(Closure))
#42 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#43 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(31): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#44 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(App\\Http\\Request), Object(Closure))
#45 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#46 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#47 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(App\\Http\\Request), Object(Closure))
#48 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#49 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#50 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(App\\Http\\Request), Object(Closure))
#51 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Http\\Request))
#52 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(App\\Http\\Request))
#53 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#54 /var/www/remp/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(App\\Http\\Request))
#55 /var/www/remp/Campaign/public/index.php(54): Illuminate\\Foundation\\Http\\Kernel->handle(Object(App\\Http\\Request))
#56 {main}
"}

"You are seeing this message because ad or script blocking software is interfering with this page." showing for customer with "no advertising" purchased

I am a paying customer of DennikN.sk and I have a subscription which includes among other things "no advertisement". But I see following message at the bottom of their website, even when logged in:

"You are seeing this message because ad or script blocking software is interfering with this page.
Disable any ad or script blocking software, then reload this page."

Since I'm not supposed to see any advertising, I see no point in being reminded that I'm using ad-blocker and I see no need to add any exceptions or to disable it. But, given "no advertising" option being purchased, I believe I can reasonably expect it is responsibility of the website in question (i.e. DennikN) to make sure such notification is NOT displayed to me.

Response from DennikN indicates, that this component is responsible for that message.

And since they also indicated they are not able to fix that themselves, I'm raising this issue here myself.

Side note: Same issue and I suspect same code (i.e. this REMP) is present also on sme.sk .

REMP Tracker and Segments - Log errors to the right channel

Description

The REMP Segment and Tracker modules are logging both error and info messages to the same file (using the same facility), which makes debugging and error checking almost impossible, due to the verbosity of the info messages.

What is happening

  1. Using /var/log/messages (syslog dafault location) for log lines from segments and tracker;
  2. Both INFO and ERROR severities are logged to this log file.

Impact of this issue

Right now, we've changed the start-up script to log STDOUT to a file and STDERR to another. Problem is, the application logs are being written to STDERR only, even when it's an info message.
Because of this, we have the following logfiles:

[PROD] [root@REMP ~] $ ls -alkhtr /var/log/tracker/
total 849M
-rw-r--r--   1 nginx nginx    0 Oct 25 17:40 tracker.out
-rw-r--r--   1 nginx nginx 116M Nov 21 00:01 tracker.err-20191121.gz
-rw-r--r--   1 nginx nginx 132M Nov 22 00:01 tracker.err-20191122.gz
-rw-r--r--   1 nginx nginx  91M Nov 23 00:01 tracker.err-20191123.gz
-rw-r--r--   1 nginx nginx  57M Nov 24 00:01 tracker.err-20191124.gz
-rw-r--r--   1 nginx nginx 298M Nov 25 00:01 tracker.err-20191125
drwxr-xr-x   2 nginx nginx  196 Nov 25 00:01 .
drwxr-xr-x. 20 root  root  4.0K Nov 25 01:01 ..
-rw-r--r--   1 nginx nginx 112M Nov 25 11:47 tracker.err

What should be happening

There should be an application-wide configuration to output the messages (info) and the errors (warning,error,etc.) to different locations. Additionally, logging should follow the user's preferences when it comes to the minimum severity to which log to file.

  1. There could be a conf file to specify a file path to the desired location.
  2. There could be an option in the conf file to select the desired loglevel of the messages to write to file.

Version used
https://github.com/remp2020/remp/tree/0.9.1

Date format

Please could you make the data format an environmental variable.

Eg. the placeholder hints are incorrect in our system in Edit/Create Subscription Type. The system hints dd.mm.yyyy, but we use yyyy-mm-dd.

Add tests

Please add unit and integration tests to this repository.

Trouble using in Win10 without docker

i'm having trouble when i tried to access the beam, i already have installed the sso and its working, but the beam isn't, here is the error that i'm getting

Screenshot_2
Screenshot_1

in the header, i used the same token that is in the browser url

Sql error on Mailer DB migrate

I'm installing on top of MariaDB. I'm getting the following error when running php bin/command.php migrate:migrate on Mailer:

using migration paths
 - /var/www/workspace/remp/Mailer/migrations
warning no environment specified, defaulting to: local
using adapter mysql
using database mailer

 == 20181106082909 AddExtrasToMailTemplates: migrating
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'JSON NULL' at line 1 in /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php:338
Stack trace:
#0 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php(338): PDO->exec('ALTER TABLE `ma...')
#1 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/MysqlAdapter.php(422): Phinx\Db\Adapter\PdoAdapter->execute('ALTER TABLE `ma...')
#2 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Db/Table.php(628): Phinx\Db\Adapter\MysqlAdapter->addColumn(Object(Phinx\Db\Table), Object(Phinx\Db\Table\Column))
#3 /var/www/workspace/remp/Mailer/migrations/20181106082909_add_extras_to_mail_templates.php(11): Phinx\Db\Table->update()
#4 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Migration/Manager/Environment.php(122): AddExtrasToMailTemplates->change()
#5 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php(366): Phinx\Migration\Manager\Environment->executeMigration(Object(AddExtrasToMailTemplates), 'up')
#6 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php(342): Phinx\Migration\Manager->executeMigration('local', Object(AddExtrasToMailTemplates), 'up')
#7 /var/www/workspace/remp/Mailer/vendor/robmorgan/phinx/src/Phinx/Console/Command/Migrate.php(113): Phinx\Migration\Manager->migrate('local', 20190213082954)
#8 /var/www/workspace/remp/Mailer/vendor/symfony/console/Command/Command.php(255): Phinx\Console\Command\Migrate->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/workspace/remp/Mailer/vendor/symfony/console/Application.php(953): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/workspace/remp/Mailer/vendor/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(Phinx\Console\Command\Migrate), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/workspace/remp/Mailer/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/workspace/remp/Mailer/bin/command.php(33): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 {main}

Errors at the start when make docker-build

Hello thank you for your work.
First of all, I would like to ask: Is it realistic install this project from a docker to m2 chip macos. I saw several images that are not compatible.

After that I switched to Ubuntu v 22.04.
Docker v 24.0.6 build ed223bc
When I run make docker-build

❯ make docker-build
cd "Beam" && make docker-build
make[1]: Entering directory '/var/www/remp/Beam'
make[2]: Entering directory '/var/www/remp/Beam/go/cmd/tracker'
set -e; \
docker build -t remp-beam_tracker_builder builder; \
docker run -e TARGET_GOOS -e TARGET_GOARCH -e TARGET_SUFFIX --rm -v $PWD/../../:/src/build remp-beam_tracker_builder > tracker.tar;
[+] Building 2.2s (13/13) FINISHED                         docker:desktop-linux
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 314B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/golang:1.20.5           2.0s
 => [auth] library/golang:pull token for registry-1.docker.io              0.0s
 => [1/7] FROM docker.io/library/golang:1.20.5@sha256:fd9306e1c664bd49a11  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 206B                                          0.0s
 => CACHED [2/7] RUN go install golang.org/x/tools/cmd/goimports@latest    0.0s
 => CACHED [3/7] RUN mkdir -p /src/build                                   0.0s
 => CACHED [4/7] RUN mkdir -p /go/src/gitlab.com/remp/remp/Beam/go         0.0s
 => CACHED [5/7] WORKDIR /go/src/gitlab.com/remp/remp/Beam/go              0.0s
 => CACHED [6/7] COPY build /usr/local/bin/                                0.0s
 => CACHED [7/7] RUN chmod +x /usr/local/bin/build                         0.0s
 => exporting to image                                                     0.0s
 => => exporting layers                                                    0.0s
 => => writing image sha256:17ccc1c8e34c175caee653bf26b7dd049955a3c0ed7d3  0.0s
 => => naming to docker.io/library/remp-beam_tracker_builder               0.0s

What's Next?
  View a summary of image vulnerabilities and recommendations → docker scout quickview
/usr/local/bin/build: line 5: cd: cmd/tracker: No such file or directory
tar: tracker: Cannot stat: No such file or directory
tar: swagger: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make[2]: *** [Makefile:40: docker-build] Error 2
make[2]: Leaving directory '/var/www/remp/Beam/go/cmd/tracker'
make[1]: *** [Makefile:60: docker-build] Error 2
make[1]: Leaving directory '/var/www/remp/Beam'
make: *** [Makefile:68: docker-build] Error 2

Permissons for www 775 $USER:$USER
$User added to docker group
Maybe i miss something. Can anyone help, please?

Docker installation - failed: ERROR: Service 'adminer' failed to build : Build failed

When I try to install new clean instance, installation fail.

Steps to reproduce:

git clone https://github.com/remp2020/remp.git
cd ./remp
make docker-build
docker-compose up

Output:

=> ERROR [ 2/14] RUN apt-get update && apt-get install -y g++ build-essential libsasl2-dev libssl-dev python-minimal libzip-dev libicu-dev git wget vim curl less gnupg zlib1g-dev libpng-dev libjpeg-dev libonig-dev     && pecl install xdebug  4.2s
------
 > [ 2/14] RUN apt-get update && apt-get install -y g++ build-essential libsasl2-dev libssl-dev python-minimal libzip-dev libicu-dev git wget vim curl less gnupg zlib1g-dev libpng-dev libjpeg-dev libonig-dev     && pecl install xdebug && docker-php-ext-enable xdebug     && docker-php-ext-configure intl     && docker-php-ext-configure gd --with-jpeg=/usr/include/     && docker-php-ext-install -j$(nproc) pdo_mysql bcmath mbstring iconv zip intl sockets pcntl gd     && apt-get purge         -y --auto-remove         -o APT::AutoRemove::RecommendsImportant=false         g++ build-essential libsasl2-dev libssl-dev python-minimal:
#5 0.428 Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
#5 0.440 Get:2 http://deb.debian.org/debian bullseye InRelease [113 kB]
#5 0.505 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
#5 0.570 Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [36.5 kB]
#5 0.625 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8178 kB]
#5 1.882 Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2088 B]
#5 2.636 Fetched 8412 kB in 2s (3647 kB/s)
#5 2.636 Reading package lists...
#5 2.996 Reading package lists...
#5 3.349 Building dependency tree...
#5 3.430 Reading state information...
#5 3.443 Package python-minimal is not available, but is referred to by another package.
#5 3.443 This may mean that the package is missing, has been obsoleted, or
#5 3.443 is only available from another source
#5 3.443 However the following packages replace it:
#5 3.443   python-is-python3 python-is-python2 python2-minimal
#5 3.443
#5 3.485 E: Package 'python-minimal' has no installation candidate
------
executor failed running [/bin/sh -c apt-get update && apt-get install -y ${BUILD_DEPS} ${RUN_DEPS}     && pecl install xdebug && docker-php-ext-enable xdebug     && docker-php-ext-configure intl     && docker-php-ext-configure gd --with-jpeg=/usr/include/     && docker-php-ext-install -j$(nproc) pdo_mysql bcmath mbstring iconv zip intl sockets pcntl gd     && apt-get purge         -y --auto-remove         -o APT::AutoRemove::RecommendsImportant=false         ${BUILD_DEPS}]: exit code: 100
ERROR: Service 'adminer' failed to build : Build failed

Support Segment exclusion in Campaign

In the UI

The current selectbox needs to be replaced with something more advanced. Users need to be able to state whether they want to include people of segments or exclude and select specific segment.

It should be therefore possible to configure campaign in a way that:

  • Includes users of segment Foo
  • Excludes users of segment Bar

The way how it should be done visually is still open.

In the backend

The actual exclusion/inclusion should happen with a flag in campaign_segments relation table. Frontend form CampaignForm.vue component and backend CampaignRequest class needs to be altered to reflect these changes so they editable.

The check when the banner is displayed should be done both in CampaignController::showtime() and in public/showtime.php (experimental implementation bypassing Laravel).

Unable to connect http://elasticsearch:9200

On docker-compose up still getting this error. Maybe it's related to #8

beam_1           | [17-Jun-2019 19:05:13] NOTICE: ready to handle connections
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed connect to elasticsearch:9200; Connection refused

Email as default login function

This may not be an issue, per se, but instead of relying on Google email login, by default, is there a way to enable login via email address and password using the Laravel SSO authentication? I want to set it up in a manner of different options to login where the user may not have a Gmail account.

How to install REMP on Windows 10

Hi, i have a problem to install REMP's Docker containers on Windows. When i run make docker-built i get not recognized the command

make docker-build

'make' is not recognized as an internal or external command,
operable program or batch file.

When i run docker-compose up, then i get

docker-compose up
Building beam_tracker
Step 1/8 : FROM alpine
 ---> 055936d39205
Step 2/8 : WORKDIR /bin
 ---> Using cache
 ---> 5d70f66505bd
Step 3/8 : ADD tracker.tar .
ERROR: Service 'beam_tracker' failed to build: ADD failed: stat /var/lib/docker/tmp/docker-builder566434670/tracker.tar: no such file or directory

Do i understand correctly, that this docker installation is possible to run just on Linux? It's there a possibility to run it on Windows somehow? Thank you

Can't use mysql host name in .env file

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = sso and table_name = migrations and table_type = 'BASE TABLE')

BEAM client too aggressive

The BEAM client fires every 5 seconds, using about 1.3kb per request. If a page is open for an hour, that would use up about 8mb of data. If someone leaves a page open for 24 hours in South Africa, it would cost a day's wages.

Possible solutions:

  • Use websockets where possible. You can detect the termination of the websocket to fire the time spent update.
  • Reduce the amount of data sent per request. After the first request, you really just need a pageview ID. You could even remove the time_spent - the server could calculate the time spent. (This would also close the vulnerability of being able to manually manipulate time spent.)
  • Make the interval a configurable variable.

Mailer install errors

Hello, I'm trying to setup v3.2.2 of remp. I have issues with Mailer.
yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ jquery-typeahead@npm:2.11.1 doesn't provide @babel/core (p09033), requested by @babel/register
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 272ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0071: │ Cannot link @remp/js-commons into mailer-module@file:extensions/mailer-module#extensions/mailer-module::hash=4bdb92&locator=root-workspace-0b6124%40workspace%3A. dependency jquery@npm:3.6.0 conflicts with parent dependency jquery@npm:3.6.1
➤ YN0071: │ Cannot link @remp/js-commons into mailer-module@file:extensions/mailer-module#extensions/mailer-module::hash=4bdb92&locator=root-workspace-0b6124%40workspace%3A. dependency vue@npm:2.7.14 conflicts with parent dependency vue@npm:2.7.11
➤ YN0000: └ Completed in 0s 404ms
➤ YN0000: Failed with errors in 0s 875ms

Error when upserting article through API

I've just upgraded (after a while) and am getting the following error in my client when posting to the /api/articles/upsert endpoint:

"message": "Declaration of Recca0120\\LaravelTracy\\Exceptions\\Handler::report(Throwable $e) must be compatible with Illuminate\\Contracts\\Debug\\ExceptionHandler::report(Exception $e)", 
"exception": "Symfony\\Component\\Debug\\Exception\\FatalErrorException", 
"file": "/var/www/workspace/remp/Beam/vendor/recca0120/laravel-tracy/src/Exceptions/Handler.php", 
"line": 14, 

Failure while running install.sh

The docker build is failing for the adminer service where yarn is being installed.

RUN curl -sL https://yarnpkg.com/install.sh | bash -

yarninstall

I've tried writing it into a file and then running it, which worked.

Duplicated data on Article - Pageview Stats

We noticed that there's duplicated data on Article - Pageview Stats when we apply some query conditions.

Screenshot from 2019-10-07 11-26-05

They have the same id in each of the repeated article.

Steps to Reproduce:

  1. Go to Pageview Stats in Beam;
  2. Filter by published date: Last 2 Days
  3. Order by All Pageviews (Descending)

segment builder fields not working

While creating a new segment, if any field is added, the query to validate it fails, also if its saved by mistake, it completely crashed the beam_segments server, until that segment record is deleted.

I am attached all the information below. Please help me fix the issue.

Crash log at the beam_segments after adding the key value in the fields.


beam_segments_1       | 2020/07/14 13:14:31 [INFO] params req_id=pKwh7hOPno-86 table_name=users
beam_segments_1       | 2020/07/14 13:14:31 [INFO] payload req_id=pKwh7hOPno-86 raw={"criteria":{"nodes":[{"nodes":[{"key":"pageview","negation":false,"type":"criteria","values":{"action":"load","count":{"gte":10},"fields":["utm_campaign: ele2020"],"timespan":{"interval":{"lt":{"unit":"day","value":-30}},"type":"interval"}}}],"operator":"AND","type":"operator"}],"version":"1"},"table_name":"users"}
beam_segments_1       | 2020/07/14 13:14:31 key: fields, v: [utm_campaign: ele2020]
beam_segments_1       | 2020/07/14 13:14:31 [EROR] uncaught error req_id=pKwh7hOPno-86 err=panic: interface conversion: interface {} is []interface {}, not map[string]interface {}
beam_segments_1       | panic(0xae1840, 0xc0003a71d0)
beam_segments_1       |         /usr/local/go/src/runtime/panic.go:679 +0x1b2
beam_segments_1       | github.com/remp2020/remp/Beam/go/model.(*SegmentDB).BuildRules(0xc000204180, 0xc0002d6d80, 0x11b, 0x120, 0xc0000e85a0, 0x11b, 0x0, 0xc000470b00)
beam_segments_1       |         /go/src/github.com/remp2020/remp/Beam/go/model/segment_builder.go:159 +0x1ce6
beam_segments_1       | github.com/remp2020/remp/Beam/go/cmd/segments/controller.(*SegmentController).Count(0xc000277280, 0xc0003a6e10, 0xc7d2c8, 0xb889c0)
beam_segments_1       |         /go/src/github.com/remp2020/remp/Beam/go/cmd/segments/controller/segment.go:183 +0x24c
beam_segments_1       | github.com/remp2020/remp/Beam/go/cmd/segments/app.MountSegmentsController.func3(0xc975c0, 0xc0003a6de0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0xc975c0, 0xc0003a6de0)
beam_segments_1       |         /go/src/github.com/remp2020/remp/Beam/go/cmd/segments/app/controllers.go:1034 +0x16d
beam_segments_1       | github.com/remp2020/remp/Beam/go/cmd/segments/app.handleSegmentsOrigin.func1(0xc975c0, 0xc0003a6de0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0x42ce6a, 0x0)
beam_segments_1       |         /go/src/github.com/remp2020/remp/Beam/go/cmd/segments/app/controllers.go:1183 +0x3a8
beam_segments_1       | github.com/goadesign/goa.(*Controller).MuxHandler.func1.1(0xc975c0, 0xc0003a6ba0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0xc000117320, 0x4e0e8a)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/service.go:254 +0xc9
beam_segments_1       | github.com/goadesign/goa/middleware.Recover.func1.1(0xc975c0, 0xc0003a6ba0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0x0, 0x0)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/middleware/recover.go:37 +0xb2
beam_segments_1       | github.com/goadesign/goa/middleware.ErrorHandler.func1.1(0xc975c0, 0xc0003a6ba0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0x7e73ed, 0xc000470c80)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/middleware/error_handler.go:21 +0x96
beam_segments_1       | github.com/goadesign/goa/middleware.LogResponse.func1.1(0xc975c0, 0xc0003a6ba0, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0x2, 0x2)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/middleware/log_response.go:39 +0x15d
beam_segments_1       | github.com/goadesign/goa/middleware.LogRequest.func1.1(0xc975c0, 0xc0003a6b70, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0xc00046c240, 0xc975c0)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/middleware/log_request.go:75 +0xc81
beam_segments_1       | github.com/goadesign/goa/middleware.RequestIDWithHeaderAndLengthLimit.func1.1(0xc975c0, 0xc0003a6990, 0xc94ac0, 0xc0004f2c40, 0xc000168300, 0x0, 0xc975c0)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/middleware/request_id.go:63 +0x130
beam_segments_1       | github.com/goadesign/goa.(*Controller).MuxHandler.func1(0xc95080, 0xc0003b4540, 0xc000168300, 0xc0003a6900)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/service.go:287 +0x39a
beam_segments_1       | github.com/goadesign/goa.(*mux).Handle.func1(0xc95080, 0xc0003b4540, 0xc000168300, 0x0)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/mux.go:59 +0x1c5
beam_segments_1       | github.com/dimfeld/httptreemux.(*TreeMux).ServeLookupResult(0xc0001aa000, 0xc95080, 0xc0003b4540, 0xc000168300, 0xc8, 0xc00039e980, 0x0, 0x0)
beam_segments_1       |         /go/pkg/mod/github.com/dimfeld/[email protected]+incompatible/router.go:237 +0xe8
beam_segments_1       | github.com/dimfeld/httptreemux.(*TreeMux).ServeHTTP(0xc0001aa000, 0xc95080, 0xc0003b4540, 0xc000168300)
beam_segments_1       |         /go/pkg/mod/github.com/dimfeld/[email protected]+incompatible/router.go:258 +0x109
beam_segments_1       | github.com/goadesign/goa.(*mux).ServeHTTP(0xc00001e040, 0xc95080, 0xc0003b4540, 0xc000168300)
beam_segments_1       |         /go/pkg/mod/github.com/goadesign/[email protected]/mux.go:85 +0x4c
beam_segments_1       | net/http.serverHandler.ServeHTTP(0xc0002c22a0, 0xc95080, 0xc0003b4540, 0xc000168300)
beam_segments_1       |         /usr/local/go/src/net/http/server.go:2802 +0xa4
beam_segments_1       | net/http.(*conn).serve(0xc00026e320, 0xc97500, 0xc0004f2b40)
beam_segments_1       |         /usr/local/go/src/net/http/server.go:1890 +0x875
beam_segments_1       | created by net/http.(*Server).Serve
beam_segments_1       |         /usr/local/go/src/net/http/server.go:2928 +0x384

Screenshot
Screenshot 2020-07-14 at 6 40 39 PM

Potential import collision: import path should be "github.com/sirupsen/logrus", not "github.com/Sirupsen/logrus"

Background

The sirupsen/logrus has already renamed it’s import path from "github.com/Sirupsen/logrus" to "github.com/sirupsen/logrus".
As README of logrus said, github.com/Sirupsen/logrus is the old path, anything using it should be updated to github.com/sirupsen/logrus.

Some environments experienced problems with the upper-case variant, so the lower-case was decided. Everything using logrus will need to use the lower-case: github.com/sirupsen/logrus. Any package that isn't, should be changed.

But remp2020/remp still used the old path:
https://github.com/remp2020/remp/blob/master/Beam/go/Gopkg.lock#L26

[[projects]]
  digest = "1:42a42c4bc67bed17f40fddf0f24d4403e25e7b96488456cf4248e6d16659d370"
  name = "github.com/Sirupsen/logrus"
  packages = ["."]
  pruneopts = ""
  revision = "d682213848ed68c0a260ca37d6dd5ace8423f5ba"
  version = "v1.0.4"

When you use the old path "github.com/Sirupsen/logrus" to import the logrus, it will be very easy to reintroduce logrus through the import statements "import github.com/sirupsen/logrus" in the go source file of logrus.
https://github.com/remp2020/remp/blob/master/Beam/go/vendor/github.com/Sirupsen/logrus/hooks/syslog/syslog.go

package syslog
import (
	"fmt"
	"log/syslog"
	"os"
	"github.com/sirupsen/logrus"
))
…

The "github.com/sirupsen/logrus" and "github.com/Sirupsen/logrus" are the same repos. This will work in isolation, bring about potential risks and problems.

Solution

Replace all the old import paths, change "github.com/Sirupsen/logrus" to "github.com/sirupsen/logrus".
Where did you import it: https://github.com/remp2020/remp/search?q=github.com%2FSirupsen%2Flogrus&unscoped_q=github.com%2FSirupsen%2Flogrus

Installed successfully, can not find IPs

  1. Installed successfully
  2. Edited /etc/hosts
  3. comsposer-machine ls is empty

docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS

docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34e81448e31c remp_mailer "docker-php-entrypoi…" About an hour ago Up 17 minutes 9000/tcp remp_mailer_1
7ac30b692f10 remp_beam "docker-php-entrypoi…" About an hour ago Up 17 minutes 9000/tcp remp_beam_1
434a2003ef7f remp_sso "docker-php-entrypoi…" About an hour ago Up 17 minutes 9000/tcp remp_sso_1
be467a7de640 remp_campaign "docker-php-entrypoi…" About an hour ago Up 17 minutes 9000/tcp remp_campaign_1
46e69431a66e remp_telegraf "/entrypoint.sh dock…" About an hour ago Up 17 minutes 8092/udp, 8125/udp, 8094/tcp remp_telegraf_1
514ad03317b2 remp_beam_segments "dockerize -timeout …" About an hour ago Up 17 minutes remp_beam_segments_1
85be46103b9e remp_beam_tracker "dockerize -timeout …" About an hour ago Up 17 minutes remp_beam_tracker_1
91bc55752e13 nginx:stable "/bin/bash -c 'envsu…" About an hour ago Up 17 minutes 80/tcp remp_nginx_1
4536238103f7 remp_kafka "./kafka-start.sh" About an hour ago Up 17 minutes 2181/tcp, 9092/tcp remp_kafka_1
5921b84d326c redis:3.2 "docker-entrypoint.s…" About an hour ago Up 17 minutes 6379/tcp remp_redis_1
d98c0fc0eab3 mailhog/mailhog:v1.0.0 "MailHog" About an hour ago Up 17 minutes 1025/tcp, 8025/tcp remp_mailhog_1
34c7c48908a8 docker.elastic.co/kibana/kibana:6.2.2 "/bin/bash /usr/loca…" About an hour ago Up 17 minutes 5601/tcp remp_kibana_1
5690e8ded527 remp_elasticsearch "/usr/local/bin/dock…" About an hour ago Up 17 minutes 9200/tcp, 9300/tcp remp_elasticsearch_1
7d9309c85dd4 mysql:5.7 "docker-entrypoint.s…" About an hour ago Up 17 minutes 3306/tcp, 33060/tcp remp_mysql_1
7f8839693af3 remp_adminer "docker-php-entrypoi…" About an hour ago Up 17 minutes 9000/tcp remp_adminer_1

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.