fazalfarhan01 / EarnApp-Docker

Containerized version of BrightData's EarnApp
https://hub.docker.com/r/fazalfarhan01/earnapp
42 stars 24 forks source link

doesn't work #2

Closed JamesDAdams closed 2 years ago

JamesDAdams commented 2 years ago

Hi, this image doesn't work

i have this error :

Failed to look up module alias 'autofs4': Function not implemented
Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or directory
[!!!!!!] Failed to mount API filesystems.
Exiting PID 1...
fazalfarhan01 commented 2 years ago

Hello @JamesDAdams How are you running the container? The single command or using the compose file? And what OS are you on?

JamesDAdams commented 2 years ago

Hello @JamesDAdams How are you running the container? The single command or using the compose file? And what OS are you on?

The problem comme from my os Unraid, i don't have systemd in cgroup (and i can't add it)

fazalfarhan01 commented 2 years ago

The problem is earnapp uses systemd to install and keep the processes running the background. And the container must have access to the cgroup to be able to run the systemd (still isolated).

JamesDAdams commented 2 years ago

To bad for me :(

Thanks for the help

fazalfarhan01 commented 2 years ago

I have a workaround which is close sourced, and I am not willing to make it open source due to it's complications. I could help if you mail me or get in touch on discord (toothyraider201#4454).

lunarok commented 2 years ago

I have issue to make it starts also, but I'm on a pure Linux box (Debian) Whatever if I use the commande docker run -d, after the container is visible but as exited. I try without -d to be interactive, but it just give me back control and same containers appears as exited. I try also compose (start hee first) but same, container just appears exited, no logs visible in portainer, nothing ...

any idea ?

fazalfarhan01 commented 2 years ago

@lunarok what version of debian are you on? Can you please confirm that you are on version 2 of cgroup?

And as the base image of the container is ubuntu and not plain debian, that might have been causing the issues. But I had tested the image on a RPI with the default os which is also debian. That seemed to work.

lunarok commented 2 years ago

ok, so not matching debian. cgroup 2 look avalaible only in testing and unstable

fazalfarhan01 commented 2 years ago

ok, so not matching debian. cgroup 2 look avalaible only in testing and unstable

Well, You have the reason. However I'll have it in my todo list to add debian compatibility. I'll see what I can do.

lolvince commented 2 years ago

Hello, first of all, thank you for your work. it looks like the problem is the same on synology. Running the container in elevated privileges will override the errors mentioned above. however another error occurs:

Failed to look up module alias 'autofs4': Function not implemented systemd 245.4-4ubuntu3.13 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid) Detected virtualization docker. Detected architecture x86-64. Welcome to Ubuntu 20.04.3 LTS! Set hostname to . Cannot determine cgroup we are running in: No medium found Failed to allocate manager object: No medium found [!!!!!!] Failed to allocate manager object. Exiting PID 1...

fazalfarhan01 commented 2 years ago

Hello, first of all, thank you for your work. it looks like the problem is the same on synology. Running the container in elevated privileges will override the errors mentioned above. however another error occurs:

Failed to look up module alias 'autofs4': Function not implemented systemd 245.4-4ubuntu3.13 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid) Detected virtualization docker. Detected architecture x86-64. Welcome to Ubuntu 20.04.3 LTS! Set hostname to . Cannot determine cgroup we are running in: No medium found Failed to allocate manager object: No medium found [!!!!!!] Failed to allocate manager object. Exiting PID 1...

@lolvince It's the same thing.. The cgroup issue, coz earnapp needs systemd to work. Ill workout a fix soon.

pbertra commented 2 years ago

Will your fix make it unnecessary to run privileged? Would be really interesting because I don't want to run it privileged...

fazalfarhan01 commented 2 years ago

Will your fix make it unnecessary to run privileged? Would be really interesting because I don't want to run it privileged...

@pbertra Yep. The container doesn't need to run privileged as systemd isn't used.

fazalfarhan01 commented 2 years ago

@lunarok @pbertra @JamesDAdams @lolvince You would be happy with this. Just so you know, it needs an existing UUID. Make sure you use the tag lite in the compose or the docker run command

