OpenList-Mobile icon indicating copy to clipboard operation
OpenList-Mobile copied to clipboard

For some reason, the app keeps starting a new server instance continuously

Open Clouddark75 opened this issue 1 year ago • 12 comments

I have downloaded the latest arm64 APK, and after setting up OpenList mobile, the console drivers keep reloading for some reason. After a moment, they will keep doing this again and again, and if you try to stop it (on the app), it will simply reset and keep doing it. I need to force close the app myself.

Edit:

Not only the drivers, but everything, from the port and URL assignment, says that it is already being used. So I guess that the app is kind of opening a new OpenList server again and again.

I tried just deleting the data/reinstalling and just running the server without any setup/configuration, and it does the same nonstop. I tried with different devices, and it's the same story.

I have tried other forks for Flutter OpenList, and none of them have this problem. I wanted to try the official fork since it seems you guys have improved it for the better, but at this point, it is concerning that the server is doing this. It will probably get our account flagged at best, worst-case scenario. I checked the logs, and there's nothing.

Clouddark75 avatar Aug 13 '25 11:08 Clouddark75

After closing OpenList on the OpenList page, OpenList will not be automatically restarted unless you return to the "Web Page" interface.

Suyunmeng avatar Aug 15 '25 04:08 Suyunmeng

After closing OpenList on the OpenList page, OpenList will not be automatically restarted unless you return to the "Web Page" interface.

What I'm saying is that when you open the app and start the server, if you keep watching the CLI, it will keep calling the server non-stop. You will see the same thing again and again. It will say that there's already an instance using the IP:PORT, mounting the driver (if any) endlessly. If you try to stop it with the stop button, it will reset the CLI, but it will keep doing the same thing.

Please test it yourself. I have try it with different devices, and I'm facing the same issue. Checking the commits, I saw you did try to implement a fix for the server keep running here #4 but the thing is that is worse now, no idea if this is the reason of why is spamming the server to run infinitely.

Clouddark75 avatar Aug 15 '25 14:08 Clouddark75

Image Image Image

A few screenshots, of the CLI, it will keep doing this endless. After 30 secs or so. You need to scroll up to see it.

Clouddark75 avatar Aug 15 '25 14:08 Clouddark75

After click on the stop button and doing nothing more after the 30 secs have passed out, if you go to your browser and open the url, the server will be up, and it will be killed again, and so on. Of course if you have drivers, then you will see them been mounted again, and again after clicking stop.

The list error is because I don't have drivers on the DB for the obvious reasons.

Image Image Image

Clouddark75 avatar Aug 15 '25 14:08 Clouddark75

The issue has been identified and is expected to be fixed in https://github.com/OpenListTeam/OpenList-Mobile/pull/15

Suyunmeng avatar Aug 16 '25 05:08 Suyunmeng

This issue has been fixed in the latest development version. You can download the latest development version from Action to check it out. The new official version will be released simultaneously when OpenList is updated.

Suyunmeng avatar Aug 16 '25 13:08 Suyunmeng

This issue has been fixed in the latest development version. You can download the latest development version from Action to check it out. The new official version will be released simultaneously when OpenList is updated.

Thanks, will try in a bit!

Wanted to let you know that the log file no longer shows the expected data info. After testing and checking the file log behavior for OpenList-mobile and Desktop, it looks like the app needs to be updated to account for the changes made to OpenList CLI and the log file filtering done in the recent updates from the main branch. The log file generated no longer shows warn, info, error, etc., data, so it's useless now. It just shows some API (PUT, GET, and POST) info, nothing more. Meanwhile, the desktop counterpart (OpenList main branch) shows correctly all the key important info: driver situation, error, and warn info. Can you take a look at that as well?

Clouddark75 avatar Aug 16 '25 14:08 Clouddark75

This issue has been fixed in the latest development version. You can download the latest development version from Action to check it out. The new official version will be released simultaneously when OpenList is updated.

Thanks, will try in a bit!

Wanted to let you know that the log file no longer shows the expected data info. After testing and checking the file log behavior for OpenList-mobile and Desktop, it looks like the app needs to be updated to account for the changes made to OpenList CLI and the log file filtering done in the recent updates from the main branch. The log file generated no longer shows warn, info, error, etc., data, so it's useless now. It just shows some API (PUT, GET, and POST) info, nothing more. Meanwhile, the desktop counterpart (OpenList main branch) shows correctly all the key important info: driver situation, error, and warn info. Can you take a look at that as well?

Because if you remove it by error, the app crashes or the system removes it from the recent open/running apps because the system decided to clear old recent open apps, while the app still has the service running and you try to open the app again, the CLI will be empty because, for obvious reasons, the service is still running, but the app itself was closed. There's no info left because it is a new instance that detect the service is still running.

If that happens, the app no longer register changes on the CLI as well. It will be empty until you decide to stop the service or force close the app and start the service again.

Clouddark75 avatar Aug 16 '25 14:08 Clouddark75

BTW, @Suyunmeng just tested the artifacts, and the restarting/re-running issue when you start or stop the server is solved. Thanks for isolating the issue quickly.

Clouddark75 avatar Aug 16 '25 17:08 Clouddark75

This issue has been fixed in the latest development version. You can download the latest development version from Action to check it out. The new official version will be released simultaneously when OpenList is updated.

Thanks, will try in a bit! Wanted to let you know that the log file no longer shows the expected data info. After testing and checking the file log behavior for OpenList-mobile and Desktop, it looks like the app needs to be updated to account for the changes made to OpenList CLI and the log file filtering done in the recent updates from the main branch. The log file generated no longer shows warn, info, error, etc., data, so it's useless now. It just shows some API (PUT, GET, and POST) info, nothing more. Meanwhile, the desktop counterpart (OpenList main branch) shows correctly all the key important info: driver situation, error, and warn info. Can you take a look at that as well?

Because if you remove it by error, the app crashes or the system removes it from the recent open/running apps because the system decided to clear old recent open apps, while the app still has the service running and you try to open the app again, the CLI will be empty because, for obvious reasons, the service is still running, but the app itself was closed. There's no info left because it is a new instance that detect the service is still running.

If that happens, the app no longer register changes on the CLI as well. It will be empty until you decide to stop the service or force close the app and start the service again.

@Suyunmeng , should I open a separate ticket for the log problem?

Clouddark75 avatar Aug 17 '25 19:08 Clouddark75

@Suyunmeng , should I open a separate ticket for the log problem?

There is no need to open a separate issue. Since it has been raised here, there is no need to open a new one.

Suyunmeng avatar Aug 18 '25 11:08 Suyunmeng

@Suyunmeng , should I open a separate ticket for the log problem?

There is no need to open a separate issue. Since it has been raised here, there is no need to open a new one.

OK, then.

Clouddark75 avatar Aug 21 '25 21:08 Clouddark75