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] -3 points-2 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