Trac doesn't see logged with basic authentication user - trac

After upgrading server to Debian Wheezy I get a strange problem: after login via basic auth (which works), trac opens, but looks like I not logged in into it, like anonymous. And I cannot create task, comment and so on.
After upgrade system I reinstall trac via standart python ./setup.py install, and nothing else.
How to fix this?

I dont't know what the cause of the problem, but after recreation new working dir, reconfiguring apache to this new dir, all works fine.

Related

I broke something with usermod

Debian Buster, KDE-Plasma
I'm a newbbie on Linux and Programming and I broke something installing Python 3.8 and I can't find a solution because I can;t really find what I did. I'm really interested on understand what's happenig, because I'd like to learn a lot about Linux, but I came from Windows, and user's accounts and permissions are still a mistery for me.
I have an idea about what I did wrong and I can describe the symptoms.
what I did wrong: I used something similar to "usermod -a -G root my_user_name" to give sudo permissions to my user account.
The symptoms are:
I lost my login-name in login screen under Plasma. No user account, neither user icon. Before breaking the system I only had to write password, now I also have to enter my user name too.
Login screen is from Gnome, switch-user screen is from Plasma.
On desktop everything is ok, but when I open Konsole, my user starting folder is /root, and root is starting in home/user folder. I'm completly lost.
Something has also changed on permissions, because though I'm not using SU account, managing some installations and some operations ask for used password, when I was used to enter Root password.
I've been searching internet and I can't find what I modified to get this behaviour.
I took a look at /etc/passwd andthe only thing that look strange is a line where my complete name is written and the starting folder is /bin/bash. If I change this into /home/user, things get worse, because konsole complies about a problem and cant be started. I also looked at etc/groups and can't figure out if something is wrong .
I don't want to touch any more before getting a clear idea about the situation, because system is full of apps and took me a lot of hours to configure it like this.
I fixed part of the problem. Now I have SDDM login screen. I reinstalled SDDM default theme (Breeze). Now I can switch between other themes, not a lot because many of the depends on Qtquick-controls 2.5 and I have 4.1x installed.
What still makes me pull my hairs is how the hell I've been able to swap user and root login folders with just an instruction (usermod)

Ngrok and npm explaination Wix API AuthO

Am working on a API with Wix, and ive been able to get everything working, But there is one eliment i cannot automate or account for because i have no idea how its working or understand it properly.
I have been following: https://dev.wix.com/api/rest/tutorials/create-your-wix-app
It advises me to use Ngrok and also Npm after downloading some sample skd.
WHen setting up the App, it asks for a Redirect URL (When users authorize your app, we’ll redirect them to this URL with a temporary authorization code.)
It also asks for: App URL (When users start to add your app from the Wix App Market, we’ll redirect them to this URL.)
What i cannot understand is how Ngrok allows and uses the urls in the tutorial
As there is no physical files for these calls?
https://<NGROK_STRING>.ngrok.io/login and https://<NGROK_STRING>.ngrok.io/signup
I peronsally thought it was just a URL it called and passed back the Auth code, So i created a PHP page that fetched the string behind code: in the url so it can email me or save to file,
But this just does not work.
(I have it working in ngrok and npm, but i cannot have these running every time a user wants to download the app and link into our system)
I cannot understand the use of npm and ngrok, am presuming there is some sort of handshake somewhere.
Is this the correct way, do i have to install these programs on the a dedicated server and have them running at all time incase someone installs the app?
Is it not possible to just have the AUth code sent to me so i can finish the setup, generate a refresh token and be done with all the ngrok and npm
I'm not sure if I understand you correctly. So I'm gonna explain NPM and NGROK quickly.
NPM = node package manager -
npm is simply a package manager, so you can use it if you like to. Especially with node.js you are most likely gonna be using it. But with PHP npm might be used in your development enviroment so for example PHPStorm to get the packages you need. So no direct connection to WIX.
NGROK -
Is used to redirect traffic from a semi-permanent ngrok URL to a likely dynamic IP like from your Computer. In my case I work on localhost, and NGROK just relays the calls from wix to my localhost where the application is running. This is needed, since stuff from the internet can not simply access a computer. That's what NGROK is for.
If you have a ready application, you should not need ngrok, aslong as you have it running on a server somewhere. "Just" replace your NGROK urls with the actual URLs of your server.
I hope this helped =)

