Error on Debian 10: Cannot get the proper memory information to size server.
saschaszott opened this issue · 0 comments
saschaszott commented
Description
Running fn start
(as root
) on Debian 10 Buster is failing with error message
time="2021-02-20T11:17:49Z" level=fatal msg="Cannot get the proper memory information to size server." error="open /proc/meminfo: permission denied"
Steps to reproduce the issue:
- run
fn start
(asroot
)
Describe the results you received:
# fn start
2021/02/20 12:16:54 ¡¡¡ 'fn start' should NOT be used for PRODUCTION !!! see https://github.com/fnproject/fn-helm/
time="2021-02-20T11:17:49Z" level=info msg="Setting log level to" fields.level=info
time="2021-02-20T11:17:49Z" level=info msg="Registering data store provider 'sql'"
time="2021-02-20T11:17:49Z" level=info msg="Connecting to DB" url="sqlite3:///app/data/fn.db"
time="2021-02-20T11:17:49Z" level=info msg="datastore dialed" datastore=sqlite3 max_idle_connections=256 url="sqlite3:///app/data/fn.db"
time="2021-02-20T11:17:49Z" level=info msg="agent starting cfg={MinDockerVersion:17.10.0-ce ContainerLabelTag: DockerNetworks: DockerLoadFile: DisableUnprivilegedContainers:false FreezeIdle:50ms HotPoll:200ms HotLauncherTimeout:1h0m0s HotPullTimeout:10m0s HotStartTimeout:5s DetachedHeadRoom:6m0s MaxResponseSize:0 MaxHdrResponseSize:0 MaxLogSize:1048576 MaxTotalCPU:0 MaxTotalMemory:0 MaxFsSize:0 MaxPIDs:50 MaxOpenFiles:0xc420331a78 MaxLockedMemory:0xc420331a90 MaxPendingSignals:0xc420331a98 MaxMessageQueue:0xc420331aa0 PreForkPoolSize:0 PreForkImage:busybox PreForkCmd:tail -f /dev/null PreForkUseOnce:0 PreForkNetworks: EnableNBResourceTracker:false MaxTmpFsInodes:0 DisableReadOnlyRootFs:false DisableDebugUserLogs:false IOFSEnableTmpfs:false EnableFDKDebugInfo:false IOFSAgentPath:/iofs IOFSMountRoot:/root/.fn/iofs IOFSOpts: ImageCleanMaxSize:0 ImageCleanExemptTags: ImageEnableVolume:false}"
time="2021-02-20T11:17:49Z" level=info msg="no docker auths from config files found (this is fine)" error="open /root/.dockercfg: no such file or directory"
time="2021-02-20T11:17:49Z" level=fatal msg="Cannot get the proper memory information to size server." error="open /proc/meminfo: permission denied"
2021/02/20 12:17:59 Error: processed finished with error exit status 1
Describe the results you expected:
The error should not occur.
Additional information you deem important (e.g. issue happens only occasionally):
Output of fn version
(CLI command):
# fn version
Client version is latest version: 0.6.1
Server version: ?
Additional environment details (OSX, Linux, flags, etc.):
Output of lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
Output of docker -v
Docker version 20.10.3, build 48d30b5
Output of cat /proc/meminfo
MemTotal: 1000000 kB
MemFree: 438824 kB
MemAvailable: 868780 kB
Buffers: 0 kB
Cached: 429956 kB
SwapCached: 0 kB
Active: 303196 kB
Inactive: 212032 kB
Active(anon): 10888 kB
Inactive(anon): 83204 kB
Active(file): 292308 kB
Inactive(file): 128828 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 1000000 kB
SwapFree: 1000000 kB
Dirty: 1836 kB
Writeback: 0 kB
AnonPages: 10993300 kB
Mapped: 3765632 kB
Shmem: 8184 kB
KReclaimable: 1267632 kB
Slab: 0 kB
SReclaimable: 0 kB
SUnreclaim: 0 kB
KernelStack: 58236 kB
PageTables: 256640 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 25709016 kB
Committed_AS: 52006552 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
Percpu: 60544 kB
HardwareCorrupted: 0 kB
AnonHugePages: 4589568 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 6487356 kB
DirectMap2M: 27039744 kB