From raphael.jacquot at univ-grenoble-alpes.fr Mon Sep 20 19:45:51 2021 From: raphael.jacquot at univ-grenoble-alpes.fr (Raphael Jacquot) Date: Mon, 20 Sep 2021 21:45:51 +0200 Subject: pyramid related questions Message-ID: Hi: I am trying to dockerize a pyramid app, and have a million questions, starting with the following: * how do I specify the .ini file with all the configuration variables that are usually passed to pserve ? * I can't seem to get anything logged. print("starting app", file=sys.stdout, flush=True) doesn't even show anything. what am I doing wrong ? Sincerely Rapha?l From artem.konev at nginx.com Wed Sep 22 11:23:41 2021 From: artem.konev at nginx.com (Artem Konev) Date: Wed, 22 Sep 2021 12:23:41 +0100 Subject: pyramid related questions In-Reply-To: References: Message-ID: <0335E511-8B00-417A-8866-50B86CAE0980@nginx.com> Hi, Raphael, Please take a look at the updated howto: https://unit.nginx.org/howto/pyramid/#pyramid-ini-based ? Best regards, Artem Konev, Sr Technical Writer > On 20 Sep 2021, at 20:45, Raphael Jacquot wrote: > > Hi: > > I am trying to dockerize a pyramid app, and have a million questions, > starting with the following: > > * how do I specify the .ini file with all the configuration variables > that are usually passed to pserve ? > > * I can't seem to get anything logged. > print("starting app", file=sys.stdout, flush=True) > doesn't even show anything. > what am I doing wrong ? > > Sincerely > > Rapha?l > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit From p.tkatchenko at bimp.fr Thu Sep 30 17:19:29 2021 From: p.tkatchenko at bimp.fr (Peter TKATCHENKO) Date: Thu, 30 Sep 2021 19:19:29 +0200 Subject: Permission denied in pod Message-ID: Hello, I'm playing with the official docker image of unit 1.25.0-php8.0. I'm trying to start a simple php app from /www where I mounted my GCP Bucket using gcsfuse as follows (101 is the uid/gid of 'unit' user/group) : ??????????? postStart: ????????????? exec: ??????????????? command: ['sh', '-c', 'gcsfuse -o nonempty --dir-mode 777 --file-mode 777 --uid 101 --gid 101 --implicit-dirs testt-01 /www'] The bucket is correctly mounted, but unit does not work, showing the permission error on workers startup: root realpath(/www/) failed (13: Permission denied) The directory exists and the permissions are correct: ??? 1 0 drwxrwxrwx?? 1 unit unit??? 0 Sep 30 17:05 www The only file inside the directory has the correct permissions too: ??? 2 1 -rwxrwxrwx 1 unit unit 170 Sep 30 17:04 index.php If I unmount the bucket, create the same file locally and restart unit - everything works as expected. Where am I wrong? Best regards, *Peter TKATCHENKO | Ingenieur Informatique* peter at bimp.fr 150 all?e des Fr?nes - 69760 LIMONEST BIMP Groupe LOGO *Retrouvez-nous sur_www.bimp.fr _* *|* _*www.bimp-pro.fr *_ *|* _*www.bimp-education.fr *_ Ce message et ?ventuellement les pi?ces jointes, sont exclusivement transmis ? l'usage de leur destinataire et leur contenu est strictement confidentiel. Une quelconque copie, retransmission, diffusion ou autre usage, ainsi que toute utilisation par des personnes physiques ou morales ou entit?s autres que le destinataire sont formellement interdits. Si vous recevez ce message par erreur, merci de le d?truire et d'en avertir imm?diatement l'exp?diteur. L'Internet ne permettant pas d'assurer l'int?grit? de ce message, l'exp?diteur d?cline toute responsabilit? au cas o? il aurait ?t? intercept? ou modifi? par quiconque. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pkhklijfecjmddeo.png Type: image/png Size: 9948 bytes Desc: not available URL: From p.tkatchenko at bimp.fr Thu Sep 30 19:51:01 2021 From: p.tkatchenko at bimp.fr (Peter TKATCHENKO) Date: Thu, 30 Sep 2021 21:51:01 +0200 Subject: Permission denied in pod In-Reply-To: <20210930172003.8728B497A49@mail.nginx.com> References: <20210930172003.8728B497A49@mail.nginx.com> Message-ID: Never mind, the mount option was missed... *Peter TKATCHENKO | Ingenieur Informatique* peter at bimp.fr 150 all?e des Fr?nes - 69760 LIMONEST BIMP Groupe LOGO *Retrouvez-nous sur_www.bimp.fr _* *|* _*www.bimp-pro.fr *_ *|* _*www.bimp-education.fr *_ Ce message et ?ventuellement les pi?ces jointes, sont exclusivement transmis ? l'usage de leur destinataire et leur contenu est strictement confidentiel. Une quelconque copie, retransmission, diffusion ou autre usage, ainsi que toute utilisation par des personnes physiques ou morales ou entit?s autres que le destinataire sont formellement interdits. Si vous recevez ce message par erreur, merci de le d?truire et d'en avertir imm?diatement l'exp?diteur. L'Internet ne permettant pas d'assurer l'int?grit? de ce message, l'exp?diteur d?cline toute responsabilit? au cas o? il aurait ?t? intercept? ou modifi? par quiconque. On 30/09/2021 17:19, Peter TKATCHENKO wrote: > > Hello, > > I'm playing with the official docker image of unit 1.25.0-php8.0. > > I'm trying to start a simple php app from /www where I mounted my GCP > Bucket using gcsfuse as follows (101 is the uid/gid of 'unit' > user/group) : > > ??????????? postStart: > ????????????? exec: > ??????????????? command: ['sh', '-c', 'gcsfuse -o nonempty --dir-mode > 777 --file-mode 777 --uid 101 --gid 101 --implicit-dirs testt-01 /www'] > > The bucket is correctly mounted, but unit does not work, showing the > permission error on workers startup: > > root realpath(/www/) failed (13: Permission denied) > > The directory exists and the permissions are correct: > > ??? 1 0 drwxrwxrwx?? 1 unit unit??? 0 Sep 30 17:05 www > > The only file inside the directory has the correct permissions too: > > ??? 2 1 -rwxrwxrwx 1 unit unit 170 Sep 30 17:04 index.php > > If I unmount the bucket, create the same file locally and restart unit > - everything works as expected. > > Where am I wrong? > > Best regards, > > *Peter TKATCHENKO | Ingenieur Informatique* > > peter at bimp.fr > > 150 all?e des Fr?nes - 69760 LIMONEST > > BIMP Groupe LOGO > > *Retrouvez-nous sur_www.bimp.fr _* *|* > _*www.bimp-pro.fr *_ *|* > _*www.bimp-education.fr *_ > > Ce message et ?ventuellement les pi?ces jointes, sont exclusivement > transmis ? l'usage de leur destinataire et leur contenu est > strictement confidentiel. Une quelconque copie, retransmission, > diffusion ou autre usage, ainsi que toute utilisation par des > personnes physiques ou morales ou entit?s autres que le destinataire > sont formellement interdits. Si vous recevez ce message par erreur, > merci de le d?truire et d'en avertir imm?diatement l'exp?diteur. > L'Internet ne permettant pas d'assurer l'int?grit? de ce message, > l'exp?diteur d?cline toute responsabilit? au cas o? il aurait ?t? > intercept? ou modifi? par quiconque. > > > _______________________________________________ > unit mailing list > unit at nginx.org > https://mailman.nginx.org/mailman/listinfo/unit -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nhgejofkiojaccbp.png Type: image/png Size: 9948 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pkhklijfecjmddeo.png Type: image/png Size: 9948 bytes Desc: not available URL: