Debian Configuration :: PIP Installation Fails For MySQL Connector Python
Apr 6, 2016
I got assigned to a project, where the installation is done over ansible. As I'm new in linux, python, django, ansible I wanted to try this out on a empty linux debian.
Code: Select alluname -a
Linux DebianABC 3.16.0-4 amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86 64 Gnu/Linux
When I now run my ansible playbook it tries to install mysql and suddenly I get an error:
Code: Select all:stderr: DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Could not find a version that satisfies the requirement mysql-connector-python==1.0.12 (from -r /home/abc/abcTest/requirements.pip (line 36)) (from versions: )
No matching distribution found for mysql-connector-python==1.0.12 (from -r /home/abc/abcTest/requirements.pip (line 36))
I use ubuntu lucid lynx, LAMP (mysql 5.1 and last php) and tried to install the package from mysql web page (mysql-connector-odbc-5.1.7-linux-glibc2.3-x86-32bit.tar.gz) through alien. Terminal output is as follows:p { margin-bottom: 0.21cm; }
sudo alien -d -c -k -i mysql-connector-odbc-5.1.7-linux-glibc2.3-x86-32bit.tar dpkg --no-force-overwrite -i mysql-connector-odbc_5.1.7-1_all.deb (Lendo banco de dados ... 147517 arquivos e diretios atualmente instalados).
I installed Tomcat (apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples) and it runs without problems.
I installed MySQL (apt-get install mysql-server) and it seems to run without problems too.
I changed the default JRE (update-java-alternatives -s java-6-sun).
The weird thing is - if I put the connector-jar into my web application (WEB-INF/lib), the connection works. If I put the connector-jar into usr/share/java, it does not work. If I write the jar location into the CLASSPATH and try "java com.mysql.jdbc.Driver", I get a NoSuchMethodError:Main, which means, that the jar is found?!
I want to ask how i set Linux class path for mail.jar and mysql-connector.jar. I have set the class path for java with the command.
Code:
when i do java -version it's work fine.
Also if i want to know that what shell i am using how can i find it.Also what is the command for showing class path variables or how can i see my JAVA_HOME class path.Means after setting the class path for above two files how can i see that these files have added.
When i write echo $CLASSPATH or echo $JAVA_HOME it shows nothing no error but again shows the prompt.
One thing more i want to run a java program on Linux it is in a package (named asteriskproject). It consist of 10 java files. I have run this program on windows using netbeans IDE.For this program i need to set my Linux class path for the above mentioned files, and this is my first time that i am running any program on Linux. So i want to ask how can i run my program. Simply put this asteriskproject directory in any folder and run the main file using javac. Is it right way to run the program that consist of package ?
I've been installing multiple versions of ubunutu over years and now I better understand why I faced always problems with wifi configuration on these different baselines : Debian root of course.
Now on Debian 7.4 : The Broadcom BCM4313 driver is not loaded by default (not free product) for my wifi card. This is stated thru the UNCLAIMED declaration
I'm trying to install Debian-testing to an ASUS 1018P netbook on which I have successfully installed Arch in the past. I'm installing from an external DVD drive and when I get to the point of network configuration it fails. I'm connected via Ethernet via eth0 which is recognized. Here is the last part of the ouput:
kernel: [ 1807.932848] atl1c 0000:01:00.0: irq 29 for MSI/MSI-X kernel: [ 1807.933453] ADDRCONF(NETDEV_UP): eth0: link is not ready dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval is 8 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval is 15 code....
I am having no luck configuring ProFTPd on a Debian Lenny production server we use to host our MySQL databases and a few websites. I had originally set it up so I could login and manage our internal sites, but I have the need to allow a few clients in to access their sites that we host. I am trying to root the users in their site directory, which would be "/sites/www.whatever.com/".
It just hit me while typing this. Is it possible to create a user without a shell to prevent login via SSH and set the home folder to /sites/whatever instead of /home/username? That would allow me to continue operating with my current configuration and root them in their site while preventing SSH logins.
I have installed debian on my laptop and included during the installation the webserver version. Now I want to develop a page locally to test it before I put it on the web. I first had an old reflex, jumping straight away and installing xampp. But then I thought that I already all that it takes as I installed the webserver feature of debian. I installed phpmyadmin ( with the command #apt-get install phpmyadmin) as to be able to create and attribute databases but when I try to log in I have the following message:
"Error #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)"
I googled but I cannot find the mysql.conf (I searched using "find") but with no result. It is all very blury what is going on with this webserver option running on my laptop...
Since upgrading from Wheezy to Jessie I have not been able to start the MySQL-server. When I do a "systemctl start mysql" I get the following answer on the console:
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -xn' for details. Entering 'systemctl status mysql.service' the answer is: ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql) Active: failed (Result: exit-code) since Don 2015-06-18 18:35:41 CEST; 4min 1s ago Process: 11272 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
syslog and hostname.err don't show any pertinent messages.
Everything default.Everything works nicely with one exception. I can't connect to MySQL from the network.nmapping localhost tells me 3306 is open but nmap from the outside shows only ports 22 and 111 open. To my knowledge I have no firewall, iptables -L gives an empty set.I have several similar installations on the same network without any problems of this nature.
Im having proftpd 1.3.3a standalone on squeeze with mysql backend. It all works fine with one little problem. When i log in to directory, there is nothing in it - knowing there is shed load of files. Directories are simply not being listed. Im logging in as group member and directory permissions are rwxr-xr-x. In addition to that when i try to create new directory connection is being lost and client attempts to reconnect. After successful reconnection, connection gets lost and over and over again until i abort.
[code]...
i find Failed binding to 0.0.0.0, port 201: Address already in use. Check the ServerType directive to ensure you are configured correctly.
I've just installed lenny from dvd, and am just settling in. I'm curious about virtual machines. so I've installed xen. With xen comes qemu by default. Now the setup I've recently become familiar with is Suse-11 which is quite slick.In Suse, Yast provides a distribution prepared virtual management section for xen, including an installer. Debian's setup is similar but not a clone. I want to try out the installer. Aside from the differences, debian has a screaming deficit. On booting dom0 in Lenny, if fails to get into gnome, badly. I can tell what's probably wrong, but I need to fix it. Now I'm also a gentoo fan and very practised at posting queries, so here goes.
Debian's config for X is somewhat unhelpful. The xorg.conf just states Configured device and configured monitor for its components. If it expanded on just what the settings were it would help. What I have is a frambuffer driver not loadinf or being implemented.
I have squeeze using the default setup with 5 seperate partitions on hard drive. All other updates are fine but it will not install the Linux-Image-2.6.32-5-amd64. I get message that not enough room. I think this is the kernal update. I use update manager. Is there a fix for this short of resizing the partition. This is a one computer/user setup. I had this problem on a previous install of stable and ignored it thinking that it was a glitch. That install was an experimental setup and I liked it but it didn't work on the internet very well so went to testing.
I have happily been booting debian through grub2 by chain loading it with efi (rEFIt), until today, and now get to begin another learning experience I've been using linux for a while, and kept seeing the guides for splitting up /, /var, /tmp, /usr, and /home, into different partitions, so I did just that when I switched from Ubuntu to Debian (I've realized that this was a little bit pointless because I formated them all as ext4, but at least it acts as a safety for mission critical drives when I overfill /home. I unfortunately didn't give /tmp enough space, and it kept crashing SimpleScan so I decided to use gparted to resize it.
The operation went alright as far as I can tell, and was straight forward because there was some free space behind it so I only had to append the partition. I synced the master boot record through rEFIt as usual, but when I booted the linux partition grub did load, and only a blank screen is presented. I eventually figured out I could use the gparted live cd to boot back into debian, and have been screwing around for a while with grub commands trying to figure out how to allow rEFIt to successfully boot GRUB on its own again. I ran grug-mkconfig to replace my /boot/grub/grub.cfg file and have rebooted but that did not help.
I tried reinstalling grub and grub-common with apt-get, but I didn't purge configuration settings for fear of losing something important. My current focus is on the command grub-install. I think i just need to run this command with the /boot device, like su - root; grub-install /dev/sda1 or some thing like that. wipe out the MBR on /dev/sda1, or screw up what good configuration is left in grub, so I want to make sure that I'm using the right /dev. Currently the gparted output looks like this:
/dev/sda1: fat32 - GPT (gpt from fdisk, gparted shows EFI with the boot flag) /dev/sda2: hfs+ - MacOSx /dev/sda3: ext4 - /root
[code]...
how the gnome live gparted disk would have been able to boot. I have access to a hard drive so I'll probably end up making backup images of as many of the partitions as I can, and then try more drastic bashing around, but if anyone has any suggestions/wisdom they could offer while I'm researching solutions I'd appreciate it. I eventually want to try to axe my osx partition and boot directly from GRUB2-EFI so I figure it is worth the investment in time to get to know grub a little bit more intimately.
My debian machine works fine other that it loses network after a few (12 or so) hours. The dhclient manages to renew the DHCP lease the first time, after a few hours, but later when it tries again the modem gives a DHCPNAK. If I understood correctly, this should make the dhclient to fetch a new ip address but it does nothing. I am no expert so I don't know if the cause is the modem box or the debian. There are other (windows) machines connected to the modem box which work fine. The machines are behind NAT.
The debian machine does not currently have a display or a graphics card so it's difficult to start messing with the settings. I've considered having a static ip but I don't understand why the dynamic address doesn't work. What is weird is that it worked fine for several weeks and suddenly started failing. I was running a minecraft server (hehe) with an uptime of several weeks. At first I though it was a hardware issue because I thought the whole computer froze but instead it just drops the connection and I can no longer reach it with SSH or anything.My timezone is UTC+3, /etc/default/rcS has UTC=yes, I believe it is the reason why the lease and the logs differ by three hours.The machine is only running apache2+mysql+php5, GDM is stopped.I'm trying to post as much info I can.Here is the ifconfig output when the connection is working for the wired connection:
I have a mysql server in guest domU on debian squeeze. when i create test table and do INSERT INTO test (name, value) VALUES(RAND(), RAND()); Query OK, 1 row affected (0.28 sec)
At other physical server with same configuration Query OK, 1 row affected (0.00 sec)
I try this several time but on physical server max value never get over 0.05sec and on VM lowest value was 0.13sec.
Another tests:
On physical server:
OLTP test statistics:
Threads fairness:
on VM:
OLTP test statistics:
Threads fairness:
performance of disk write speed on VM is much better then on physical server .
At the moment I am having a problem with the MySQL server on my VPS. It's a completely fresh install of both Debian 5 and MySQL but the problem is upon logging in I get:
[root@boris ~]#mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I am trying to read a 5 1/4 in. floppy disk using an Intel D865 PERL motherboard, at 3 GHz. Bios was set to read this floppy. The system Lenny 2.6.31 i386 can't detect the 5.25 drive. Drive select seems not to be responding on the 5.25 drive. When connecting a 3 1/2 in. drive to the same motherboard connector (after changing the BIOS setting appropriately), r/w is ok under both linux and XP. I have tried three floppy 5.25 drives and different cables. All known to be ok on another box. I have tried XP and another linux, Etch. I have installed the latest available Bios upgrade from Intel. Upgraded from 0061 to 0089 bios versions. Is this a possible connector difference between 3.5 and 5.25 drives on the drive select line? The cable drive end connectors are different between the two drives.
I have a ~ 2008 notebook (Compaq CQ60-137EL) on which I had Windows 7 only (it was sold with Windows Vista installed).
Later I installed Debian Jessie 8.2.0 Stable ("Graphical expert install" from DVD), along with GRUB as a boot manager (I chose not to install it on the EFI removable media path).
Since then, if I select Windows 7 on the GRUB boot screen, I see "Starting Windows...", and after few seconds the screen flashes for a moment, and then the PC reboots: I see the bios screen, followed by the GRUB screen again. What's even more weird about this is the fact it just happens only in like ~50% of the cases. In the other 50%, Win7 starts flawlessy.
I even tried to install Debian first, then Windows 7, then re-install GRUB, but I got the same issue, even with both system freshly installed.
On 6 attempts, 3 times it worked and 3 times it didn't.
On my desktop PC I'm in the same setting, but I don't have this issue. I think it may be related with the fact I have Win7 on a SSD and I installed Debian on a separate HDD, while on my notebook, as you can imagine, there's just one single HDD.
I am using Jessie with XFCE and I tried to write a service which executes a script to change my wallpaper. When I try to start the service with systemctl start wallpaper.service it fails and I get the outout below from systemctl status wallpaper.service
I don't think it to be a permissions issue, they are -rw- r-- r--
This service is called by a timer that goes off daily. Below is wallpaper.service
I finally have my system to where I can connect to proftpd but my uploads fail. I think my problem lies in the upload folder. I do not really understand where to put it. Will someone look at this config file and tell me where to put it and what I need to do to get it working. A basic anonymous configuration, no upload directories.
I would like to use debian's popularity contest utility as I think it's an important tool for the developers and packagers, but it seems to be broken. I received the following notification after a recent full-upgrade from Lenny to Squeeze:
From MAILER-DAEMON Thu Nov 18 19:14:25 2010 Envelope-to: root@mediacenter.local Delivery-date: Thu, 18 Nov 2010 19:14:25 +0200 X-Failed-Recipients: survey@popcon.debian.org Auto-Submitted: auto-replied
I'm having problems with resume after suspend to RAM. The machine starts to wake up, but the screens (multi mon VGA and DVI setup) are black and the keyboard doesn't light up. After ~20 seconds there's some brief disk activity and then the computer reboots. 100% repeatable with affected kernel versions. My test method is simple, I boot the machine on the kernel's recovery option, log on as root and run "PM_DEBUG=1 pm-suspend". I haven't found anything in the logs after a failed resume.
Here's the situation: I have a SSD disk. To get TRIM support I have to use kernel 2.6.33 or later, which means that the standard kernel in Squeeze is too old.I have Nvidia graphics, and there was a change in 2.6.34 that breaks older versions of xserver-xorg-video-nouveau (version 0.0.15, used in Squeeze), I can't use Debian Squeeze with a kernel newer than 2.6.33.x.My machine (XFX GeForce 9300 motherboard) won't resume from suspend to RAM if I use a kernel newer than 2.6.36. There are no BIOS updates available.
My options: Install newer kernel from Squeeze backports (2.6.38.2 last time I tried). <--- Not doable b/c of resume problems. Upgrade to Wheezy, which uses kernel 3.0.x. <--- Not doable b/c of resume problems.Compile a vanilla kernel. So basically I'm forced to compile my own vanilla kernel, 2.6.33.x on Squeeze or 2.6.35.x on Wheezy. I won't be stuck with an unsupported kernel version in the near future, but so far I've failed miserably.
I know that the latest kernel version where everything works is 2.6.36.x (no longer maintained), 2.6.37.0 and later cause resume problems (I've tried 2.6.37, 38, 39 and 3.0.0, .0.1). I've tried doing a git bisect on the kernel, but didn't succeed, ended up on 2.6.36-rc5 which is weird considering that 2.6.36.4 works. There may be several suspend/resume bugs in different kernel versions that messed up the bisecting results.
Today I upgraded my system to the Nvidia driver 340.93 and 4.2.0-1 kernel on Debian Stretch.
While I wait for the gnome login screen to pop up I get the "Oh no something has gone wrong" message.
When I log in from another terminal and execute startx , gnome initiates and starts although settings like my resolution and other xserver settings are not loaded.
From the journalctl I believe the error is located in the following section:
Code: Select allOct 06 14:23:17 DEBIAN-PC org.a11y.atspi.Registry[1692]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry Oct 06 14:23:17 DEBIAN-PC gnome-session[1680]: X Error of failed request: BadValue (integer parameter out of range for operation) Oct 06 14:23:17 DEBIAN-PC gnome-session[1680]: Major opcode of failed request: 154 (GLX)
[Code] ....
I reinstalled the xorg-xserver and the nvidia drivers and I get the same behavior.
Looking for some info in order to reconfigure the gnome-session to work?
So this very (for me) important little package fails me once again. But this time it refuses to restart/start
This is the output:
Setting up openssh-server (1:5.3p1:-1) Restarting OpenBSD Secure Shell Server: sshd: failed! /dev/null is not a character device! invoke-rc.d: initscript ssh, action "restart" failed.
[Code].....
The error is within the /etc/init.d/ssh script. ("error")
This is in squeeze so I can only blame my self, but.. This is one of the packages that fair and square should not fail to install/update/start/restart no mather what!