Error running in AWS Elastic Beanstalk

Having trouble installing serendipity?
Post Reply
FishNiX
Regular
Posts: 40
Joined: Sun Sep 02, 2007 6:32 pm

Error running in AWS Elastic Beanstalk

Post by FishNiX »

serendipity_admin.php was the easiest place to grab the error.

This was from 1.7 alpha in the master branch. A similar failure occurs with the 1.6 branch.

== TESTING ERROR MODE ==

Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: session_start(): open(/var/lib/php/session/sess_06kqcv177t9hnbanqh3he8fbu7, O_RDWR) failed: Permission denied (13)' in /var/www/html/include/compat.inc.php on line 106

ErrorException: Serendipity error: session_start(): open(/var/lib/php/session/sess_06kqcv177t9hnbanqh3he8fbu7, O_RDWR) failed: Permission denied (13) in /var/www/html/include/compat.inc.php on line 106

Call Stack:
0.0001 630664 1. {main}() /var/www/html/serendipity_admin.php:0
0.6072 1924952 2. serendipity_session_destroy() /var/www/html/serendipity_admin.php:33
0.6072 1924784 3. session_start() /var/www/html/include/functions_config.inc.php:364
0.6072 1925688 4. errorToExceptionHandler() /var/www/html/include/functions_config.inc.php:364

== TESTING ERROR MODE ==

Fatal error: Uncaught exception 'ErrorException' with message 'Serendipity error: Unknown: open(/var/lib/php/session/sess_06kqcv177t9hnbanqh3he8fbu7, O_RDWR) failed: Permission denied (13)' in /var/www/html/include/compat.inc.php on line 106

ErrorException: Serendipity error: Unknown: open(/var/lib/php/session/sess_06kqcv177t9hnbanqh3he8fbu7, O_RDWR) failed: Permission denied (13) in /var/www/html/include/compat.inc.php on line 106

Call Stack:
0.6076 1845080 1. errorToExceptionHandler() /var/www/html/include/compat.inc.php:0

ElasticBeanstalk is a PaaS solution, so I dont believe there is any way to change those permissions. I've also seen some conflicting information regarding php5.3 and support for sessions.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Error running in AWS Elastic Beanstalk

Post by Timbalu »

https://forums.aws.amazon.com/thread.js ... 6&tstart=0
You might have found this by yourself... ;-)
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
FishNiX
Regular
Posts: 40
Joined: Sun Sep 02, 2007 6:32 pm

Re: Error running in AWS Elastic Beanstalk

Post by FishNiX »

Ah thanks!

In fact, I was working on this earlier yesterday than that was posted (I opened a GitHub issue, but I think bug reports are supposed to still come here to the forum).

Cheers!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Error running in AWS Elastic Beanstalk

Post by Timbalu »

FishNiX wrote:..., but I think bug reports are supposed to still come here to the forum).
Yes, but as you can see, that is not a matter of Serendipity, I assume.
If you get any more experiences on that plattform, please post them here, as this might be interesting for others too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
FishNiX
Regular
Posts: 40
Joined: Sun Sep 02, 2007 6:32 pm

Re: Error running in AWS Elastic Beanstalk

Post by FishNiX »

Yes, understood that it's not an s9y bug (now).

This was also my first use of php 5.3, and googling around for php 5.3 + session problems shows some information that sessions are deprecated in 5.3. I thought perhaps it was an issue there (which is why I also tried the 1.7alpha code).

I guess this is the fate of early adopters ;)

Thanks again
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Error running in AWS Elastic Beanstalk

Post by Timbalu »

Yes, session_register() functions are deprecated, but still supported. The new is to use the $_SESSION superglobal instead. S9y is up2date.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply