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

Drag an drop of columbs not possible anymore #175

Closed
killtux opened this issue Feb 7, 2023 · 15 comments
Closed

Drag an drop of columbs not possible anymore #175

killtux opened this issue Feb 7, 2023 · 15 comments
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken.

Comments

@killtux
Copy link

killtux commented Feb 7, 2023

Describe the issue
Cannot drag and drop order of columns

it was a bit clunky before, liked described on the maintanance page, but since the last update its not possible to move anything.

image

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 7, 2023

Hi there,

It works on my end.

Looks like the page is not loaded properly. Please reload page and check the browser error log / console by pressing F12 for details.

@killtux
Copy link
Author

killtux commented Feb 8, 2023

yeah it looks like. i noticed the other menu pages are not accessable anymore. you can click on it but nothing happens.

chrome:
image

image

firefox:
image

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 8, 2023

Thanks for the details!

The 500 server error is a very generic error so not sure without more details what's causing this.

I'd recommend also exporting the Devices in a CSV file via the Backup / Restore section in maintenance and then starting with a fresh install because your database is pretty huge (500MB). You can then import the CSV file as per instructions on a new DB.My database size is around 10MB max and it's possible SQLite is having issues with that size or DB queries are timing out.

j

@jokob-sk jokob-sk added the Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. label Feb 8, 2023
@killtux
Copy link
Author

killtux commented Feb 8, 2023

the problem is, as mentioned above, i cannot get to the backup / restore section. 😮‍💨 i installed the the app 5 days ago, is there any reason the db can get that big?

is there any other way to export devices? it was really much work to completely configure nearly 80 devices hand by hand. 🤯

error's now gone, but still no drag and drop / navigation to the other menu items possible:
image

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 9, 2023

Hey,

A workaround is to access this url:

<pialert host ip>/php/server/devices.php?action=ExportCSV

This will generate and download a CSV file of all the devices.

I highly recommend to backup everything (including DB).

The CSV only contains the Devices and Network info, not NMAP port custom comments.

Hope this helps,
j

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 9, 2023

How often do you scan for new devices? That might influence the size of the DB - my settings are usually every 3 or 5 minutes. Same with additional scans such as Pholus or NMAP. They might influence the DB size as well, although, depending on your version, only unique values should be stored which should prevent the DB to swell up this much.

@killtux
Copy link
Author

killtux commented Feb 9, 2023

the interval is set to the default 5 minutes and i changed it yesterday to 15min and days to keep events to only 1 day in hope the db will get smaller. but per today its grown even much more:
image

i noticed that Pholus scan is running regularly, even if its not activated in the settings. is this normal?

thanks for the hint with the direct export url. i will do a fresh install today.

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 9, 2023

To completely disable Pholus you need to specify these 3 settings:
image

@killtux
Copy link
Author

killtux commented Feb 9, 2023

if i try to import via csv file i get that message:
image

devices.csv is in the /config/ folder and looks fine to me. any suggestions?

@jokob-sk
Copy link
Owner

The CSV export seems to generate a file with 2 blank lines in the beginning. Please delete them and the CSV import should work again.

@jokob-sk jokob-sk added the bug 🐛 Something isn't working label Feb 10, 2023
jokob-sk added a commit that referenced this issue Feb 10, 2023
@jokob-sk jokob-sk added next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Fixed in _dev image labels Feb 10, 2023
jokob-sk added a commit that referenced this issue Feb 10, 2023
@jokob-sk jokob-sk added Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken. and removed Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. labels Feb 12, 2023
@killtux
Copy link
Author

killtux commented Feb 13, 2023

removing the 2 blank lines worked, thanks!
db stays < 0,50mb now. would be cool if you can add the icon name to the csv export too.

and if you got drag'n' drop sometime working, it would be nice if you can drag an drop the columns directly on the main page.

and maybe you can extend the width of the page itself or make it dynamic resized with the browser screen.
since width is fixed you have to scroll left and right all the time to see the other columns even if there is enough space on the monitor. just the background extends.

@jokob-sk
Copy link
Owner

jokob-sk commented Feb 13, 2023 via email

@killtux
Copy link
Author

killtux commented Mar 10, 2023

image

it happened again :(
this time the db is still pretty small.

any idea/timeline when the csv export with icons will find its way in a future release?

@jokob-sk
Copy link
Owner

Can you clear/purge the logs?

The new release is taking a while as it comes with a bigger piece of functionality. You can try the dev builds if interested: https://registry.hub.docker.com/r/jokobsk/pi.alert_dev - which obviously are less table

@killtux
Copy link
Author

killtux commented Mar 10, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Workaround provided ⚒️ A workaround for the issue was provided so no further actions will be taken.
Projects
None yet
Development

No branches or pull requests

2 participants