Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can install but error keep popping up. #384

Closed
akkaranant opened this issue May 5, 2014 · 27 comments
Closed

I can install but error keep popping up. #384

akkaranant opened this issue May 5, 2014 · 27 comments

Comments

@akkaranant
Copy link

I did freshly install using Amazon Linux AMI to ensure that I do it from scratch.

Installation was successfully. But when I login or apply changes. this kind of error popup. The system seem to work but the side menu "Dashboard" are missing.
I don't know how to fix it please help.

'NoneType' object has no attribute 'splitlines'
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ajenti/plugins/main/main.py", line 158, in handle_message
self.ui.dispatch_event(update['uid'], update['event'], update['params'])
File "/usr/lib/python2.6/site-packages/ajenti/ui/init.py", line 72, in dispatch_event
self.root.dispatch_event(uid, event, params)
File "/usr/lib/python2.6/site-packages/ajenti/ui/element.py", line 382, in dispatch_event
if child.dispatch_event(uid, event, params):
File "/usr/lib/python2.6/site-packages/ajenti/ui/element.py", line 382, in dispatch_event
if child.dispatch_event(uid, event, params):
File "/usr/lib/python2.6/site-packages/ajenti/ui/element.py", line 388, in dispatch_event
getattr(self, k)(**(params or {}))
File "/var/lib/ajenti/plugins/vh/main.py", line 251, in save
self.manager.update_configuration()
File "/var/lib/ajenti/plugins/vh/api.py", line 277, in update_configuration
self.__handle_exceptions(greenlets)
File "/var/lib/ajenti/plugins/vh/api.py", line 271, in __handle_exceptions
raise g.exception
AttributeError: 'NoneType' object has no attribute 'splitlines'

@Eugeny
Copy link
Member

Eugeny commented May 5, 2014

Please send your /etc/ajenti/vh.json file to e@ajenti.org (remove any sensitive data)

@akkaranant
Copy link
Author

Here is my "vh.json" file with my error screen.
I also provide your my SSH with .pem file in case you can check it for
more details
Don't worry this is test server.
Thank you so much for your help.

On 5/6/14, 12:14 AM, Eugene Pankov wrote:

Please send your /etc/ajenti/vh.json file to e@ajenti.org
mailto:e@ajenti.org (remove any sensitive data)


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42212015.

ssh -i "/Works/Current Projects/AWS/test.pem" ec2-user@54.254.98.226

@Eugeny
Copy link
Member

Eugeny commented May 6, 2014

It looks like you didn't attach the files. Please send them directly to e@ajenti.org (don't just reply to the notification because Github will delete the attachments).

@akkaranant
Copy link
Author

