1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
Seafile Server Professional Edition is not working
**Disclaimer: I'm completely new to box64**
OS: Ubuntu 22.04.2 LTS
Box: (installed from repo) Box64 with Dynarec v0.2.3 900f3877 built on Mar 22 2023 07:33:12
Platform: Ampere A1 (Neoverse-N1) (Oracle Cloud)
Background: Seafile Server is a self-hosted file cloud. **It has the free & open-source Community Edition (with ARM builds) and the Professional Edition (closed-source, free up to 3 users (paid for more users), only x86_64 builds)**. Installation guide: https://manual.seafile.com/deploy_pro/download_and_setup_seafile_professional_server/
Architecture: As far as I know, the file server is written in C, and Seahub, which provides an interface (website + API) to the file server, is written in Python (using the Django framework). The file server is the problematic part.
When I try to start the file server, it fails in the following way:
```
ubuntu@test:/opt/seafile/seafile-server-latest$ ./seafile.sh start
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:4096 Running on Neoverse-N1 with 1 Cores
Params database has 22 entries
Box64 with Dynarec v0.2.3 900f3877 built on Mar 22 2023 07:33:12
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 31 Env var
Looking for /opt/seafile/seafile-pro-server-10.0.3/seafile/bin/seafile-controller
argv[1]="-t"
argv[2]="-c"
argv[3]="/opt/seafile/ccnet"
argv[4]="-d"
argv[5]="/opt/seafile/seafile-data"
argv[6]="-F"
argv[7]="/opt/seafile/conf"
Rename process to "seafile-controller"
Using native(wrapped) libpthread.so.0
Using emulated /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libcrypto.so.1.1
Using native(wrapped) libuuid.so.1
Using emulated /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libevent-2.1.so.6
Using native(wrapped) libglib-2.0.so.0
Using emulated /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libjansson.so.4
Using native(wrapped) libz.so.1
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libutil.so.1
Using native(wrapped) librt.so.1
Using native(wrapped) libdl.so.2
Look for sysctl in loaded elfs
Found symbol with version GLIBC_2.17, value = 0xffff8b900900
Error: Symbol g_list_insert_sorted_with_data not found, cannot apply R_X86_64_JUMP_SLOT @0xffff8b65ded0 (0x3cc6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/bin/seafile-controller
** Message: 00:24:14.911: seafile-controller.c(1023): loading seafdav config from /opt/seafile/conf/seafdav.conf
Error: Symbol xmlTextWriterStartElement not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e788 (0x10006) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlFreeTextWriter not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e880 (0x101f6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderConstLocalName not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e890 (0x10216) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlReaderForIO not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e898 (0x10226) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterSetIndent not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e8b0 (0x10256) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol lzma_stream_encoder_mt not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e908 (0x10306) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterWriteBase64 not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e918 (0x10326) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterEndElement not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e9b0 (0x10456) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterWriteAttribute not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5e9c8 (0x10486) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterWriteFormatAttribute not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ea18 (0x10526) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderRead not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ea40 (0x10576) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterWriteString not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ea58 (0x105a6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderIsEmptyElement not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5eb30 (0x10756) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderSetErrorHandler not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5eb60 (0x107b6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol lzma_cputhreads not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5eb80 (0x107f6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol lzma_crc32 not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5eb90 (0x10816) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterEndDocument not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ec08 (0x10906) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderNodeType not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ec20 (0x10936) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderConstValue not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ec30 (0x10956) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextWriterStartDocument not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ec58 (0x109a6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlNewTextWriterMemory not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ed28 (0x10b46) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderMoveToNextAttribute not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5edf0 (0x10cd6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlFreeTextReader not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ee78 (0x10de6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol xmlTextReaderMoveToFirstAttribute not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5eec0 (0x10e76) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: Symbol lzma_memusage not found, cannot apply R_X86_64_JUMP_SLOT @0xffffbcf5ef78 (0x10fe6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/libarchive.so.13
Error: relocating Plt symbols in elf libarchive.so.13
Error: Symbol tfind not found, cannot apply R_X86_64_JUMP_SLOT @0xffffadcd8d18 (0x29a6) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/librdmacm.so.1
Error: Symbol tdelete not found, cannot apply R_X86_64_JUMP_SLOT @0xffffadcd8de8 (0x2b46) in /opt/seafile/seafile-pro-server-10.0.3/seafile/lib/librdmacm.so.1
Error: relocating Plt symbols in elf librdmacm.so.1
Error: loading needed libs in elf /opt/seafile/seafile-pro-server-10.0.3/seafile/bin/seaf-server
failed to run "seaf-server -t" [65280]
```
Seahub (the second component) seems to work. It seems to work even with box64 uninstalled (well, it's written in Python). **Note that I had to remove the check whether the file server is running from the startup script:**
```
ubuntu@test:/opt/seafile/seafile-server-latest$ ./seahub.sh start 1000
LC_ALL is not set in ENV, set to en_US.UTF-8
Warning: seafile-controller not running. Have you run "./seafile.sh start" ?
Starting seahub at port 1000 ...
Error happened during creating seafile admin.
Seahub is started
Done.
ubuntu@test:/opt/seafile/seafile-server-latest$ ss -tunap | grep 1000
tcp LISTEN 0 2048 0.0.0.0:1000 0.0.0.0:* users:(("python3",pid=7379,fd=8),("python3",pid=7378,fd=8),("python3",pid=7377,fd=8),("python3",pid=7376,fd=8),("python3",pid=7375,fd=8),("python3",pid=7374,fd=8))
```
This is probably not helpful for you at all, but... it works perfectly under a similar emulator, [FEX-Emu](https://github.com/FEX-Emu/FEX).
|