Comments (19)
+1
from matomo-package.
+1
from matomo-package.
@AnonymusChaotic it looks like /usr/share/piwik/config/config.ini.php
is missing. As far as I know, /usr/share/piwik/config/
should be a link to /etc/piwik
and config.ini.php
should be in there.
The installation will inevitably fail as long as you haven't run the web installation wizard that will create that configuration file for you.
from matomo-package.
+1 on a dedicated server running Debian Squeezy 8.4, Apache 2.4.10 with a MySQL server with a password-protected root account. Ended up installing manually.
from matomo-package.
+1. My server is running Ubuntu 14.04 and Nginx 1.11.1 with a MySQL server w/ password-protected root account.
from matomo-package.
+1, won't install on Debian 8 Jessie with Apache2 and MariaDB-server (obviously password protected root account).
Creating config file /etc/php5/mods-available/curl.ini with new version php5_invoke: Enable module curl for apache2 SAPI php5_invoke: Enable module curl for cli SAPI Setting up piwik (2.16.1-1) ... Lighttpd not installed, skipping Apache2 not installed, skipping * Piwik main configuration files are stored in /etc/piwik/ * Piwik crontab file is stored in /etc/cron.d/piwik-archive * When installing/using piwik, make sure you disable any ads blocker * Please wait while Piwik is upgrading... The configuration file {/usr/share/piwik/config/config.ini.php} has not been found or could not be read. If the file exists, please check that /usr/share/piwik/config/config.ini.php is readable by the user 'root'. [Zend_Db_Adapter_Exception] SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) [PDOException] SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) core:update [--yes] dpkg: error processing package piwik (--configure): subprocess installed post-installation script returned error exit status 255 Setting up php5-geoip (1.1.0-2) ... Processing triggers for libapache2-mod-php5 (5.6.22+dfsg-0+deb8u1) ... Errors were encountered while processing: piwik E: Sub-process /usr/bin/dpkg returned an error code (1) root@[deleted]:~# apt-get install piwik Reading package lists... Done Building dependency tree Reading state information... Done piwik is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up piwik (2.16.1-1) ... Lighttpd not installed, skipping Apache2 not installed, skipping * Piwik main configuration files are stored in /etc/piwik/ * Piwik crontab file is stored in /etc/cron.d/piwik-archive * When installing/using piwik, make sure you disable any ads blocker * Please wait while Piwik is upgrading... The configuration file {/usr/share/piwik/config/config.ini.php} has not been found or could not be read. If the file exists, please check that /usr/share/piwik/config/config.ini.php is readable by the user 'root'. [Zend_Db_Adapter_Exception] SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) [PDOException] SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO) core:update [--yes] dpkg: error processing package piwik (--configure): subprocess installed post-installation script returned error exit status 255 Errors were encountered while processing: piwik E: Sub-process /usr/bin/dpkg returned an error code (1)
from matomo-package.
+1
from matomo-package.
I get this error too.
from matomo-package.
I'm not 100% sure, but I think Piwik is expecting a passwordless root account in MySQL. After clearing the password, the website installation wizard appeared and I walked through about 6 steps to complete the install. I had also removed the config.ini.php file before doing that.
from matomo-package.
+1 - same error on Debian Jessie 8.8
There is no config.ini.php in either /usr/share/piwik/config/ or /etc/piwik...
$ sudo apt install piwik
Reading package lists... Done
Building dependency tree
Reading state information... Done
piwik is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up piwik (3.0.4-1) ...
Lighttpd not installed, skipping
Apache2 not installed, skipping
* Piwik main configuration files are stored in /etc/piwik/
* Piwik crontab file is stored in /etc/cron.d/piwik-archive
* When installing/using piwik, make sure you disable any ads blocker
* Please wait while Piwik is upgrading...
The configuration file {/usr/share/piwik/config/config.ini.php} has not been found or could not be read.
ยป Please check that /usr/share/piwik/config/config.ini.php is readable by the user 'root'.
[Zend_Db_Adapter_Exception]
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
[PDOException]
SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
core:update [--yes]
dpkg: error processing package piwik (--configure):
subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
piwik
E: Sub-process /usr/bin/dpkg returned an error code (1)
from matomo-package.
Same for Debian 9.1
Two years old bug. And no one seems really interested... I suppose the package is hopelessly broken.
from matomo-package.
So, this issue is in 2 parts:
1 - Piwik open-source doesn't support full automated install. If you have such a need, then it's best to contact InnoCraft who should be able to help you. https://www.innocraft.cloud/
2 - Regarding some of the error message, I published a fixed which is going to be pushed in the next hour with piwik 3.1.0 If config.ini.php
is not found then the error shouldn't appear.
As a side note, if a bug is bugging you then you have 2 options. You could sponsor (bitcoin is great for that) the open-source community to prioritize the bug or propose a patch if you feel like doing a bit of hacking (in the open-source spirit of the word)
from matomo-package.
To be honest, I don't mind. If people love to keep their product, no matter paid or free, in a bad state, who I am to interfere? It's their product, their choice.
from matomo-package.
I understand @iigorkarpov but the comment was directed to people willing to help and contribute in the community.
Closing this bug since the debian/ubuntu package 3.1.0-3 should be addressing the issue along with a potential race condition.
from matomo-package.
No, this issue should not have been closed. Clean Debian jessie 8.8, installing from the repo:-
Setting up piwik (3.1.1-1) ...
Lighttpd not installed, skipping
Apache2 not installed, skipping
- Piwik main configuration files are stored in /etc/piwik/
- Piwik crontab file is stored in /etc/cron.d/piwik-archive
- When installing/using piwik, make sure you disable any ads blocker
- Automatic upgrade not perform as Piwik doesn't seem to be installed.
- Have you configured it yet?
from matomo-package.
Hi @dg01d
From the look of it, the post installation script tells you that neither apache2
nor lighttpd
are installed. Also, the database upgrade isn't being performed because Piwik installation wizard (run from the web interface) hasn't been done yet (You mentioned it's a clean install).
On the first item, it's up to you to install a web server. If you are using something different than apache2
or lighttpd
, the package installation should complete just fine, except that the package will not be able to provide any default web configuration for you chosen web server. But your pull request is welcome.
On the second item, the full automated installation that creates the database and Piwik configuration file (/etc/piwik/config.ini.php
) is not supported by this package as it's a professional feature that's provided by Innocraft. If this is a requirement to your or your business, I would highly recommend that you purchase their services as they are extremely competent.
Peace and Love
from matomo-package.
Apache2 is installed and running, that's not the issue.
The issue is that the installation script has hardcoded the location /etc/apache2/conf.d
for the necessary conf file, whereas a modern apache2 installation places this file in /etc/apache2/conf-available
with a symlink from /e/a/conf-enabled
from matomo-package.
@dg01d Thank you for providing the details.
I believe the conf.d
is Debian old way (Debian 7), where conf-available
is a more recent way (Debian 8 and above). Could you please propose a patch that would handle both paths? I'll be happy to review your pull request. Please open a new issue so it's easier to track.
Thank you.
from matomo-package.
PR submitted
from matomo-package.
Related Issues (20)
- Smaller release file (remove not needed files from release) HOT 2
- Do not prepend autoloader HOT 1
- Package for 3.15.5 HOT 3
- On upgrade "The Matomo JavaScript tracker file "/matomo.js" & "/piwik.js" is not writable" HOT 2
- No debian package since 3.13.6 HOT 17
- Automate the packaging of Matomo beta/rc/stable releases via Github actions HOT 6
- Remove the WAG build from the script
- Releasing Matomo 4.0 for Debian HOT 13
- Don't include JS test files in the release
- Exclude phpcs.xml from release package
- Is the Matomo Debian package dead? HOT 72
- Working on debian package generation: .eslintrc ? HOT 1
- Working on debian package generation: autoload.php HOT 1
- Manifest / Integrity check has issues with symlinks HOT 2
- Changes in website format prevents pulling changelog when generating Debian package HOT 8
- Matomo 3.8.1 update? HOT 9
- libmaxminddb recommendations HOT 22
- matomo.php and matomo.js are missing from debian package HOT 1
- Security / Policy breach /usr/share/matomo/misc/user HOT 6
- Debian stretch (Matomo will stop supporting PHP 7.0 in the next major version.) HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matomo-package.