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

I get a lot of file .openmptcprouter.uci- #3705

Open
Silvanskii opened this issue Dec 10, 2024 · 7 comments
Open

I get a lot of file .openmptcprouter.uci- #3705

Silvanskii opened this issue Dec 10, 2024 · 7 comments
Labels

Comments

@Silvanskii
Copy link

Silvanskii commented Dec 10, 2024

Expected Behavior

After some time I ran out of memory on the device. I started to investigate what happened and found out that thousands of .openmptcprouter.uci- files are created and after deleting them they are created again and again.

Current Behavior

I checked the log, there is no mention of it, just here cgi-bin/luci/admin/system/opkg was 100 megabytes free and after a couple of days it became 0 megabytes free.

Possible Solution

Steps to Reproduce the Problem

  1. I'm installing version 0.60 0.60rc1 0.60rc2
  2. Then after a few reboots there are a lot of files and the system starts to take longer to load
  3. Then memory runs out, functions stop loading and the internet stops working because the firewall does not allow you to configure interfaces

Context (Environment)

I wasn't trying to accomplish anything, I just wanted to use it.

Specifications

  • OpenMPTCProuter version: 0.60rc 5.4
  • OpenMPTCProuter VPS version: instal last
  • OpenMPTCProuter VPS provider:
  • OpenMPTCProuter platform: Nanocore2
  • Country: Russia
@Silvanskii Silvanskii added the bug label Dec 10, 2024
@Ysurac
Copy link
Owner

Ysurac commented Dec 10, 2024

Please use template

@Silvanskii
Copy link
Author

Please use template

Server template, version template, question template. Clarify

@Ysurac
Copy link
Owner

Ysurac commented Dec 10, 2024

When you opening a bug issue, there is a template. It's required, as all others bug issues.

@Silvanskii
Copy link
Author

When you opening a bug issue, there is a template. It's required, as all others bug issues.

i edit and add screeen
2024-12-10_12-37-44
2,251 files in 1 hour

@Silvanskii
Copy link
Author

I added a script that removed this garbage in the startup, but I think this is a temporary solution. Thousands of files should not be created.

# -*- coding: utf-8 -*-
import os
import logging
logging.basicConfig(filename='/usr/bin/EOled/log/clearlog', level=logging.INFO, format='%(asctime)s - %(message)s')
config_dir = '/etc/config'
deleted_files = 0
for filename in os.listdir(config_dir):
    if filename.startswith('.'):
        try:
            os.remove(os.path.join(config_dir, filename))
            deleted_files += 1
        except OSError as e:
            logging.error(f'Error {filename}: {e}')
logging.info(f'Delete {deleted_files}')

@Silvanskii
Copy link
Author

I also checked my old device nanopi r4s with version v0.59.1-5.4 r0 and the story is the same, there are 315 files in the /etc/config folder. They were hidden, I started to see them when I set the settings to show hidden files. These files appear in squashfs system after a quick power off. If you just reboot the system no new files are added. Here is a screenshot and it shows that these files were created half a year ago, but here the size of the flashcard is very large, so there is no problem with lack of space.
2024-12-10_15-03-10

@Ysurac
Copy link
Owner

Ysurac commented Dec 11, 2024

Strange that there is so many files. I added a script to remove old files if there is still some.
I will also check if some commit are not missing...

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

No branches or pull requests

2 participants