Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: After the sign server is up and running, proceed with registering the instance and support automatic registration #2309

Closed
wants to merge 4 commits into from

Conversation

KomeiDiSanXian
Copy link
Contributor

@KomeiDiSanXian KomeiDiSanXian commented Jul 20, 2023

#2303
The previous versions didn't wait for the sign server to start before performing instance registration. This issue has been fixed now.

It also supports the automatic registration feature of the current version of the sign server, thereby avoiding the situation where the program has to be restarted to re-register instances after the sign server crashes.

add functions in cmd/gocq/login.go:
The functions listenPort, dailPort, and waitForConnection use net.Dial to check if the sign server is running every five seconds. They will remain blocked until the sign server is started.

@mmmjie
Copy link

mmmjie commented Jul 20, 2023

试了露珠pr来源仓库dev版编译至arm64 ubuntu,结果不行,
以下是测试pr后的gocq,情况

原qsign断开后,等待10多秒出现风控提示后再启动qsign,后续都风控了,不会重连
[2023-07-20 20:48:52] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/
[2023-07-20 20:48:57] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/
[2023-07-20 20:48:57] [WARNING]: 群消息发送失败: 账号可能被风控.
[2023-07-20 20:49:40] [WARNING]: 群消息发送失败: 账号可能被风控.
[2023-07-20 20:50:02] [WARNING]: 群消息发送失败: 账号可能被风控.
[2023-07-20 20:50:38] [WARNING]: 群消息发送失败: 账号可能被风控.

以下是qsign重启后日志

ubuntu@mjie:~/qsign/1.1.6$ bash bin/unidbg-fetch-qsign --basePath=txlib/8.9.70
20:49:17.880 [main] INFO ktor.application - Autoreload is disabled because the development mode is off.
20:49:18.324 [main] INFO ktor.application - Application started in 0.48 seconds.
20:49:18.329 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 19
20:49:18.349 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
20:49:18.352 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @228575c0
20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): unavailable
20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 6291456000 bytes (maybe)
20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
20:49:18.371 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
20:49:18.372 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
20:49:18.374 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
20:49:18.374 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
20:49:18.401 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
20:49:18.407 [main] DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
20:49:18.420 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
20:49:18.450 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 2181379 (auto-detected)
20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
20:49:18.455 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
20:49:18.455 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096
20:49:18.456 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:00:17:ff:fe:03:a9:0a (auto-detected)
20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
20:49:18.509 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:26005
20:49:35.244 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@47a84475
20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096
20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32
20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: false
20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true

@KomeiDiSanXian
Copy link
Contributor Author

试了露珠pr来源仓库dev版编译至arm64 ubuntu,结果不行, 以下是测试pr后的gocq,情况

原qsign断开后,等待10多秒出现风控提示后再启动qsign,后续都风控了,不会重连 [2023-07-20 20:48:52] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:49:40] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:02] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:38] [WARNING]: 群消息发送失败: 账号可能被风控.

以下是qsign重启后日志

ubuntu@mjie:~/qsign/1.1.6$ bash bin/unidbg-fetch-qsign --basePath=txlib/8.9.70 20:49:17.880 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. 20:49:18.324 [main] INFO ktor.application - Application started in 0.48 seconds. 20:49:18.329 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 19 20:49:18.349 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 20:49:18.352 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @228575c0 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): unavailable 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 6291456000 bytes (maybe) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 20:49:18.371 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes 20:49:18.372 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 20:49:18.374 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available 20:49:18.374 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir) 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true 20:49:18.401 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8 20:49:18.407 [main] DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 20:49:18.420 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available 20:49:18.450 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 2181379 (auto-detected) 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 20:49:18.455 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo) 20:49:18.455 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096 20:49:18.456 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:00:17:ff:fe:03:a9:0a (auto-detected) 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 20:49:18.509 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:26005 20:49:35.244 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@47a84475 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: false 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true

qsign那边有配置自动注册吗?没开启的话,qsign崩了就只能重新注册。
现在这个是借助qsign那边的自动注册。在qsign崩了重启之后通过energy和sign再注册,就不用重启gocq来执行注册了

@Erstwhile-Liu
Copy link

