이전에 비슷한 스레드를 본 적도 있지만, 해결책이 제공되지 않았습니다. 그래서 새로운 스레드를 생성합니다.
AWS에서 arm64 아키텍처의 Linux Ubuntu에 Discourse를 설치하는 중 아래 오류가 발생했습니다.
./discourse-setup: line 260: *0: syntax error: operand expected (error token is “*0”)
Hostname for your Discourse? [discourse.example.com]:
Ed_S
(Ed S)
2
cat /proc/cpuinfo
의 출력을 붙여넣어 주시겠어요?
실패하는 줄은 물리적 CPU 코어 수를 계산하려는 부분입니다.
답변해 주셔서 감사합니다. 요청하신 데이터는 다음과 같습니다.
processor : 0
BogoMIPS : 243.75
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
processor : 1
BogoMIPS : 243.75
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x3
CPU part : 0xd0c
CPU revision : 1
vCPU가 2개 있습니다(이 정보가 관련이 있다면요).
Ed_S
(Ed S)
4
감사합니다. 당장의 목적을 위해 260번째 줄을 수정한 후 다시 실행해 보시는 것을 권장합니다. 아마도 다음과 같이 수정할 것입니다.
avail_cores=2 # $((`awk '/cpu cores/ {print $4;exit}' /proc/cpuinfo`*`sort /proc/cpuinfo | uniq | grep -c "physical id"`))
하지만 이 스크립트는 AArch64 클라우드 환경에 대응하도록 수정이 필요한 것으로 보입니다.
아래 명령어의 출력을 붙여넣어 주실 수 있을까요?
lscpu
또는
lscpu -p
해당 수정 사항을 시도해 보겠습니다. 하지만 여전히 적절한 수정 사항도 기다릴 수 있습니다.
아래는 lscpu 출력 결과입니다.
Architecture: aarch64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Vendor ID: ARM
Model name: Neoverse-N1
Model: 1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Stepping: r3p1
BogoMIPS: 243.75
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp
asimdhp cpuid asimdrdm lrcpc dcpop asimddp ssbs
Caches (sum of all):
L1d: 128 KiB (2 instances)
L1i: 128 KiB (2 instances)
L2: 2 MiB (2 instances)
L3: 32 MiB (1 instance)
NUMA:
NUMA node(s): 1
NUMA node0 CPU(s): 0,1
Vulnerabilities:
Gather data sampling: Not affected
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Mmio stale data: Not affected
Retbleed: Not affected
Spec rstack overflow: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Mitigation; CSV2, BHB
Srbds: Not affected
Tsx async abort: Not affected
Ed_S
(Ed S)
6
이상하게도, 이전에 이 문제를 수정하기 위해 PR을 제출한 적이 있었는데, (결국) 병합되었음에도 불구하고 현재 버전에서 해당 수정 사항을 찾지 못하겠습니다.
아, 'master’에 병합되었고 'main’에는 병합되지 않았던 것이네요. 이건 문제가 있어 보입니다!
수정된 줄은 다음과 같습니다.
avail_cores=`lscpu --parse=core | egrep -v ^# | sort -u | wc -l`