Bug#1030203: Solved: fails after start with exit code 1

2023-02-13 Thread Daniel Baumann
Hi Markus,

On 2/3/23 07:41, Markus wrote:
> I fixed my problem. strace indicated a problem with netdata's sqlite 
> database. That was not reported in any netdata output. So I deleted the 
> contents of /var/cache/netdata and all was fine.

great - shouldn't be needed though :/

since upstream moves away and uses it's own database format by default
starting with 1.38, this should not be an issue anymore in the long run.

> `apt purge netdata` should delete or offer to delete /var/cache/netdata. If 
> it would have done that, my problem would have been fixed quite soon:

netdata is just the metapackage, netdata-core which contains the actual
netdata, does remove /var/cache/netdata on purge.

I've put a note in netdata-core.README.Debian accordingly.

Regards,
Daniel



Bug#1030203: Solved: fails after start with exit code 1

2023-02-05 Thread Markus
Hello,

I fixed my problem. strace indicated a problem with netdata's sqlite database. 
That was not reported in any netdata output. So I deleted the contents of 
/var/cache/netdata and all was fine.

So while my problem is solved, there might be two problems that caused this bug 
report:
- sqlite conversion seems to be faulty. At least that's what the strace output 
suggests. I attached it for completeness and maybe an upstream bug report.
- `apt purge netdata` should delete or offer to delete /var/cache/netdata. If 
it would have done that, my problem would have been fixed quite soon:

[gru:~] % apt purge netdata
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
 fonts-glyphicons-halflings libjs-bootstrap libnetfilter-acct1 netdata-core 
netdata-plugins-bash netdata-plugins-python netdata-web
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
 netdata*
0 upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
After this operation, 47.1 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 288452 files and directories currently installed.)
Removing netdata (1.37.1-2) ...
θ70° [gru:~] 6s % ll /var/cache/netdata
total 5668
-rw-r- 1 netdata netdata    4096 Feb  3 07:30 context-meta.db
-rw-r- 1 netdata netdata   32768 Feb  3 07:32 context-meta.db-shm
-rw-r- 1 netdata netdata   61832 Feb  3 07:32 context-meta.db-wal
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier1/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier2/
-rw-r- 1 netdata netdata 1507328 Feb  3 07:33 netdata-meta.db
-rw-r- 1 netdata netdata   32768 Feb  3 07:33 netdata-meta.db-shm
-rw-r- 1 netdata netdata 4148872 Feb  3 07:33 netdata-meta.db-wal


* "could not find cloud.conf"
Yes, I also saw that message when I ran the natively installed netdata daemon

* output from starting netdata in the foreground
θ61° [gru:~] 3s % sudo netdata -D
2023-02-03 07:20:54: netdata INFO  : MAIN : CONFIG: cannot load cloud config 
'/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
θ63° [gru:~] 1 %

That's it. Exit code 1, not helpful...

So you could fix that bug, but it would be good if the above mentioned problems 
would be addressed.

Thanks for your work as a maintainer!
--
Markus Grunwald