以前の投稿も確認しましたが、解決策が記載されていませんでした。そのため、新しいスレッドを立てます。
これは、AWS上のLinux Ubuntuのarm64アーキテクチャに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コア数を計算しようとしている行です
「いいね!」 1
ご返信ありがとうございます。ご要望のデータは以下の通りです。
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
「いいね!」 1
その修正を試してみます。しかし、正式な修正を待つこともできます。
以下は 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を提出し、(最終的には)マージされましたが、現在のバージョンでは修正が見られません。
ああ、'main’ではなく’master’にマージされたようです。それは問題のようですね!
これが修正された行です
avail_cores=`lscpu --parse=core | egrep -v ^# | sort -u | wc -l`
「いいね!」 2
system
(system)
クローズされました:
10
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.