Forums | Mahara Community
Support
/
Error while installation: data not writeable/CSS files missing
19 July 2017, 2:15
Hi all,
I have trouble by installation of Mahara.
Moodle-Version: 3.3.1+ (Build: 20170714)
Ubuntu: 14.04.1
PHP: 7.1 (or 7.0)
Webserver: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9 Installation by: Git
I have add langpacks into mydomain_data-Directory.
Mahara is not able to write into the data-directory. But the permissions are right: webserveruser is owner and his group, too.
And the directory is in open_path. Is it not? Look please in the error message bellow. Perhaps I am wrong.
My try to install by browser:
Mahara: Site unavailable
(Your server has the php open_basedir restriction enabled. Mahara can only open files within the following path(s): /var/kunden/webs/me/mydomain.my/var/customers/tmp/rainer:/usr/share/php:/usr/share/php5:/tmp:/dev/urandom:/var/kunden/webs/me/mydomain.my_data.)
"CSS files are not present in your htdocs/theme/raw/style directory. If you are running Mahara from a git checkout, run "make css" to build the CSS files. If you are running Mahara from a ZIP download, try downloading and unzipping again."
"npm install
npm WARN package.json [email protected] No repository field.
Building CSS...
npm WARN package.json [email protected] No repository field.
make: *** [css] Error 1"
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-pc-linux-gnu
Reading makefiles...
Reading makefile `Makefile'...
Updating makefiles....
Considering target file `Makefile'.
Looking for an implicit rule for `Makefile'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.o'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.c'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cc'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.C'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cpp'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.p'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.f'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.F'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.r'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.s'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.S'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.mod'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.sh'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile,v'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `RCS/Makefile,v'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `RCS/Makefile'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `s.Makefile'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `SCCS/s.Makefile'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.o'.
Looking for a rule with intermediate file `Makefile.o'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.c'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cc'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.C'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cpp'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.p'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.f'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.F'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.r'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.s'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.S'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.mod'.
Trying pattern rule with stem `Makefile.o'.
Trying implicit prerequisite `Makefile.o,v'.
Trying pattern rule with stem `Makefile.o'.
Trying implicit prerequisite `RCS/Makefile.o,v'.
Trying pattern rule with stem `Makefile.o'.
Trying implicit prerequisite `RCS/Makefile.o'.
Trying pattern rule with stem `Makefile.o'.
Trying implicit prerequisite `s.Makefile.o'.
Trying pattern rule with stem `Makefile.o'.
Trying implicit prerequisite `SCCS/s.Makefile.o'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.c'.
Looking for a rule with intermediate file `Makefile.c'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.y'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.l'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.w'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.w'.
Trying pattern rule with stem `Makefile.c'.
Trying implicit prerequisite `Makefile.c,v'.
Trying pattern rule with stem `Makefile.c'.
Trying implicit prerequisite `RCS/Makefile.c,v'.
Trying pattern rule with stem `Makefile.c'.
Trying implicit prerequisite `RCS/Makefile.c'.
Trying pattern rule with stem `Makefile.c'.
Trying implicit prerequisite `s.Makefile.c'.
Trying pattern rule with stem `Makefile.c'.
Trying implicit prerequisite `SCCS/s.Makefile.c'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.y'.
Looking for a rule with intermediate file `Makefile.y'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.y'.
Trying implicit prerequisite `Makefile.y,v'.
Trying pattern rule with stem `Makefile.y'.
Trying implicit prerequisite `RCS/Makefile.y,v'.
Trying pattern rule with stem `Makefile.y'.
Trying implicit prerequisite `RCS/Makefile.y'.
Trying pattern rule with stem `Makefile.y'.
Trying implicit prerequisite `s.Makefile.y'.
Trying pattern rule with stem `Makefile.y'.
Trying implicit prerequisite `SCCS/s.Makefile.y'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.l'.
Looking for a rule with intermediate file `Makefile.l'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.l'.
Trying implicit prerequisite `Makefile.l,v'.
Trying pattern rule with stem `Makefile.l'.
Trying implicit prerequisite `RCS/Makefile.l,v'.
Trying pattern rule with stem `Makefile.l'.
Trying implicit prerequisite `RCS/Makefile.l'.
Trying pattern rule with stem `Makefile.l'.
Trying implicit prerequisite `s.Makefile.l'.
Trying pattern rule with stem `Makefile.l'.
Trying implicit prerequisite `SCCS/s.Makefile.l'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.w'.
Looking for a rule with intermediate file `Makefile.w'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.w'.
Trying implicit prerequisite `Makefile.w,v'.
Trying pattern rule with stem `Makefile.w'.
Trying implicit prerequisite `RCS/Makefile.w,v'.
Trying pattern rule with stem `Makefile.w'.
Trying implicit prerequisite `RCS/Makefile.w'.
Trying pattern rule with stem `Makefile.w'.
Trying implicit prerequisite `s.Makefile.w'.
Trying pattern rule with stem `Makefile.w'.
Trying implicit prerequisite `SCCS/s.Makefile.w'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.w'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cc'.
Looking for a rule with intermediate file `Makefile.cc'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.cc'.
Trying implicit prerequisite `Makefile.cc,v'.
Trying pattern rule with stem `Makefile.cc'.
Trying implicit prerequisite `RCS/Makefile.cc,v'.
Trying pattern rule with stem `Makefile.cc'.
Trying implicit prerequisite `RCS/Makefile.cc'.
Trying pattern rule with stem `Makefile.cc'.
Trying implicit prerequisite `s.Makefile.cc'.
Trying pattern rule with stem `Makefile.cc'.
Trying implicit prerequisite `SCCS/s.Makefile.cc'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.C'.
Looking for a rule with intermediate file `Makefile.C'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.C'.
Trying implicit prerequisite `Makefile.C,v'.
Trying pattern rule with stem `Makefile.C'.
Trying implicit prerequisite `RCS/Makefile.C,v'.
Trying pattern rule with stem `Makefile.C'.
Trying implicit prerequisite `RCS/Makefile.C'.
Trying pattern rule with stem `Makefile.C'.
Trying implicit prerequisite `s.Makefile.C'.
Trying pattern rule with stem `Makefile.C'.
Trying implicit prerequisite `SCCS/s.Makefile.C'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.cpp'.
Looking for a rule with intermediate file `Makefile.cpp'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.cpp'.
Trying implicit prerequisite `Makefile.cpp,v'.
Trying pattern rule with stem `Makefile.cpp'.
Trying implicit prerequisite `RCS/Makefile.cpp,v'.
Trying pattern rule with stem `Makefile.cpp'.
Trying implicit prerequisite `RCS/Makefile.cpp'.
Trying pattern rule with stem `Makefile.cpp'.
Trying implicit prerequisite `s.Makefile.cpp'.
Trying pattern rule with stem `Makefile.cpp'.
Trying implicit prerequisite `SCCS/s.Makefile.cpp'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.p'.
Looking for a rule with intermediate file `Makefile.p'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.web'.
Trying pattern rule with stem `Makefile.p'.
Trying implicit prerequisite `Makefile.p,v'.
Trying pattern rule with stem `Makefile.p'.
Trying implicit prerequisite `RCS/Makefile.p,v'.
Trying pattern rule with stem `Makefile.p'.
Trying implicit prerequisite `RCS/Makefile.p'.
Trying pattern rule with stem `Makefile.p'.
Trying implicit prerequisite `s.Makefile.p'.
Trying pattern rule with stem `Makefile.p'.
Trying implicit prerequisite `SCCS/s.Makefile.p'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.web'.
Looking for a rule with intermediate file `Makefile.web'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.web'.
Trying implicit prerequisite `Makefile.web,v'.
Trying pattern rule with stem `Makefile.web'.
Trying implicit prerequisite `RCS/Makefile.web,v'.
Trying pattern rule with stem `Makefile.web'.
Trying implicit prerequisite `RCS/Makefile.web'.
Trying pattern rule with stem `Makefile.web'.
Trying implicit prerequisite `s.Makefile.web'.
Trying pattern rule with stem `Makefile.web'.
Trying implicit prerequisite `SCCS/s.Makefile.web'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.f'.
Looking for a rule with intermediate file `Makefile.f'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.F'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.r'.
Trying pattern rule with stem `Makefile.f'.
Trying implicit prerequisite `Makefile.f,v'.
Trying pattern rule with stem `Makefile.f'.
Trying implicit prerequisite `RCS/Makefile.f,v'.
Trying pattern rule with stem `Makefile.f'.
Trying implicit prerequisite `RCS/Makefile.f'.
Trying pattern rule with stem `Makefile.f'.
Trying implicit prerequisite `s.Makefile.f'.
Trying pattern rule with stem `Makefile.f'.
Trying implicit prerequisite `SCCS/s.Makefile.f'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.F'.
Looking for a rule with intermediate file `Makefile.F'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.F'.
Trying implicit prerequisite `Makefile.F,v'.
Trying pattern rule with stem `Makefile.F'.
Trying implicit prerequisite `RCS/Makefile.F,v'.
Trying pattern rule with stem `Makefile.F'.
Trying implicit prerequisite `RCS/Makefile.F'.
Trying pattern rule with stem `Makefile.F'.
Trying implicit prerequisite `s.Makefile.F'.
Trying pattern rule with stem `Makefile.F'.
Trying implicit prerequisite `SCCS/s.Makefile.F'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.r'.
Looking for a rule with intermediate file `Makefile.r'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.l'.
Trying pattern rule with stem `Makefile.r'.
Trying implicit prerequisite `Makefile.r,v'.
Trying pattern rule with stem `Makefile.r'.
Trying implicit prerequisite `RCS/Makefile.r,v'.
Trying pattern rule with stem `Makefile.r'.
Trying implicit prerequisite `RCS/Makefile.r'.
Trying pattern rule with stem `Makefile.r'.
Trying implicit prerequisite `s.Makefile.r'.
Trying pattern rule with stem `Makefile.r'.
Trying implicit prerequisite `SCCS/s.Makefile.r'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.F'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.r'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.s'.
Looking for a rule with intermediate file `Makefile.s'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.S'.
Trying pattern rule with stem `Makefile.s'.
Trying implicit prerequisite `Makefile.s,v'.
Trying pattern rule with stem `Makefile.s'.
Trying implicit prerequisite `RCS/Makefile.s,v'.
Trying pattern rule with stem `Makefile.s'.
Trying implicit prerequisite `RCS/Makefile.s'.
Trying pattern rule with stem `Makefile.s'.
Trying implicit prerequisite `s.Makefile.s'.
Trying pattern rule with stem `Makefile.s'.
Trying implicit prerequisite `SCCS/s.Makefile.s'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.S'.
Looking for a rule with intermediate file `Makefile.S'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.S'.
Trying implicit prerequisite `Makefile.S,v'.
Trying pattern rule with stem `Makefile.S'.
Trying implicit prerequisite `RCS/Makefile.S,v'.
Trying pattern rule with stem `Makefile.S'.
Trying implicit prerequisite `RCS/Makefile.S'.
Trying pattern rule with stem `Makefile.S'.
Trying implicit prerequisite `s.Makefile.S'.
Trying pattern rule with stem `Makefile.S'.
Trying implicit prerequisite `SCCS/s.Makefile.S'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.S'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.mod'.
Looking for a rule with intermediate file `Makefile.mod'.
Avoiding implicit rule recursion.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.mod'.
Trying implicit prerequisite `Makefile.mod,v'.
Trying pattern rule with stem `Makefile.mod'.
Trying implicit prerequisite `RCS/Makefile.mod,v'.
Trying pattern rule with stem `Makefile.mod'.
Trying implicit prerequisite `RCS/Makefile.mod'.
Trying pattern rule with stem `Makefile.mod'.
Trying implicit prerequisite `s.Makefile.mod'.
Trying pattern rule with stem `Makefile.mod'.
Trying implicit prerequisite `SCCS/s.Makefile.mod'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.c'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.cc'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.C'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.cpp'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.p'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.f'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.F'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.r'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.s'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.S'.
Trying pattern rule with stem `Makefile'.
Rejecting impossible implicit prerequisite `Makefile.mod'.
Trying pattern rule with stem `Makefile'.
Trying implicit prerequisite `Makefile.sh'.
Looking for a rule with intermediate file `Makefile.sh'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `Makefile.sh'.
Trying implicit prerequisite `Makefile.sh,v'.
Trying pattern rule with stem `Makefile.sh'.
Trying implicit prerequisite `RCS/Makefile.sh,v'.
Trying pattern rule with stem `Makefile.sh'.
Trying implicit prerequisite `RCS/Makefile.sh'.
Trying pattern rule with stem `Makefile.sh'.
Trying implicit prerequisite `s.Makefile.sh'.
Trying pattern rule with stem `Makefile.sh'.
Trying implicit prerequisite `SCCS/s.Makefile.sh'.
No implicit rule found for `Makefile'.
Finished prerequisites of target file `Makefile'.
No need to remake target `Makefile'.
Updating goal targets....
Considering target file `css'.
File `css' does not exist.
Finished prerequisites of target file `css'.
Must remake target `css'.
npm install
Putting child 0x00e01af0 (css) PID 23841 on the chain.
Live child 0x00e01af0 (css) PID 23841
npm WARN package.json [email protected] No repository field.
Reaping winning child 0x00e01af0 PID 23841
Live child 0x00e01af0 (css) PID 23847
Building CSS...
Reaping winning child 0x00e01af0 PID 23847
Live child 0x00e01af0 (css) PID 23848
npm WARN package.json [email protected] No repository field.
Reaping losing child 0x00e01af0 PID 23848
make: *** [css] Error 1
Removing child 0x00e01af0 PID 23848 from chain."
19 July 2017, 8:48
Hello Florian,
Sorry to read that you are having trouble installing Mahara.
For CSS:
It's OK to get the warnings for the two fields missing. They are only information fields.
What version of NodeJS do you have on the server? The one that comes with Ubuntu may not be new enough. You can fine information on how to download NodeJS in these two tutorials (depending on which way you want to go):
If you haven't set up npm before, you can take a look at the theme readme file or the developer environment instructions.
If all still won't work and you want to get going, you can download the compiled CSS from the compressed download at https://launchpad.net/mahara/+download
Installation issue: Please note that Mahara does not yet support PHP 7.1, There was at least one issue reported recently: https://bugs.launchpad.net/mahara/+bug/1670637
The error message suggests that with the open_basedir restriction enabled, you can't fully write in the data directory. I'll ask a developer if they can provide more information.
Cheers
Kristina
20 July 2017, 0:55
Hi Kristina,
I thank you!
I updated now [ and ] is from me because spam prevention system is making me crazy: curl -sL [https:]//deb.nodesource.com/setup_8.x | sudo -E bash -
node -v does not work but the following works:
nodejs -v
v8.1.4
npm -v
5.0.3
Now make css works
I have a new problem:
"[DBG] d1 (lib/dml.php:157) mysqli error: [1709: Index column size too large. The maximum column size is 767 bytes.] in EXECUTE("CREATE INDEX inteforupost_pat_ix ON interaction_forum_post (path)")Command was: CREATE INDEX inteforupost_pat_ix ON interaction_forum_post (path)
[WAR] d1 (lib/errors.php:859) Could not execute command: CREATE INDEX inteforupost_pat_ix ON interaction_forum_post (path)"
I have collation utf8_general_ci
It seems like wrong datatype or collation?
//edit: I think it is related to [https:]//bugs.launchpad.net/mahara/+bug/1670637 [ and ] is from me. Please change the crazy spam prevention system ;-)
20 July 2017, 8:18
Hello Florian,
You are off the probation now and can post links.
Great that node works now.
If you think your problem is related to the bug you mention, please apply the patch to your instance and give it another go.
Cheers
Kristina
21 July 2017, 3:05
ok, I have write the error to https://mahara.org/interaction/forum/topic.php?id=7913&offset=10&limit=10#post32154
After this error will be resolved I come back with next question
22 July 2017, 2:53
I used wrong dataroot
It was: $cfg->dataroot = '/var/kunden/webs/rainer/moodle_data'; (my Moodle instance)
Should be: $cfg->dataroot = '/var/kunden/webs/rainer/mahara_data';
So I can use the webinstaller instead command line.
The problem with creating the database I have resolved by doing it manually like in https://mahara.org/interaction/forum/topic.php?id=7913&offset=10&limit=10#post32161 described