Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Extra mysql dependency needed on Ubuntu 10.04 #1152

Closed
leto opened this Issue Mar 9, 2012 · 4 comments

Comments

Projects
None yet
3 participants

leto commented Mar 9, 2012

I spend a few hours debugging a problem where CI would give a 500 and no output to the web browser. After busting out gdb and strace and many hours of debugging, I finally chased it down to this missing dependency:

sudo apt-get install php-mdb2-driver-mysql

Without this dependency, absolutely no output is sent to the web-browser and CodeIgniter dies without any output just after loading the mysql driver.

I would like to patch the docs to talk about this dependency on Ubuntu. Where should that go?

leto commented Mar 9, 2012

For those that want to see the strace output that lead me to this:

12:01:17.060926 open("/home/leto/git/chirpify/Chirpify.com/system/database/drivers/mysql/mysql_driver.php", O_RDONLY) = 19
12:01:17.060981 fstat(19, {st_dev=makedev(0, 21), st_ino=274586, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=33, st_blksize=4096, st_blocks=56, st_size=17371, st_atime=2012/03/09-11:27:19, st_mtime=2012/03/07-20:56:07, st_ctime=2012/03/09-11:27:19}) = 0
12:01:17.061043 fstat(19, {st_dev=makedev(0, 21), st_ino=274586, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=33, st_blksize=4096, st_blocks=56, st_size=17371, st_atime=2012/03/09-11:27:19, st_mtime=2012/03/07-20:56:07, st_ctime=2012/03/09-11:27:19}) = 0
12:01:17.061150 fstat(19, {st_dev=makedev(0, 21), st_ino=274586, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=33, st_blksize=4096, st_blocks=56, st_size=17371, st_atime=2012/03/09-11:27:19, st_mtime=2012/03/07-20:56:07, st_ctime=2012/03/09-11:27:19}) = 0
12:01:17.061208 fstat(19, {st_dev=makedev(0, 21), st_ino=274586, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=33, st_blksize=4096, st_blocks=56, st_size=17371, st_atime=2012/03/09-11:27:19, st_mtime=2012/03/07-20:56:07, st_ctime=2012/03/09-11:27:19}) = 0
12:01:17.061267 mmap(NULL, 17371, PROT_READ, MAP_SHARED, 19, 0) = 0x7f98588e9000
12:01:17.061837 brk(0x7f985affa000)     = 0x7f985affa000
12:01:17.062216 munmap(0x7f98588e9000, 17371) = 0
12:01:17.062278 close(19)               = 0
12:01:17.062407 chdir("/tmp")           = 0
12:01:17.062466 umask(022)              = 022
12:01:17.064079 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
12:01:17.064144 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0
12:01:17.064222 brk(0x7f985aefa000)     = 0x7f985aefa000
12:01:17.064357 brk(0x7f985adfa000)     = 0x7f985adfa000
12:01:17.064544 open("/dev/urandom", O_RDONLY) = 19
12:01:17.064613 read(19, "\xdc\xc5\xcd\xce\xb9\xab\x6c\x31", 8) = 8
12:01:17.064676 close(19)               = 0
12:01:17.064733 open("/dev/urandom", O_RDONLY) = 19
12:01:17.064792 read(19, "\x8c\x89\xd6\x0f\x1c\xc6\x94\x7f", 8) = 8
12:01:17.064850 close(19)               = 0
12:01:17.064905 open("/dev/urandom", O_RDONLY) = 19
12:01:17.064964 read(19, "\x79\x90\x68\x85\x50\xe4\xd3\xd3", 8) = 8
12:01:17.065019 close(19)               = 0
12:01:17.065073 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0
12:01:17.065193 writev(18, [{"HTTP/1.0 500 Internal Server Err"..., 255}, {"\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03", 10}, {"\x03\x00", 2}, {"\x00\x00\x00\x00\x00\x00\x00\x00", 8}], 4) = 275
12:01:17.065329 write(12, "127.0.0.1 - - [09/Mar/2012:12:01"..., 155) = 155
12:01:17.065395 shutdown(18, 1 /* send */) = 0
Contributor

tiyowan commented Mar 9, 2012

Need to check whether mysql package for ubuntu installs the mdb2 driver by default.

Contributor

narfbg commented Mar 10, 2012

It's not installed by default and this issue most likely isn't related to that package. Quoting it's description:

PHP PEAR module to provide a MySQL driver for MDB2
MDB2 provides a common API for all supported RDBMS. The main difference
to most other DB abstraction packages is that MDB2 goes much further
to ensure portability.

With MDB2 being a DB abstraction layer, the mysql driver can't possibly be depending on it.

leto commented Mar 10, 2012

This issue occured in a CI app that used the abstraction layer. It is not a bug in CI, closing.

@leto leto closed this Mar 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment