Comments (6)
Starting the MySQL database fails for me:
Step 12/20 : RUN /bin/sh /etc/init.d/mysql start
---> Running in b00c41f5c48e
- Starting MySQL database server mysqld
...fail!
The command '/bin/sh -c /bin/sh /etc/init.d/mysql start' returned a non-zero code: 1
from daloradius.
unfortunately I don't have much time to handle that but if you find a fix to the Dockerfile config I'd be happy to merge it in.
from daloradius.
I could resolve this error just by starting mysql server as shown below. Now build is successful and could also start the container.
RUN /bin/sh /etc/init.d/mysql start
# Run MySQL server so that it initializes the database and seeds information
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld; /usr/bin/mysqld_safe & \
sleep 10s && \
/usr/bin/mysql --host localhost --port 3306 -u root --password="" -e "CREATE DATABASE radius" && \
/usr/bin/mysql -u root --password="" radius < /var/www/html/contrib/db/fr2-mysql-daloradius-and-freeradius.sql
But now I am facing problem when I access the server. Page does not load properly and I can see following errors in /var/log/apache2/error.log even though following permissions are set for all the files.
-rw------- 1 www-data www-data
Also checked calling permission with "echo exec('whoami');" in index.php and its printing www-data only.
/var/log/apache2/error.log
[Sat Jul 21 13:38:10.995186 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(library/checklogin.php): failed to open stream: Permission denied in /var/www/html/index.php on line 4
[Sat Jul 21 13:38:10.995231 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(): Failed opening 'library/checklogin.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 4
[Sat Jul 21 13:38:10.995246 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: _SESSION in /var/www/html/index.php on line 5
[Sat Jul 21 13:38:10.995312 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(lang/main.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 14
[Sat Jul 21 13:38:10.995321 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(): Failed opening 'lang/main.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 14
[Sat Jul 21 13:38:10.995383 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(include/menu/menu-items.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 22
[Sat Jul 21 13:38:10.995390 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(): Failed opening 'include/menu/menu-items.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 22
[Sat Jul 21 13:38:10.995446 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(include/menu/home-subnav.php): failed to open stream: Permission denied in /var/www/html/menu-home.php on line 23
[Sat Jul 21 13:38:10.995453 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(): Failed opening 'include/menu/home-subnav.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/menu-home.php on line 23
[Sat Jul 21 13:38:10.995459 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/menu-home.php on line 34
[Sat Jul 21 13:38:10.995464 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/menu-home.php on line 35
[Sat Jul 21 13:38:10.995469 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/menu-home.php on line 36
[Sat Jul 21 13:38:10.995473 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/menu-home.php on line 40
[Sat Jul 21 13:38:10.995478 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/menu-home.php on line 41
[Sat Jul 21 13:38:10.995531 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(library/config_read.php): failed to open stream: Permission denied in /var/www/html/index.php on line 9
[Sat Jul 21 13:38:10.995538 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include_once(): Failed opening 'library/config_read.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 9
[Sat Jul 21 13:38:10.995578 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(include/config/logging.php): failed to open stream: Permission denied in /var/www/html/index.php on line 11
[Sat Jul 21 13:38:10.995585 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(): Failed opening 'include/config/logging.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 11
[Sat Jul 21 13:38:10.995620 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(library/exten-welcome_page.php): failed to open stream: Permission denied in /var/www/html/index.php on line 23
[Sat Jul 21 13:38:10.995627 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Warning: include(): Failed opening 'library/exten-welcome_page.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/index.php on line 23
[Sat Jul 21 13:38:10.995633 2018] [:error] [pid 458] [client 172.17.0.1:42238] PHP Notice: Undefined variable: l in /var/www/html/page-footer.php on line 25
[Sat Jul 21 13:38:11.002810 2018] [core:crit] [pid 458] (13)Permission denied: [client 172.17.0.1:42238] AH00529: /var/www/html/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/html/css/' is executable, referer: http://localhost/
from daloradius.
The change that @apurva356 shows actually works entirely for me. Your permission issue is probably related to something completely different.
from daloradius.
are there any changes needed to be made on the Dockerfile? If so, will you please open a pull request?
from daloradius.
Starting the MySQL database fails for me:
Step 12/20 : RUN /bin/sh /etc/init.d/mysql start
---> Running in b00c41f5c48e
- Starting MySQL database server mysqld
...fail!
The command '/bin/sh -c /bin/sh /etc/init.d/mysql start' returned a non-zero code: 1
I have same problem.
from daloradius.
Related Issues (20)
- Problems with Plan+Profile+Pre-paid 30 days / 30 minutes
- Disconnect User
- Error missing arguments while creating a plans.
- how can I add new currency ? HOT 1
- May I ask if the user portal application account cannot log in
- daloradius docker not accepting connections HOT 2
- Missing validation.php file in library folder HOT 1
- User Listing, Edit User(Action Button, Check Attributes Reply Attributes User Info Billing Info Groups Attributes Other Info) not works(not showing content)
- Not possible to update attributes - fix included HOT 2
- Test user connectivity command not work HOT 4
- total_users.php not counting properly HOT 3
- UI issues: daloRADIUS - RADIUS Management version 2.0 beta / 9 Feb 2023 HOT 3
- Problema con mariadb, no inicia (ubuntu 16.04) HOT 3
- Accounting information not being updated HOT 2
- attribute value not change HOT 2
- New Install - Authentication Issues HOT 2
- Import users - CSV-formatted data - Polish characters HOT 2
- How can i change administator password or create new admin user? HOT 1
- Attribute non-existent or inconsistency in your vendor/attribute dictionary
- conf files in Freeradius are not writable via web interface DaloRadius
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 daloradius.