试了露珠pr来源仓库dev版编译至arm64 ubuntu,结果不行, 以下是测试pr后的gocq,情况
原qsign断开后,等待10多秒出现风控提示后再启动qsign,后续都风控了,不会重连 [2023-07-20 20:48:52] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:49:40] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:02] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:38] [WARNING]: 群消息发送失败: 账号可能被风控.
以下是qsign重启后日志
ubuntu@mjie:~/qsign/1.1.6$ bash bin/unidbg-fetch-qsign --basePath=txlib/8.9.70 20:49:17.880 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. 20:49:18.324 [main] INFO ktor.application - Application started in 0.48 seconds. 20:49:18.329 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 19 20:49:18.349 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 20:49:18.352 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @228575c0 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): unavailable 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 6291456000 bytes (maybe) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 20:49:18.371 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes 20:49:18.372 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 20:49:18.374 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available 20:49:18.374 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir) 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true 20:49:18.401 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8 20:49:18.407 [main] DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 20:49:18.420 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available 20:49:18.450 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 2181379 (auto-detected) 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 20:49:18.455 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo) 20:49:18.455 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096 20:49:18.456 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:00:17:ff:fe:03:a9:0a (auto-detected) 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 20:49:18.509 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:26005 20:49:35.244 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@47a84475 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: false 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true

qsign那边有配置自动注册吗?没开启的话,qsign崩了就只能重新注册。 现在这个是借助qsign那边的自动注册。在qsign崩了重启之后通过energy和sign再注册,就不用重启gocq来执行注册了

我也试了一下,一样的报错,自动注册确定是开着的

@KomeiDiSanXian
Copy link
Contributor Author

试了露珠pr来源仓库dev版编译至arm64 ubuntu,结果不行, 以下是测试pr后的gocq,情况
原qsign断开后,等待10多秒出现风控提示后再启动qsign,后续都风控了,不会重连 [2023-07-20 20:48:52] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 获取sso sign时出现错误: Post "http://127.0.0.1:26005/sign?android_id=61636562353566363037383136346263&guid=95e072cc2e7e8f406a90de90acd4e062": dial tcp 127.0.0.1:26005: connect: connection refused server: http://127.0.0.1:26005/ [2023-07-20 20:48:57] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:49:40] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:02] [WARNING]: 群消息发送失败: 账号可能被风控. [2023-07-20 20:50:38] [WARNING]: 群消息发送失败: 账号可能被风控.
以下是qsign重启后日志
ubuntu@mjie:~/qsign/1.1.6$ bash bin/unidbg-fetch-qsign --basePath=txlib/8.9.70 20:49:17.880 [main] INFO ktor.application - Autoreload is disabled because the development mode is off. 20:49:18.324 [main] INFO ktor.application - Application started in 0.48 seconds. 20:49:18.329 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false 20:49:18.348 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 19 20:49:18.349 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available 20:49:18.350 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled 20:49:18.351 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true 20:49:18.352 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @228575c0 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, int): unavailable 20:49:18.353 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 6291456000 bytes (maybe) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir) 20:49:18.370 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model) 20:49:18.371 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes 20:49:18.372 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1 20:49:18.374 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available 20:49:18.374 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir) 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true 20:49:18.384 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true 20:49:18.401 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8 20:49:18.407 [main] DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024 20:49:18.410 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false 20:49:18.415 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512 20:49:18.420 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available 20:49:18.450 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 2181379 (auto-detected) 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false 20:49:18.453 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false 20:49:18.455 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo) 20:49:18.455 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096 20:49:18.456 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 02:00:17:ff:fe:03:a9:0a (auto-detected) 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple 20:49:18.464 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false 20:49:18.481 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0 20:49:18.491 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384 20:49:18.509 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:26005 20:49:35.244 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true 20:49:35.245 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@47a84475 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: false 20:49:35.281 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true

qsign那边有配置自动注册吗?没开启的话,qsign崩了就只能重新注册。 现在这个是借助qsign那边的自动注册。在qsign崩了重启之后通过energy和sign再注册,就不用重启gocq来执行注册了

我也试了一下,一样的报错,自动注册确定是开着的

啊啊啊抱歉,我理解错了qsign那边的文档里的参数的意思了,我理解成url参数了所以会导致sign函数报错

@KomeiDiSanXian
Copy link
Contributor Author

#2311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants