-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount sidekiq dashboard #2772
mount sidekiq dashboard #2772
Conversation
Hi @jywarren , sidekiq ran perfectly on my local machine. On production we could use sidekiq dashboard (could be used to verify if sidekiq is working). Would be adding a cron job for digest mails in this pr. |
OH cool -- anything we need to do to secure the sidekiq dashboard? |
There maybe some authentication feature or something, looking into it. |
Generated by 🚫 Danger |
@ViditChitkara Its good that you have added password protection on this route so that only specific person could see it. |
config/schedule.rb
Outdated
puts Dir.pwd | ||
command "date -u" #This will print utc time every 1 min in log/cron_log.log file | ||
end | ||
# every 1.minutes do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should not comment this? The only thing it is doing here is printing the time every one minute so that we can make sure that it is running. What do you say?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I was testing something, forgot to uncomment it. Will do!
25cc013
to
b7adc02
Compare
@jywarren , @icarito Some tests are failing :- |
b7adc02
to
213ce34
Compare
@icarito this coming week if you have a moment to look at this, we'd love your help - thanks! |
Vidit, I think it maybe an issue of routing between containers. I'm not an expert on this but you may be able to search stack overflow a bit to try to resolve it? |
Yep, I'll try and search it. It appears to be just a small tweak, but we have to search deeper for this. I would be needing @icarito 's help. Going to do this, coming week. Side by side would be working on the 'like with multiple reactions' follow-ups. Currently we are not showing usernames of those who have liked a particular comment, my next pr would be for this. Does this sound good? |
Yes, great!
…On Sat, Jun 23, 2018, 11:14 AM Vidit ***@***.***> wrote:
Yep, I'll try and search it. It appears to be just a small tweak, but we
have to search deeper for this. I would be needing @icarito
<https://github.com/icarito> 's help. Going to do this, coming week. Side
by side would be working on the 'like with multiple reactions' follow-ups.
Currently we are not showing usernames of those who have liked a particular
comment, my next pr would be for this. Does this sound good?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2772 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJzyQhN5QdJOz40VOJN51a-dRp4fRks5t_oVigaJpZM4UbcGm>
.
|
Hi vidit sorry I didn't get to this yet but will do first thing Monday.
Thanks for your patience. Have a great weekend!
El sábado, 23 de junio de 2018, Jeffrey Warren <[email protected]>
escribió:
… Yes, great!
On Sat, Jun 23, 2018, 11:14 AM Vidit ***@***.***> wrote:
> Yep, I'll try and search it. It appears to be just a small tweak, but we
> have to search deeper for this. I would be needing @icarito
> <https://github.com/icarito> 's help. Going to do this, coming week.
Side
> by side would be working on the 'like with multiple reactions'
follow-ups.
> Currently we are not showing usernames of those who have liked a
particular
> comment, my next pr would be for this. Does this sound good?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2772 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AABfJzyQhN5QdJOz40VOJN51a-dRp4fRks5t_oVigaJpZM4UbcGm>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2772 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS-9Y8oaF3H1HQHXElW_RKI912y_Sks5t_pdggaJpZM4UbcGm>
.
--
Sebastian Silva
http://somosazucar.org/
|
Hi @ViditChitkara please review this patch ViditChitkara#1 it produced a different error apparently unrelated to Redis. Hope that helps! |
Hopefully this helps! |
Hi @icarito, Sorry for the delay, was reinstalling plots on my system. This is related to tests I guess, hope redis will work now!! I'll push a patch to fix these tests. |
1537f5d
to
4b77d2f
Compare
@ViditChitkara How we can check this dashboard? |
The changes seem good to me. Just wanted to ask if the contents of docker-compose-testing need to be copied to docker-compose-production?? |
Yes, that's right to production and stable as well... and are you sure the
requests themselves don't include visible personal information like even a
username? Thanks!
…On Sat, Jun 30, 2018, 4:39 AM Vidit ***@***.***> wrote:
The changes seem good to me. Just wanted to ask if the contents of
docker-compose-testing need to be copied to docker-compose-production??
Also, I would be needing sidekiq dashboard access to keep a check on
errors. Can we keep it unauthenticated for sometime?? It is not a security
issue as it gives stats of processed and erroneous requests.
@icarito <https://github.com/icarito>, @jywarren
<https://github.com/jywarren>?
Once this gets merged I'll work on digest email template improvement and
any sidekiq follow-ups, if required.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2772 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ-swEsWaZWBGV18Pykp160KWoaU5ks5uBzkEgaJpZM4UbcGm>
.
|
@jywarren I don't see the db container in production docker compose file. However it is there in all other containers. Any particular reason for that? |
Shall I do the auth thing in next pr?? |
Yes @vidit we're trying to standardize our docker-compose-*.yml files.
Production currently uses an independent mysql container that is in a
different compose file.
As opposed to staging, we're running production in "host" network mode
so we'll have to omit the `links` section and add `network_mode:host` to
the sidekiq container configuration.
For the case of redis container, you'll need to add a "ports" directive
like this:
```
ports:
- "127.0.0.1:3307:3306"
```
(With the correct port for Redis). This will make sure Redis port is
only open for localhost.
I'm aware this docker-compose setup is complex and we're looking to
simplify it, thanks for your input and efforts!
…On 30/06/18 09:17, Vidit wrote:
@jywarren <https://github.com/jywarren> I don't see the db container
in production docker compose file. However it is there in all other
containers. Any particular reason for that?
|
Got it @icarito , I have made the final changes. If you want to have a look?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this looks good to @icarito it looks good to me!
cool! 👍 |
Ack, sorry, this drifted out of sync as we merged a couple other things. @ViditChitkara can you resolve the conflicts and we can go ahead and merge this? Thanks! |
I went ahead and resolved the issue, i hope this passes! |
Should resolve #2779... but maybe it didn't? I see in stable:
Did I do something wrong in my resolving the conflicts here? It did pass Travis... |
Oops I guess I missed a lot, sorry couldn't do much as I was out yesterday!! I'll have a look at circular dependency. |
I got it @ViditChitkara ! New PR in #2977 |
If this was working in Currently the difference is only the port number so I'll make a PR for making this also configurable by environment variable. |
cool |
also, if you could have a look at production container. It looks good from my side though! |
ok this should work in stable with #2977 - I'll work on production one now. |
Cool! I thought of this but then I saw this line in testing container.
…On Wed, Jul 4, 2018, 11:30 AM Sebastian Silva ***@***.***> wrote:
@ViditChitkara <https://github.com/ViditChitkara> ViditChitkara#2
<ViditChitkara#2> pls this is the actual
fix
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2772 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVkX0fSolbj9irMhiCCTFWD2X-g5Rjnjks5uDFn7gaJpZM4UbcGm>
.
|
* changes in docker-compose.yml for redis fixes * minor chnanges * minor tweak * add redis url to web container * minor chane for testing * minor chane for testing * merge with master * changes in tests * Fix link to redis container * Fix directory reference for sidekiq volume * Fix circular dependency. * Add link to redis container to testing compose file * remove sidekiq admin constraints for testing * sample cron job for testing on unstable * changes for testing * minor changes * mysql connection fix * mysql connection fix 2 * mysql connection fix 3 * mysql connection fix 4 * Try link to db. * Add rails environment * Update users_controller_test.rb * minor chane for testing * merge with master * Fix circular dependency. * Add link to redis container to testing compose file * made docker-compose changes for production * minor change
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
fixes #0000
-style reference to original issue #@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays.
Thanks!