-------- Original Message --------
Subject: Re: [ajenti] I can install but error keep popping up. (#384)
Date: Tue, 06 May 2014 13:24:06 +0700
From: Akkaranant Treewatanawong akkaranant@indigointer.com
To: Eugeny/ajenti
reply@reply.github.com

Here is my "vh.json" file with my error screen.
I also provide your my SSH with .pem file in case you can check it for
more details
Don't worry this is test server.
Thank you so much for your help.

On 5/6/14, 12:14 AM, Eugene Pankov wrote:

Please send your /etc/ajenti/vh.json file to e@ajenti.org
mailto:e@ajenti.org (remove any sensitive data)


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42212015.

ssh -i "/Works/Current Projects/AWS/test.pem" ec2-user@54.254.98.226

@Eugeny
Copy link
Member

Eugeny commented May 6, 2014

Your machine runs AMI image, which isn't currently a detectable platform in Ajenti. I have manually patched your Ajenti installation to add the AMI detection, and it will be also added in the next release. Now both package manager and website configuration work well.

@Eugeny Eugeny closed this as completed May 6, 2014
@akkaranant
Copy link
Author

Does it mean that I cannot do Updating Ajenti because it may overwrite
what you have manually patched for me.

Please guide.

On 5/7/14, 1:02 AM, Eugene Pankov wrote:y

Your machine runs AMI image, which isn't currently a detectable
platform in Ajenti. I have manually patched your Ajenti installation
to add the AMI detection, and it will be also added in the next
release. Now both package manager and website configuration work well.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42337162.

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

Next update will include this patch so you don't need to worry about it.

@akkaranant
Copy link
Author

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen always
popped up. (see attached)
I don't think the Websites are created successful. When I save different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry about it.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem" ec2-user@122.248.209.159

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

I have noticed that your PHPFPM initscript is called "php-fpm-5.5", not
"php-fpm" as usual. Did you change this yourself? Where did you get the
PHP-FPM package from? Any third-party repos other than EPEL?

On Sat, May 10, 2014 at 11:18 AM, akkaranant notifications@github.comwrote:

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen always
popped up. (see attached)
I don't think the Websites are created successful. When I save different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry about it.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem" ec2-user@122.248.209.159


Reply to this email directly or view it on GitHubhttps://github.com/Eugeny/ajenti/issues/384#issuecomment-42735975
.

@akkaranant
Copy link
Author

Yes not from EPEL.
http://pkgs.org/search/?query=php-fpm&type=smart

All package I cannot find I will find it from pkgs.org
because I don't know how to install from
https://fedoraproject.org/wiki/EPEL.

Please guide.

On 5/10/14, 3:24 PM, Eugene Pankov wrote:

I have noticed that your PHPFPM initscript is called "php-fpm-5.5", not
"php-fpm" as usual. Did you change this yourself? Where did you get the
PHP-FPM package from? Any third-party repos other than EPEL?

On Sat, May 10, 2014 at 11:18 AM, akkaranant
notifications@github.comwrote:

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real
production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen always
popped up. (see attached)
I don't think the Websites are created successful. When I save
different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry
about it.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem"
ec2-user@122.248.209.159


Reply to this email directly or view it on
GitHubhttps://github.com/Eugeny/ajenti/issues/384#issuecomment-42735975
.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736073.

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

PHP-FPM package is available in CentOS official repos
http://mirror.centos.org/centos/6/os/x86_64/Packages/php-fpm-5.3.3-26.el6.x86_64.rpm

On Sat, May 10, 2014 at 12:03 PM, akkaranant notifications@github.comwrote:

Yes not from EPEL.
http://pkgs.org/search/?query=php-fpm&type=smart

All package I cannot find I will find it from pkgs.org
because I don't know how to install from
https://fedoraproject.org/wiki/EPEL.

Please guide.

On 5/10/14, 3:24 PM, Eugene Pankov wrote:

I have noticed that your PHPFPM initscript is called "php-fpm-5.5", not
"php-fpm" as usual. Did you change this yourself? Where did you get the
PHP-FPM package from? Any third-party repos other than EPEL?

On Sat, May 10, 2014 at 11:18 AM, akkaranant
notifications@github.comwrote:

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real
production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen always
popped up. (see attached)
I don't think the Websites are created successful. When I save
different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry
about it.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem"
ec2-user@122.248.209.159


Reply to this email directly or view it on
GitHub<https://github.com/Eugeny/ajenti/issues/384#issuecomment-42735975

.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736073.


Reply to this email directly or view it on GitHubhttps://github.com/Eugeny/ajenti/issues/384#issuecomment-42736683
.

@akkaranant
Copy link
Author

ok let me try install it now. okay?

On 5/10/14, 4:07 PM, Eugene Pankov wrote:

PHP-FPM package is available in CentOS official repos
http://mirror.centos.org/centos/6/os/x86_64/Packages/php-fpm-5.3.3-26.el6.x86_64.rpm

On Sat, May 10, 2014 at 12:03 PM, akkaranant
notifications@github.comwrote:

Yes not from EPEL.
http://pkgs.org/search/?query=php-fpm&type=smart

All package I cannot find I will find it from pkgs.org
because I don't know how to install from
https://fedoraproject.org/wiki/EPEL.

Please guide.

On 5/10/14, 3:24 PM, Eugene Pankov wrote:

I have noticed that your PHPFPM initscript is called
"php-fpm-5.5", not
"php-fpm" as usual. Did you change this yourself? Where did you
get the
PHP-FPM package from? Any third-party repos other than EPEL?

On Sat, May 10, 2014 at 11:18 AM, akkaranant
notifications@github.comwrote:

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real
production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done
anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen
always
popped up. (see attached)
I don't think the Websites are created successful. When I save
different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry
about it.


Reply to this email directly or view it on GitHub

https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem"
ec2-user@122.248.209.159


Reply to this email directly or view it on

GitHub<https://github.com/Eugeny/ajenti/issues/384#issuecomment-42735975

.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736073.


Reply to this email directly or view it on
GitHubhttps://github.com/Eugeny/ajenti/issues/384#issuecomment-42736683
.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736746.

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

Yes, after that website configuration should work well.

@justin8
Copy link

justin8 commented May 10, 2014

@akkaranant Change your password on that site straight away, and possibly consider it compromised. Anyone who has access to this github issue (i.e. anyone who has the internet) can currently get root access to your server.

@akkaranant
Copy link
Author

okay thanks

On 5/10/14, 4:12 PM, Justin Dray wrote:

@akkaranant https://github.com/akkaranant Change your password on
that site straight away, and possibly consider it compromised. Anyone
who has access to this github issue (i.e. anyone who has the internet)
can currently get root access to your server.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736836.

@akkaranant
Copy link
Author

I try to install this php-fpm-5.3.3-26.el6.x86_64.rpm
but it require me to install php-common-5.3.3-26.el6 first.

But my system already has php55-common 5.5.11-1.71.amzn1.
What I should do ? Please guide

On 5/10/14, 4:07 PM, Eugene Pankov wrote:

PHP-FPM package is available in CentOS official repos
http://mirror.centos.org/centos/6/os/x86_64/Packages/php-fpm-5.3.3-26.el6.x86_64.rpm

On Sat, May 10, 2014 at 12:03 PM, akkaranant
notifications@github.comwrote:

Yes not from EPEL.
http://pkgs.org/search/?query=php-fpm&type=smart

All package I cannot find I will find it from pkgs.org
because I don't know how to install from
https://fedoraproject.org/wiki/EPEL.

Please guide.

On 5/10/14, 3:24 PM, Eugene Pankov wrote:

I have noticed that your PHPFPM initscript is called
"php-fpm-5.5", not
"php-fpm" as usual. Did you change this yourself? Where did you
get the
PHP-FPM package from? Any third-party repos other than EPEL?

On Sat, May 10, 2014 at 11:18 AM, akkaranant
notifications@github.comwrote:

Hi

Happy to know that the next update will be compatible with mine.

But the current one that you've manually fixed for me.
There are still some errors, making me not sure in my real
production site.

You may visit my site at: https://122.248.209.159:8000 (user:root &
pass:admin)
This is the recent one you manually patched. I've not done
anything yet
except setting some new websites.
http://test1.indigoapp.com
http://test2.indigoapp.com &