version: "3.3"
services:
    app:
        image: fazalfarhan01/earnapp:lite
        volumes:
            - ./etc:/etc/earnapp
        environment:
            EARNAPP_UUID: YOUR_NODE_ID_HERE
lunarok commented 2 years ago

I just configured it, the docker is running fine for few minutes, not restarting. Logs look ok he has connect with success, will take a look later to confirm earnapp dashboard is showing money still coming :)

fazalfarhan01 commented 2 years ago

I just configured it, the docker is running fine for few minutes, not restarting. Logs look ok he has connect with success, will take a look later to confirm earnapp dashboard is showing money still coming :)

Cool. Let me know how it goes.

lolvince commented 2 years ago

the lite version starts without crashing, on the other hand, it is indeed Earnapp which does not work correctly :( he cannot launch:

`Installing [?25l⠋ Checking IP...⠙ Checking IP...⠹ Checking IP...⠸ Checking IP...⠼ Checking IP...earnapp start

Start making money in the background process

Options: --verbose Run with extra logs [boolean] --help Show help [boolean] --version Show version number [boolean]

Error: Request failed with status code 400 at createError (/usr/bin/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/bin/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/bin/node_modules/axios/lib/adapters/http.js:293:11)  at IncomingMessage.emit (events.js:327:22)  at endReadableNT (internal/streams/readable.js:1327:12)  at processTicksAndRejections (internal/process/task_queues.js:80:21) { config: { transitional: { " silentJSONParsing: true," " forcedJSONParsing: true," clarifyTimeoutError: false " }," " adapter: [Function: httpAdapter]," " transformRequest: [ [Function: transformRequest] ]," " transformResponse: [ [Function: transformResponse] ]," " timeout: 0," " xsrfCookieName: 'XSRF-TOKEN'," " xsrfHeaderName: 'X-XSRF-TOKEN'," " maxContentLength: -1," " maxBodyLength: -1," " validateStatus: [Function: validateStatus]," headers: { " Accept: 'application/json, text/plain, /'," 'User-Agent': 'axios/0.22.0' " }," " method: 'get'," " url: 'https://client.earnapp.com/is_ip_blocked'," params: { " uuid: ''," " version: '1.269.378'," " arch: 'x64'," appid: 'node_earnapp.com' " }," data: undefined " }," request: <ref 1> ClientRequest { _events: [Object: null prototype] { " socket: [Function (anonymous)]," " abort: [Function (anonymous)]," " aborted: [Function (anonymous)]," " connect: [Function (anonymous)]," " error: [Function (anonymous)]," " timeout: [Function (anonymous)]," prefinish: [Function: requestOnPrefinish] " }," " _eventsCount: 7," " _maxListeners: undefined," " outputData: []," " outputSize: 0," " writable: true," " destroyed: false," " _last: true," " chunkedEncoding: false," " shouldKeepAlive: false," " _defaultKeepAlive: true," " useChunkedEncodingByDefault: false," " sendDate: false," " _removedConnection: false," " _removedContLen: false," " _removedTE: false," " _contentLength: 0," " _hasBody: true," " _trailer: ''," " finished: true," " _headerSent: true," socket: TLSSocket { " _tlsOptions: [Object]," " _secureEstablished: true," " _securePending: false," " _newSessionPending: false," " _controlReleased: true," " secureConnecting: false," " _SNICallback: null," " servername: 'client.earnapp.com'," " alpnProtocol: false," " authorized: true," " authorizationError: null," " encrypted: true," " _events: [Object: null prototype]," " _eventsCount: 10," " connecting: false," " _hadError: false," " _parent: null," " _host: 'client.earnapp.com'," " _readableState: [ReadableState]," " _maxListeners: undefined," " _writableState: [WritableState]," " allowHalfOpen: false," " _sockname: null," " _pendingData: null," " _pendingEncoding: ''," " server: undefined," " _server: null," " ssl: [TLSWrap]," " _requestCert: true," " _rejectUnauthorized: true," " parser: null," " _httpMessage: [Circular 1]," " [Symbol(res)]: [TLSWrap]," " [Symbol(verified)]: true," " [Symbol(pendingSession)]: null," " [Symbol(async_id_symbol)]: 30," " [Symbol(kHandle)]: [TLSWrap]," " [Symbol(kSetNoDelay)]: false," " [Symbol(lastWriteQueueSize)]: 0," " [Symbol(timeout)]: null," " [Symbol(kBuffer)]: null," " [Symbol(kBufferCb)]: null," " [Symbol(kBufferGen)]: null," " [Symbol(kCapture)]: false," " [Symbol(kBytesRead)]: 0," " [Symbol(kBytesWritten)]: 0," " [Symbol(connect-options)]: [Object],"

" }," _header: 'GET /is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com HTTP/1.1\r\n' + " 'Accept: application/json, text/plain, /\r\n' +" 'User-Agent: axios/0.22.0\r\n' + 'Host: client.earnapp.com\r\n' + 'Connection: close\r\n' + " '\r\n'," " _keepAliveTimeout: 0," " _onPendingData: [Function: noopPendingOutput]," agent: Agent { " _events: [Object: null prototype]," " _eventsCount: 2," " _maxListeners: undefined," " defaultPort: 443," " protocol: 'https:'," " options: [Object]," " requests: {}," " sockets: [Object]," " freeSockets: {}," " keepAliveMsecs: 1000," " keepAlive: false," " maxSockets: Infinity," " maxFreeSockets: 256," " scheduling: 'fifo'," " maxTotalSockets: Infinity," " totalSocketCount: 1," " maxCachedSessions: 100," " _sessionCache: [Object],"

" }," " socketPath: undefined," " method: 'GET'," " maxHeaderSize: undefined," " insecureHTTPParser: undefined," " path: '/is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com'," " _ended: true," res: IncomingMessage { " _readableState: [ReadableState]," " _events: [Object: null prototype]," " _eventsCount: 3," " _maxListeners: undefined," " socket: [TLSSocket]," " httpVersionMajor: 1," " httpVersionMinor: 1," " httpVersion: '1.1'," " complete: true," " headers: [Object]," " rawHeaders: [Array]," " trailers: {}," " rawTrailers: []," " aborted: false," " upgrade: false," " url: ''," " method: null," " statusCode: 400," " statusMessage: 'Bad Request'," " client: [TLSSocket]," " _consuming: false," " _dumped: false," " req: [Circular *1]," " responseUrl: 'https://client.earnapp.com/is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com'," " redirects: []," " [Symbol(kCapture)]: false,"

" }," " aborted: false," " timeoutCb: null," " upgradeOrConnect: false," " parser: null," " maxHeadersCount: null," " reusedSocket: false," " host: 'client.earnapp.com'," " protocol: 'https:'," _redirectable: Writable { " _writableState: [WritableState]," " _events: [Object: null prototype]," " _eventsCount: 2," " _maxListeners: undefined," " _options: [Object]," " _ended: true," " _ending: true," " _redirectCount: 0," " _redirects: []," " _requestBodyLength: 0," " _requestBodyBuffers: []," " _onNativeResponse: [Function (anonymous)]," " _currentRequest: [Circular *1]," " _currentUrl: 'https://client.earnapp.com/is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com',"

" }," " [Symbol(kCapture)]: false," " [Symbol(kNeedDrain)]: false," " [Symbol(corked)]: 0," [Symbol(kOutHeaders)]: [Object: null prototype] { " accept: [Array]," " 'user-agent': [Array]," host: [Array] } " }," response: { " status: 400," " statusText: 'Bad Request'," headers: { " server: 'nginx'," " date: 'Fri, 17 Dec 2021 08:59:06 GMT'," " 'content-type': 'text/html; charset=utf-8'," " 'content-length': '17'," " connection: 'close'," " 'cache-control': 'private,no-store'" " }," config: { " transitional: [Object]," " adapter: [Function: httpAdapter]," " transformRequest: [Array]," " transformResponse: [Array]," " timeout: 0," " xsrfCookieName: 'XSRF-TOKEN'," " xsrfHeaderName: 'X-XSRF-TOKEN'," " maxContentLength: -1," " maxBodyLength: -1," " validateStatus: [Function: validateStatus]," " headers: [Object]," " method: 'get'," " url: 'https://client.earnapp.com/is_ip_blocked'," " params: [Object]," data: undefined " }," request: <ref 1> ClientRequest { " _events: [Object: null prototype]," " _eventsCount: 7," " _maxListeners: undefined," " outputData: []," " outputSize: 0," " writable: true," " destroyed: false," " _last: true," " chunkedEncoding: false," " shouldKeepAlive: false," " _defaultKeepAlive: true," " useChunkedEncodingByDefault: false," " sendDate: false," " _removedConnection: false," " _removedContLen: false," " _removedTE: false," " _contentLength: 0," " _hasBody: true," " _trailer: ''," " finished: true," " _headerSent: true," " socket: [TLSSocket]," _header: 'GET /is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com HTTP/1.1\r\n' + " 'Accept: application/json, text/plain, /*\r\n' +" 'User-Agent: axios/0.22.0\r\n' + 'Host: client.earnapp.com\r\n' + 'Connection: close\r\n' + " '\r\n'," " _keepAliveTimeout: 0," " _onPendingData: [Function: noopPendingOutput]," " agent: [Agent]," " socketPath: undefined," " method: 'GET'," " maxHeaderSize: undefined," " insecureHTTPParser: undefined," " path: '/is_ip_blocked?uuid=&version=1.269.378&arch=x64&appid=node_earnapp.com'," " _ended: true," " res: [IncomingMessage]," " aborted: false," " timeoutCb: null," " upgradeOrConnect: false," " parser: null," " maxHeadersCount: null," " reusedSocket: false," " host: 'client.earnapp.com'," " protocol: 'https:'," " _redirectable: [Writable]," " [Symbol(kCapture)]: false," " [Symbol(kNeedDrain)]: false," " [Symbol(corked)]: 0," [Symbol(kOutHeaders)]: [Object: null prototype] " }," data: 'Invalid arguments' " }," " isAxiosError: true," toJSON: [Function: toJSON] } [?25h2021-12-17 08:59:08.447 NOTICE: running PID: 23 2021-12-17 08:59:08.467 ERR: perr 05_svc_init {} 2021-12-17 08:59:08.492 NOTICE: perr lum_sdk_node_05_svc_init proxy 2021-12-17 08:59:08.615 ERR: perr init {} 2021-12-17 08:59:08.620 NOTICE: perr lum_sdk_node_init proxy 2021-12-17 08:59:08.634 NOTICE: idle_state_monitor run 2021-12-17 08:59:08.669 ERR: perr 10_show_dialog {} 2021-12-17 08:59:08.674 NOTICE: perr lum_sdk_node_10_show_dialog proxy 2021-12-17 08:59:08.684 ERR: perr display {} 2021-12-17 08:59:08.688 NOTICE: perr lum_sdk_node_display proxy 2021-12-17 08:59:08.699 NOTICE: run: E.update_consent(true) 2021-12-17 08:59:08.700 ERR: perr 15_choose_peer {} 2021-12-17 08:59:08.706 NOTICE: perr lum_sdk_node_15_choose_peer proxy 2021-12-17 08:59:08.715 ERR: perr opt_in 2021-12-17 08:59:08.718 NOTICE: perr lum_sdk_node_opt_in proxy 2021-12-17 08:59:09.072 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_init&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.076 ERR: perr perr_direct_success {} 2021-12-17 08:59:09.081 NOTICE: perr lum_sdk_node_perr_direct_success proxy 2021-12-17 08:59:09.105 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_opt_in&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.111 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_10_show_dialog&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.119 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_05_svc_init&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.126 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_15_choose_peer&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.134 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_display&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 08:59:09.415 NOTICE: perr https://perr.l-err.biz/perr?id=lum_sdk_node_perr_direct_success&appid=node_earnapp.com&ver=1.269.378&ver_sdk=1.269.378 res 200 2021-12-17 09:00:09.653 NOTICE: idle_state_monitor run 2021-12-17 09:01:10.660 NOTICE: idle_state_monitor run 2021-12-17 09:02:11.666 NOTICE: idle_state_monitor run`

fazalfarhan01 commented 2 years ago

@lolvince I experienced similar issue last night which was fixed by today morning. You might want to try running it again.

lolvince commented 2 years ago

unfortunately the problem persists: /

kornflex commented 2 years ago

same error as lolvince :/

Working on synology

lolvince commented 2 years ago

no solution found for me: / can be a link with https certificate errors?

mce35 commented 2 years ago

Hi, same 400 bad request issue here, did you find a solution?

RaSamourai commented 2 years ago

Hi :) Thanks for the work dude :)

I'm looking at the docker-compose part and I don't know what I have to put in that line :

EARNAPP_UUID: YOUR_NODE_ID_HERE YOUR_NODE_ID_HERE : is it an existing node id like sdk-node-XXXXXX or the mail address of my earnapp account ?

My other quesion is : can I have several instance running at the same time ? If I can, can use the same ID in every container ?

Thank you for your answer.

Regards <3

fazalfarhan01 commented 2 years ago

Hi :) Thanks for the work dude :)

Your welcome 😄

I'm looking at the docker-compose part and I don't know what I have to put in that line :

EARNAPP_UUID: YOUR_NODE_ID_HERE YOUR_NODE_ID_HERE : is it an existing node id like sdk-node-XXXXXX or the mail address of my earnapp account ?

It's the existing UUID, the sdk-node-xxxx thing.

My other quesion is : can I have several instance running at the same time ? If I can, can use the same ID in every container ?

Same UUID? Nope. A unique one on every container.? Yep. But running it on the same public IP doesn't make any difference.

evil512-dom commented 2 years ago

Hi,

First good job with that work!

I try to add the docker with my portainer. First the original version to get the UUID then the lite.

But I can't get my UUID with the command, I got this error OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "showid": executable file not found in $PATH: unknown

And if I use the lite version, I don't kown which EARNAPP_UUID using.

fazalfarhan01 commented 2 years ago

OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "showid": executable file not found in $PATH: unknown

What was the command you run? If you are running in the non compose way docker container exec earnapp earnapp showid should do it.

evil512-dom commented 2 years ago

OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "showid": executable file not found in $PATH: unknown

What was the command you run? If you are running in the non compose way docker container exec earnapp earnapp showid should do it.

It's perfect The command was docker exec -it earnapp showid

fazalfarhan01 commented 2 years ago

It's perfect The command was docker exec -it earnapp showid

Cool.. glad it helped.. 😄

Midsnipee commented 2 years ago

Hi! I was going to make a picture and I came across yours, perfect :) However I can't make the connection with my dashbord. I have the UUID. would you have an idea?

fazalfarhan01 commented 2 years ago

@Midsnipee Hey, do you have any specific error when linking the UUID to the dashboard?

Midsnipee commented 2 years ago

@Midsnipee Hey, do you have any specific error when linking the UUID to the dashboard?

nop ! just Error while linking device The device is not found in earnapp dashbord

Midsnipee commented 2 years ago

no error in container log ! i have traffic like 2022-01-27 14:25:32.579 NOTICE: cmd_tun 54.192.87.174:443 so everything work

fazalfarhan01 commented 2 years ago

@Midsnipee Hey, do you have any specific error when linking the UUID to the dashboard?

nop ! just Error while linking device The device is not found in earnapp dashbord

@Midsnipee you might want to try deleting the existing UUID and create a new one and link it. (If it's not done already)

Midsnipee commented 2 years ago

@Midsnipee Hey, do you have any specific error when linking the UUID to the dashboard?

nop ! just Error while linking device The device is not found in earnapp dashbord

@Midsnipee you might want to try deleting the existing UUID and create a new one and link it. (If it's not done already)

Ok do you know the command for that ?

fazalfarhan01 commented 2 years ago

Ok do you know the command for that ?

You'll just have to recreate the container. If you are using the non compose method, just stop the container and detele the $HOME/earnapp-data directory.

If using the compose method. Stop the container, then delete the etc directory within the compose folder.

Midsnipee commented 2 years ago

i don't know how the container can link with earnapp when we give the uuid . i try an install on ubuntu and that the install wich generate an id like sdk-node-ce2e48cbxxxxxxxxxxxxxxxxxxxxxxxx

Midsnipee commented 2 years ago

sorry i have a bad english

Midsnipee commented 2 years ago

opk i find ma solution ty for your help

taskdevil23 commented 2 years ago

Hi, i get the SDK-Node name but when entering into the earnapp dashboard - brings up device not found :( I would very much appreciate your help. Cheers

fazalfarhan01 commented 2 years ago

Hi, i get the SDK-Node name but when entering into the earnapp dashboard - brings up device not found :( I would very much appreciate your help. Cheers

Happens sometimes.. Get a new UUID and try linking that..

roland681 commented 2 years ago

Hello @fazalfarhan01 , I have an issue with the earnapp container. Everytime I restart the container, it generates another UUID. Do you have any idea how to fix this?

fazalfarhan01 commented 2 years ago

Hello @fazalfarhan01 , I have an issue with the earnapp container. Everytime I restart the container, it generates another UUID. Do you have any idea how to fix this?

Hi @roland681, a simple fix to that is mounting a volume to /etc/earnapp directory. Details for the same are in the repo Readme.

roland681 commented 2 years ago

I followed this: image And now i have these 2: image That means i just have to simply run the last one first and after that the one from the top?

roland681 commented 2 years ago

Found out that you have to run the second container highlighted (with arrows) in the image above, after that you can run the first one. In this case, your node will be recognized and it works as expected.

panayotovip commented 2 years ago

i deploy a container as written in https://github.com/fazalfarhan01/EarnApp-Docker but 4 hours after i run the container i can not add it to main dashboard on trying to add a node to account i receive : Error while linking device, The device is no found. i try to redeploy and recreate it, but no success. same result. i run first latest image, in log of the container appear only

No log line matching the '' filter

from container shell i obtained the UUID. then delete first container and redeploy it with lite image. then i get this in log of the container

2022-10-20 19:58:54.299 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.299 ERR: perr tun_ready {}
2022-10-20 19:58:54.300 NOTICE: client_connect start [192.168.3.16]->192.248.190.187:443  192-248-190-187.luminatinet.com)
2022-10-20 19:58:54.300 NOTICE: agent WS: connecting to wss://192.248.190.187:443
2022-10-20 19:58:54.302 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.302 ERR: perr tun_ready {}
2022-10-20 19:58:54.302 NOTICE: client_connect start [192.168.3.16]->45.76.11.99:443 (45-76-11-99.luminatinet.com)
2022-10-20 19:58:54.302 NOTICE: agent WS: connecting to wss://45.76.11.99:443
2022-10-20 19:58:54.303 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.303 ERR: perr tun_ready {}
2022-10-20 19:58:54.304 NOTICE: client_connect start [192.168.3.16]->78.141.214.235:443 (78-141-214-235.luminatinet.com)
2022-10-20 19:58:54.304 NOTICE: agent WS: connecting to wss://78.141.214.235:443
2022-10-20 19:58:54.509 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.509 NOTICE: agent WS (192.248.190.187): connected
2022-10-20 19:58:54.510 NOTICE: client_connect established [192.168.3.16]->192.248.190.187:443 (192-248-190-187.luminatinet.com)
2022-10-20 19:58:54.510 ERR: perr tun_init_success {"servername":"192-248-190-187.luminatinet.com"}
2022-10-20 19:58:54.510 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.510 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.525 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.525 NOTICE: agent WS (78.141.214.235): connected
2022-10-20 19:58:54.526 NOTICE: client_connect established [192.168.3.16]->78.141.214.235:443 (78-141-214-235.luminatinet.com)
2022-10-20 19:58:54.526 ERR: perr tun_init_success {"servername":"78-141-214-235.luminatinet.com"}
2022-10-20 19:58:54.526 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.526 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.565 NOTICE: status_get: {"idle":true,"usage":{},"idle_state":{"mem_usage":89.85,"mem_usage_ts":1666295933226,"cpu_usage":8.49,"cpu_usage_ts":1666295934206},"bw":{}}
2022-10-20 19:58:54.784 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.785 NOTICE: agent WS (45.76.11.99): connected
2022-10-20 19:58:54.785 NOTICE: client_connect established [192.168.3.16]->45.76.11.99:443 (45-76-11-99.luminatinet.com)
2022-10-20 19:58:54.785 ERR: perr tun_init_success {"servername":"45-76-11-99.luminatinet.com"}
2022-10-20 19:58:54.787 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.787 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.906 NOTICE: status_get: {"idle":true,"usage":{},"idle_state":{"mem_usage":89.85,"mem_usage_ts":1666295933226,"cpu_usage":8.49,"cpu_usage_ts":1666295934206},"bw":{}}
2022-10-20 19:58:59.316 ERR: perr 21_svc_tun_start {}
2022-10-20 19:58:59.316 ERR: perr tun_start {}
2022-10-20 19:58:59.316 NOTICE: cmd_tun 192.248.190.187:443 
2022-10-20 19:58:59.362 ERR: perr 22_svc_tun_1b {}
2022-10-20 19:58:59.362 ERR: perr tun_1b {}
2022-10-20 19:59:02.008 NOTICE: cmd_tun_close 1 
2022-10-20 19:59:09.426 WARN: agent WS (192.248.190.187): zfin_pending: 1-timeout
2022-10-20 19:59:54.030 ERR: perr heartbeat_proxy_js_conn_00_1min {}
2022-10-20 19:59:54.031 NOTICE: perr lum_sdk_node_heartbeat_proxy_js_conn_00_1min proxy 
2022-10-20 19:59:54.206 NOTICE: idle_state_monitor run
2022-10-20 20:00:54.438 ERR: perr heartbeat_proxy_js_conn_01_2min {}
2022-10-20 20:00:54.438 NOTICE: perr lum_sdk_node_heartbeat_proxy_js_conn_01_2min proxy 
2022-10-20 20:00:55.250 NOTICE: idle_state_monitor run

and again i receive that message when try to add that node to my account : Error while linking device, The device is no found. any ideas ?

Sigmoidas commented 1 year ago

i deploy a container as written in https://github.com/fazalfarhan01/EarnApp-Docker but 4 hours after i run the container i can not add it to main dashboard on trying to add a node to account i receive : Error while linking device, The device is no found. i try to redeploy and recreate it, but no success. same result. i run first latest image, in log of the container appear only

No log line matching the '' filter

from container shell i obtained the UUID. then delete first container and redeploy it with lite image. then i get this in log of the container

2022-10-20 19:58:54.299 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.299 ERR: perr tun_ready {}
2022-10-20 19:58:54.300 NOTICE: client_connect start [192.168.3.16]->192.248.190.187:443  192-248-190-187.luminatinet.com)
2022-10-20 19:58:54.300 NOTICE: agent WS: connecting to wss://192.248.190.187:443
2022-10-20 19:58:54.302 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.302 ERR: perr tun_ready {}
2022-10-20 19:58:54.302 NOTICE: client_connect start [192.168.3.16]->45.76.11.99:443 (45-76-11-99.luminatinet.com)
2022-10-20 19:58:54.302 NOTICE: agent WS: connecting to wss://45.76.11.99:443
2022-10-20 19:58:54.303 ERR: perr 21_svc_tun_ready {}
2022-10-20 19:58:54.303 ERR: perr tun_ready {}
2022-10-20 19:58:54.304 NOTICE: client_connect start [192.168.3.16]->78.141.214.235:443 (78-141-214-235.luminatinet.com)
2022-10-20 19:58:54.304 NOTICE: agent WS: connecting to wss://78.141.214.235:443
2022-10-20 19:58:54.509 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.509 NOTICE: agent WS (192.248.190.187): connected
2022-10-20 19:58:54.510 NOTICE: client_connect established [192.168.3.16]->192.248.190.187:443 (192-248-190-187.luminatinet.com)
2022-10-20 19:58:54.510 ERR: perr tun_init_success {"servername":"192-248-190-187.luminatinet.com"}
2022-10-20 19:58:54.510 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.510 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.525 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.525 NOTICE: agent WS (78.141.214.235): connected
2022-10-20 19:58:54.526 NOTICE: client_connect established [192.168.3.16]->78.141.214.235:443 (78-141-214-235.luminatinet.com)
2022-10-20 19:58:54.526 ERR: perr tun_init_success {"servername":"78-141-214-235.luminatinet.com"}
2022-10-20 19:58:54.526 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.526 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.565 NOTICE: status_get: {"idle":true,"usage":{},"idle_state":{"mem_usage":89.85,"mem_usage_ts":1666295933226,"cpu_usage":8.49,"cpu_usage_ts":1666295934206},"bw":{}}
2022-10-20 19:58:54.784 NOTICE: agent WS: upgrade conn
2022-10-20 19:58:54.785 NOTICE: agent WS (45.76.11.99): connected
2022-10-20 19:58:54.785 NOTICE: client_connect established [192.168.3.16]->45.76.11.99:443 (45-76-11-99.luminatinet.com)
2022-10-20 19:58:54.785 ERR: perr tun_init_success {"servername":"45-76-11-99.luminatinet.com"}
2022-10-20 19:58:54.787 NOTICE: detected interface eth0 for 192.168.3.16
2022-10-20 19:58:54.787 NOTICE: js peer init from 192.168.3.16 eth0 unknown
2022-10-20 19:58:54.906 NOTICE: status_get: {"idle":true,"usage":{},"idle_state":{"mem_usage":89.85,"mem_usage_ts":1666295933226,"cpu_usage":8.49,"cpu_usage_ts":1666295934206},"bw":{}}
2022-10-20 19:58:59.316 ERR: perr 21_svc_tun_start {}
2022-10-20 19:58:59.316 ERR: perr tun_start {}
2022-10-20 19:58:59.316 NOTICE: cmd_tun 192.248.190.187:443 
2022-10-20 19:58:59.362 ERR: perr 22_svc_tun_1b {}
2022-10-20 19:58:59.362 ERR: perr tun_1b {}
2022-10-20 19:59:02.008 NOTICE: cmd_tun_close 1 
2022-10-20 19:59:09.426 WARN: agent WS (192.248.190.187): zfin_pending: 1-timeout
2022-10-20 19:59:54.030 ERR: perr heartbeat_proxy_js_conn_00_1min {}
2022-10-20 19:59:54.031 NOTICE: perr lum_sdk_node_heartbeat_proxy_js_conn_00_1min proxy 
2022-10-20 19:59:54.206 NOTICE: idle_state_monitor run
2022-10-20 20:00:54.438 ERR: perr heartbeat_proxy_js_conn_01_2min {}
2022-10-20 20:00:54.438 NOTICE: perr lum_sdk_node_heartbeat_proxy_js_conn_01_2min proxy 
2022-10-20 20:00:55.250 NOTICE: idle_state_monitor run

and again i receive that message when try to add that node to my account : Error while linking device, The device is no found. any ideas ?

You have to have an existing UUID. It's mentioned in the replies above, and you can find a video tutorial here: https://www.youtube.com/watch?v=tt499o0OjGU&t=300s&ab_channel=NetworkBitsCrypto

sylvaing26 commented 1 year ago

Hi, for the Lite version, I found a solution to generate an UUID without any installation.

You've just to go here : https://www.uuidgenerator.net/version4 Generate an UUID v4 and remove the "-" symbols.

On docker, put the variable EARNAPP_UUID = sdk-node-YOURGENERATEDUUIDV4

When your container is on, go to https://earnapp.com/dashboard?link_device=sdk-node-YOURGENERATEDUUIDV4 to add your new device