labring / sealos

Sealos is a production-ready Kubernetes distribution. You can run any Docker image on sealos, start high availability databases like mysql/pgsql/redis/mongo, develop applications using any Programming language.
https://cloud.sealos.io
Apache License 2.0
14.08k stars 2.08k forks source link

BUG: ssh cannot connect to sealos after running in centos7.9 environment. The saelos parameter nofile is configured too large. #4641

Closed Michaelxu2022 closed 2 months ago

Michaelxu2022 commented 7 months ago

Sealos Version

v4.3.7

How to reproduce the bug?

1.安装干净的centos7.9系统 2. ssh 版本9.4,系统内核版本5.4

2.saelos run后,所有服务器节点ssh断开,无法再次连接。经调试发现系统报错Could not set limit for ‘nofile’: Operation not permitted

What is the expected behavior?

No response

What do you see instead?

No response

Operating environment

- Sealos version:4.3.7
- Docker version:
- Kubernetes version:v1.27.7
- Operating system: centos7.9
- Runtime environment: 8c16g 200G disk
- Cluster size:3 master, 3 node
- Additional information:

Additional information

No response

Michaelxu2022 commented 7 months ago

没人处理吗?

sealos-ci-robot commented 7 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


No one handles it?

bxy4543 commented 7 months ago

你使用的云服务器吗? 参考这个问题帮助

Michaelxu2022 commented 7 months ago

[EXTERNAL EMAIL] 请看我截图,这个值1048576是saelos设置的。并非我改的。


From: Jiahui @.> Sent: Wednesday, April 10, 2024 2:56:46 PM To: labring/sealos @.> Cc: 许亿_Michael @.>; Author @.> Subject: Re: [labring/sealos] BUG: ssh cannot connect to sealos after running in centos7.9 environment. The saelos parameter nofile is configured too large. (Issue #4641)

Enflame Security NOTICE: This email is an email from an enflame partner, please screen it carefully before opening attachments or external links. 此邮件为公司合作伙伴的邮件,请谨慎甄别后再打开附件或外部链接。

你使用的云服务器吗? 参考这个问题帮助https://www.alibabacloud.com/help/en/ecs/could-not-set-limit-for-nofile-operation-not-permitted-is-displayed-when-you-log-on-to-an-ecs-instance-through-ssh

― Reply to this email directly, view it on GitHubhttps://github.com/labring/sealos/issues/4641#issuecomment-2046660541, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4GGHPPYRS337Y4A2XRD6KLY4TPC5AVCNFSM6AAAAABFM3Z6L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGY3DANJUGE. You are receiving this because you authored the thread.Message ID: @.***>

Michaelxu2022 commented 6 months ago

请问下saelos 在代码里面哪定义的1048476呢?我临时改成fs.nr_open = 1048576解决了

sealos-ci-robot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


May I ask where saelos defines 1048476 in the code?

stale[bot] commented 4 months ago

This issue has been automatically closed because we haven't heard back for more than 60 days, please reopen this issue if necessary.