unable to login into weblogic console

I'm weblogic newbie, trying to abandon it ASAP, but that's not possible for now, so I have to resolve this. Maybe following is completely normal and trivial. I don't know. Please advice.
I had working weblogic 12.1.3 on 2 PCs for months. But suddenly, I cannot log into admin console on neither of them. I enter username/pass from password store, and it's not accepted. While at the same time intellij idea successfully logs in and deploys app using same pass. OK, fair enough, we reset pass, using:
https://oracle-base.com/articles/11g/reset-the-adminserver-password-in-weblogic-11g-and-12c
and update password in intellij settings. Good. Intellij idea is in again, I cannot login. Nothing in logs, neither application, nor server logs.
I cannot login regardless if I start weblogic via intellij run configuration of from bash.
OK, lets try reinstall weblogic. No change.
Weblogic is up and running, app deployed to it, and is responsive. When accessing console URL, it gets printed, that app is being deployed, but I still cannot access it. Cleared caches/cooking etc. nothing. No logs, no error response. Nothing.
Responses to "failed"(?) login on urls j_security_check, console and console/ are http status 302 (moved temporarily). Not sure if it's ok or not, well say I'd expect 401/403, but maybe 302 is valid weblogic response for denied authentication. I don't know.
Any idea?
What you can do is to check web storage and try to clear it. But the most clear way is to use different browser. Or use your current browser in private mode. Also in firefox you can create different profile and use it for this specific purposo.

Apache Crash Dialog

I'm running XAMPP on my windows machine and experiencing a problem with Apache crashing a couple times a day. When it does, a dialog pops up and I have to manually tell windows to end the program. After I do that, XAMPP automatically starts it back up in a couple of seconds with no issues. When it crashes while I'm not home though, the server is down until I get back. So I have two questions:
Are periodic crashes something that should be expected, or is this indicative of another issue I should be trying to pinpoint?
If this is something I should just learn to deal with, is there a way to automatically restart httpd.exe when these issues occur, so I don't experience down time when I'm away from home?
You'd look into log files, especially the Apache access and error logs, to see what happened, when you are not at home. I've met some similar situation: I have a problematic PHP script hosted on my server, when someone visits the page, it leads to an Apache crash.
I'd suggest you do the investigation as follows:
Search the timestamp of recent Apache restart.
Check the Apache access log to see whether there are some scripts have been accessed.
Manually access these scripts in your browser (to see if Apache will crash again)
You'd better check the PHP error log as well.
If there is really nothing suspicious, you can try WAMP bundle alternatively, which is also a very popular PHP development environment and it is stable.
Although there aren't many cases in which one should "expect" periodic crashes, in this case you are better of reconsidering your setup. From the frontpage of the XAMPP site:
XAMPP is the most popular PHP development environment
Sure, you can use it as "production" server, but XAMPP isn't build for hosting websites, it is intended as development server, so you don't have to manually setup Apache, PHP and MySQL on you dev machine. If you actually want to run your website for the public, setup Apache/IIS, MySQL and PHP manually, those products on there own are made for running in production. Or you can consider getting some cheap shared hosting somewhere, so you don't need to setup anything.

Trying out WHM/cPanel

I have a live site running on cPanel. I would like to write some WHM plugins to extend WHM functionality. But the problem I am facing is I don't seem to find a way to get cPanel as a developer version - which I can run on a development environment, test it and then install it to production.
Any idea anyone?
There isn't a developer cPanel available, you could try having a test server/environment with cPanel installed, making the plugin etc and just testing live on that.
you could always open a support ticket with cPanel and see what the have to offer, they might have something which would work for you, but just isn't publicly displayed as such.