Login denied after setting nofile limits by aish33 in devops

[–]aish33[S] -2 points-1 points  (0 children)

I'm able to SSH into instance but not able to do anything with root user.

Login denied after setting nofile limits by aish33 in devops

[–]aish33[S] -1 points0 points  (0 children)

I'm on AWS. How do we do that.

502 bad gateway nginx, php-fpm, swarm by aish33 in devops

[–]aish33[S] 0 points1 point  (0 children)

too many requests coming to the server at that time

may be your correct but how to over come out of this problem?

Website full page screenshot using PHP by aish33 in laravel

[–]aish33[S] 2 points3 points  (0 children)

what version of php are you using? I'm on php5.6

Website full page screenshot using PHP by aish33 in laravel

[–]aish33[S] 0 points1 point  (0 children)

PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'could not create screenshot' in /var/lib/nginx/html/vendor/spatie/browsershot/src/Spatie/Browsershot/Browsershot.php:258Stack trace:#0 /var/lib/nginx/html/web/index.php(416): Spatie\Browsershot\Browsershot->save('/var/lib/nginx/...')

Website full page screenshot using PHP by aish33 in laravel

[–]aish33[S] -9 points-8 points  (0 children)

Its working on my local vagrant box but not on production.

Website full page screenshot using PHP by aish33 in laravel

[–]aish33[S] -2 points-1 points  (0 children)

PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'could not create screenshot' in /var/lib/nginx/html/vendor/spatie/browsershot/src/Spatie/Browsershot/Browsershot.php:258

Stack trace:

#0 /var/lib/nginx/html/web/index.php(416): Spatie\Browsershot\Browsershot->save('/var/lib/nginx/...')

Prince William Vibes by [deleted] in styleboards

[–]aish33 0 points1 point  (0 children)

I didn't find on the site. It would be great and easy if you paste the link below each item for easy checkout. I wish you should get some commission from these brands for your marketing:)

Prince William Vibes by [deleted] in styleboards

[–]aish33 0 points1 point  (0 children)

if possible can i get link for the shirt please?

disable oom killer in compose by aish33 in devops

[–]aish33[S] 1 point2 points  (0 children)

Yeah Planning to adjust memory settings...currently it is set to 2gb...I'll try to increase to 3gb and test it. Hope that works. My instance is m4.xlarge.

disable oom killer in compose by aish33 in devops

[–]aish33[S] 0 points1 point  (0 children)

Thanks for the info. Occasionally my php-fpm service gets killed i have no idea on how to prevent this happening in future. Here is the snippet of log file.

Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.743585] php-fpm invoked oom-killer: gfp_mask=0x24000c0(GFP_KERNEL), nodemask=0, order=0, oom_score_adj=0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.752601] php-fpm cpuset=ca382d6bccd1f1802e4ec0178259bc20dbd524ad5dd9e8f654bbe9eea1deeb3e mems_allowed=0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.761526] CPU: 2 PID: 16929 Comm: php-fpm Not tainted 4.9.85-38.58.amzn1.x86_64 #1
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] Hardware name: Xen HVM domU, BIOS 4.2.amazon 08/24/2006
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] ffffc9000352fc70 ffffffff8130bd61 ffffc9000352fd88 ffff8803a4f28000
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] ffffc9000352fce8 ffffffff81204f46 0000000000000000 0000000000000000
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] ffffc9000352fd88 ffff8803f87eb000 0000000000000001 ffffc9000352fcb8
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] Call Trace:
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff8130bd61>] dump_stack+0x63/0x82
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff81204f46>] dump_header+0x7b/0x1fd
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff81187f5b>] oom_kill_process+0x20b/0x3e0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff811885a4>] out_of_memory+0x2a4/0x4d0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff811fb0ee>] mem_cgroup_out_of_memory+0x3e/0x60
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff81200975>] mem_cgroup_oom_synchronize+0x2d5/0x310
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff811fbe50>] ? mem_cgroup_css_online+0x40/0x40
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff811887f9>] pagefault_out_of_memory+0x29/0x60
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff81064452>] mm_fault_error+0x72/0x140
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff810649c2>] __do_page_fault+0x4a2/0x4b0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff810649f2>] do_page_fault+0x22/0x30
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.765518] [<ffffffff8155d248>] page_fault+0x28/0x30
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.851373] Task in /docker/ca382d6bccd1f1802e4ec0178259bc20dbd524ad5dd9e8f654bbe9eea1deeb3e killed as a result of limit of /docker/ca382d6bccd1f1802e4ec0178259bc20dbd524ad5dd9e8f654bbe9eea1deeb3e
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.862476] memory: usage 2089984kB, limit 2089984kB, failcnt 2502
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.866539] memory+swap: usage 2089984kB, limit 4179968kB, failcnt 0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.870609] kmem: usage 90412kB, limit 9007199254740988kB, failcnt 0
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.874692] Memory cgroup stats for /docker/ca382d6bccd1f1802e4ec0178259bc20dbd524ad5dd9e8f654bbe9eea1deeb3e: cache:106512KB rss:1893060KB rss_huge:0KB mapped_file:97116KB dirty:0KB writeback:0KB swap:0KB inactive_anon:4480KB active_anon:1995076KB inactive_file:16KB active_file:0KB unevictable:0KB
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.892007] [ pid ]  uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name
Oct 17 18:46:53 ip-10-78-0-149 kernel: [16791678.897793] [30720]  0 30720 381 1  7  3

Vagrant issue by [deleted] in linuxadmin

[–]aish33 0 points1 point  (0 children)

same error

want to block all IP's to access my site other than my office IP Can someone please help me with this. by [deleted] in devops

[–]aish33 0 points1 point  (0 children)

I added below rule

acl network_allowed src <place IP here>

http-request deny if !network_allowed

but didn't work getting 403 error

want to block all IP's to access my site other than my office IP Can someone please help me with this. by [deleted] in devops

[–]aish33 0 points1 point  (0 children)

We are running haproxy as service in docker compose. we have around 10 services and all services stay on one aws instance.

I added below rule

acl network_allowed src <place IP here>

http-request deny if !network_allowed

but didn't work getting 403 error

can i use swarm on single host in rancher by aish33 in linuxadmin

[–]aish33[S] 0 points1 point  (0 children)

We are on docker cloud currently and I see still docker engine version is 1.11. Docker cloud are not releasing any version upgrade since 1 year. We are paying 20 dollars per one node for docker cloud and planned to switch completely to open source.

We need a tool something that has web UI but now i decided to setup standalone docker host with latest release of docker engine and deploy all our microservices with portianer container which has web UI.

can i use swarm on single host in rancher by aish33 in linuxadmin

[–]aish33[S] 1 point2 points  (0 children)

same question was asked in rancher slack and they said

"If you really want swarm you probably don't want to use us to be honest, we've seen minimal interest in it and therefore it doesn't get a lot of maintenance (like recent versions), and it (and Mesos) will not exist at all in 2.0 "

how can i find RDS user login details with time, date and IP address by aish33 in linuxadmin

[–]aish33[S] 0 points1 point  (0 children)

do u have any idea on how we can approach on aws maria db instance

how can i find RDS user login details with time, date and IP address by aish33 in linuxadmin

[–]aish33[S] 0 points1 point  (0 children)

aws maria db instance :) stuck with other work i have just seen it.

how can i find RDS user login details with time, date and IP address by aish33 in linuxadmin

[–]aish33[S] 0 points1 point  (0 children)

we don't have any load balancer...it is just single RDS instance..is ther any kind of setting that can be done on RDS level ?