I am following the guestbook example for kubernetes on gce:
https://cloud.google.com/container-engine/docs/tutorials/guestbook
I am able to complete up to step 4, exactly as it is described in the tutorial (all outputs match), however when I try to initialize the guestbook web server pods with
create -f $CONFIG_DIR/guestbook-controller.json
I get the following output with when using kubectl get pods
guestbook-controller-2mjqj Pending About a minute php-redis
API error (500): Cannot start container containerID: [8] System error: open /sys/fs/cgroup/memory/containerID/memory.memsw.limit_in_bytes: permission denied
I haven't been able to find anything related to this, any help would be greatly appreciated. Thanks in advance.
This was fixed last week in Kube:
https://github.com/GoogleCloudPlatform/kubernetes/issues/8814
Related
I have been trying to commit to my local git repository but i always receive the above error. I checked online and all solutions are for linux machines(ie they involve using 'sudo') but I am running windows 7. How can i fix the error? thanks in advance :)
fatal: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied
I would first try a simple reboot, followed by your Git command right after login.
That way, I would minimize the possibility of another process keeping a handle to .git/logs/HEAD, preventing Git to access/update that file.
im trying to install Sylius with composer for an e commerce project however i just cant get it done..i follow the docs but i always get an other error when i fix one.
already fixed some errors eg. incl extension exception, paypal bundle renaming issues on git and memory size problem.
Now where im stuck:
When i fill the parameters with the interactive script
if i give any password for the database i get this:
Doctrine\DBAL\Driver\PDOException
Acces denied for user 'root'#localhost
if i dont give password then i get this:
Doctrine\DBAL\Driver\PDOException
SQLSTATE[HY000]Unknown database databasename_dev (it appends _dev prefix)
then in both cases it ends up with this: RunTimeException
An error occured when executing the ""cache:clear --no-warmup"" command
and the proccess is terminated with this exception..
i tried if i could continue with the $ cd acme
$ php app/console sylius:install commands but:
if i gave a password then get acces denied Doctrine\DBAL\Exception\ConnectionException
if didnt then Doctrine\DBAL\Driver\PDOException
SQLSTATE[HY000]Unknown database databasename_dev
i created the database manually which seems to solve the problem however get this: General error: 1007 cant create database databasename_dev; database exists
(i dont think this solution is the right one)
but after this it doesnt terminate yet and creates the database schema and then after some installation it terminates with this:
RuntimeException
The source file "C:\Users\user\acme\app/../web/bundles/cmfcreate/vendor/create/themes/midgard-tags/tags.css" does not exists
i checked the page if it may useable but got twig exception that currency not found and many components are missing from the page..
What's your workspace?
If you work on Windows with WAMP I'll give you some things to check :
set the database port to : 3306
create a new user for the database, juste for your sylius project
when you run create-project commande, in databaseport write : localhost
I hope it helps you.
I'm trying to get my first (PHP) application working. It works OK in Google App Engine Launcher, but when I try to deploy it I get the following message:
2014-08-19 15:37:58 Running command: "['C:\\Program Files\\Python\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=by#onetel.com', '--passin', 'update', 'C:\\Documents and Settings\\Barry\\My Documents\\test\\high-winter-668']"
03:38 PM Application: high-winter-668; version: 1
03:38 PM Host: appengine.google.com
03:38 PM
Starting update of app: high-winter-668, version: 1
03:38 PM Getting current resource limits.
Password for b...#...com: Invalid username or password.
2014-08-19 15:38:08,967 ERROR appcfg.py:2411 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
I can login OK to the application I created at appengine.google.com
and I am using the right/same email address and password.
I can see other topics where server/local time difference is the issue. My local PC time is the same as the time in the above error msg.
What have I got wrong?
Also:
I tried using appcfg.py on the command line and ran into another issue:
It errored saying I didnt have a "high-winter-668.yaml" file. So I changed the name of my "app.yaml" to "high-winter-668.yaml" - it then complained that I didnt specify a 'module" in the yaml file.
Meantime Google App Engine Launcher errored say I didnt have an "app.yaml" file.
Are they written by different companies!!??
Well, in floundering around I've found an answer.
I went here:
https://www.google.com/settings/security/lesssecureapps
and selected "Enable" less secure devices and apps to access your data.
When I tried to Deploy - it worked.
THIS WILL HAPPEN IF YOU HAVE 2-FACTOR authentication activated. The solution in that case is to go to the application-specific passwords page and generate a new password. You can name it "Google app engine" or the like and you'll get a long alpha string to use as the password when deploying.
If you use Google App Engine Launcher and have 2-factor in use you are guaranteed to run into this error on deploy (current version 1.9.17), and it has been that way for at least 1.5 years. It seems like the app engine launcher folks could trap that error and generate a helpful message but instead maybe you'll find it on stackoverflow :)
This happenned to me because I forgot the version line in app.yaml:
version: 1
I am trying to make vtiger work with asterisk 1.6 (freepbx server). I have managed to get to the point where I can connect to the asterisk manager interface (AMI) and write to it. But for some weird reason, the originate would not work. I am using -
Action: Originate
Channel: SIP/2000
Exten: 1000
Context: from-internal
Priority: 1
Callerid: 2000
Async: yes
I tried reading the responses from AMI after making a direct call and it always had a random number after the channel. For example -
Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1000-0000000c
Destination: SIP/2000-0000000d
CallerIDNum: 1000
CallerIDName: 1000
UniqueID: 1359790601.12
DestUniqueID: 1359790601.13
Dialstring: 2000
Can this be an issue or am I missing anything here? Any pointers would be most helpful. Would be happy to provide any details.
Random number added,becuase can be more then one channel to same extension.
Cordinly to info you provided it do call. No way determine using this info why it "not working" for you, sorry.
Use
asterisk -rvvv
to check what happens on asterisk. Also will be nice read some book like "Aterisk the future of telephony"(or hire consultant able determine what you dooing wrong).
I managed to fix the issue, so here is how the debugging went -
started asterisk CLI using asterisk -rvvv
used a CLI originate command
channel originate SIP/1000 extension 2000#from-internal
step 2 showed an error on the extension being busy (error 486 to be specific).
googled error to find out that the extension 1000 is being used by a hard phone and that can cause issues
changed the manager extension to 2000 in manager.conf and tried making the call using
channel originate SIP/2000 extension 1000#from-internal
step 5 worked, but calls from PHP still failed. added debugging to find that the AMI was returning a permission denied
found out that from 1.6 onwards you need to have originate in the manager.conf read/write options
Now it works perfectly fine. Hope this helps someone, though I think this case might be a very personalized issue.
I am using php-ldap to manage posix accounts on a linux machine. I am able to search the database in php. And I am able to add users via the command line "ldapadd". However, when I try to add a user via PHP ldap_add, I get an "Object class violation" error (errno 65).
I have tried everything I can think of, but the error has not changed. I have even looked to see if there is an alternative to php-ldap, but have not found one.
The problem is when I look up that error in the general LDAP guide, it says "This error is returned with the entry to be added or the entry as modified violates the object class schema rules. Normally additional information is returned the error detailing the violation." And then it lists 8 possible causes.
I need this more in depth error, but cannot find it. ldap_error was also no help. Any ideas how to dig deaper here?
I figured out how to dig deeper. I am using Ubuntu which was dumping logs to /var/log/{debug,syslog}
In order to get more info I had to increase the log level to 424 in /etc/ldap/slapd.d/cn=config.ldif
Then I was able to see the error in the logs which told me what I was doing wrong... using a dc attribute with an inetOrgPerson objectClass.
Thanks.
Object class violation always means the object you created violated the expectations of the schema.
slapd provides a metric ton of logging if you simply set the debug level to some arbitarily high number.
PosixAccount (the class that is needed for Linux users) has some mandatory attributes. You must provide in the same operation the:
uid
uidNumber
gidNumber
homeDirectory
Perhaps in one approach you are, one you are not?
A comment under ldap_error documentation says that to obtain additional info you can call this:
ldap_get_option($conn, LDAP_OPT_DIAGNOSTIC_MESSAGE, $err);
// $err now contains the additional info
We had the same problems, so we used the following bash command:
sudo tail -f syslog |grep slapd
So you will have an real time window to show you the detail reactions on your LDAP manipulations.