The symptom is:

When want to create/edit/apply changes in Websites, error screen
always
popped up. (see attached)
I don't think the Websites are created successful. When I save
different
index.html file in folder /srv/test1 and /srv/test2.
But then I try browsing http://test1.indigoapp.com/index.html or
http://test2.indigoapp.com/index.html.
I don't see the file.

Moreover, FTP seams not working too. I put the file by using Ajenti
Filemanager.

Please help. I've attached PEM file and SSH for you as usual.

Thanks,
Akkaranant

On 5/10/14, 1:03 PM, Eugene Pankov wrote:

Next update will include this patch so you don't need to worry
about it.


Reply to this email directly or view it on GitHub

https://github.com/Eugeny/ajenti/issues/384#issuecomment-42732789.

ssh -i "/Works/Current Projects/AWS/Testing.pem"
ec2-user@122.248.209.159


Reply to this email directly or view it on

GitHub<https://github.com/Eugeny/ajenti/issues/384#issuecomment-42735975

.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736073.


Reply to this email directly or view it on
GitHubhttps://github.com/Eugeny/ajenti/issues/384#issuecomment-42736683
.


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42736746.

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

...just remove the package installed from pkgs.org from your system and then run yum install php-fpm

@akkaranant
Copy link
Author

it shows error as follows:

Error: php55-common conflicts with php-common-5.3.28-1.5.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

On 5/10/14, 4:26 PM, Eugene Pankov wrote:

...just remove the package installed from pkgs.org from your system
and then run |yum install php-fpm|


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42737099.

@akkaranant
Copy link
Author

what should I do ??? Please guide

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

You should remove all dependent packages you got from pkgs.org as well...

@akkaranant
Copy link
Author

ok I am removing all of it. After that, what should I do ?

@Eugeny
Copy link
Member

Eugeny commented May 10, 2014

After that you should install php-fpm from official CentOS repo, using Yum

@akkaranant
Copy link
Author

I remove all from pkgs.org which is

vsftpd
python-lxml
python-meld3

after that I can install "yum install php-fpm"
but now the site cannot run and error shows

Server error

Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ajenti/routing.py", line 54, in handle
File "/usr/lib/python2.6/site-packages/ajenti/api/http.py", line 60, in handle
File "/usr/lib/python2.6/site-packages/ajenti/plugins/main/main.py", line 40, in handle_index
File "/usr/lib/python2.6/site-packages/ajenti/api/init.py", line 317, in open_content
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/site-packages/ajenti/plugins/main/content/static/index.html'

@akkaranant
Copy link
Author

Do I need to reinstall

vsftpd
python-lxml
python-meld3

from CentOS repo again ?

@akkaranant
Copy link
Author

It's not working.

Can I just reinstalled system again?
Please share how to do manual patch.

After that, I will use only centos repo.
thanks so much

@akkaranant
Copy link
Author

After remove all PKGS.ORG it also remove ajenti too.

Do I need to reinstall ajenti again?
If so, how to manually patch.

thanks.

@akkaranant
Copy link
Author

Seeming that you don't want to help anymore.
I wish your new update will support my server.
thank for help.

On 5/10/14, 5:13 PM, Eugene Pankov wrote:

After that you should install php-fpm from official CentOS repo, using Yum


Reply to this email directly or view it on GitHub
https://github.com/Eugeny/ajenti/issues/384#issuecomment-42737998.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants