Code Monkey home page Code Monkey logo

Comments (15)

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

Do you have docker installed on your system? That seems to be a problem when executing /usr/bin/docker (https://github.com/MatthiasLohr/docker-f5fpc/blob/master/f5fpc-client.py#L128).

If that's true, I should consider a test for checking the docker setup.

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

Those lines above were from my macbook.
I have docker installed, but I don't see a /usr/bin/docker.
Seems like it's in /usr/local/bin/docker

➜  docker-f5fpc git:(master) which docker
/usr/local/bin/docker

Btw, I also tried it in a linux box.
Docker is installed in /usr/bin/docker there.

antouank@antergos-vm [09:07:33] [~] 
-> % docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
antouank@antergos-vm [09:07:36] [~] 
-> % file /usr/bin/docker
/usr/bin/docker: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=651a1e6e03c7d193f8781800ec8a53b88199693a, not stripped, with debug_info

But I get this error there.

antouank@antergos-vm [09:10:57] [~/_REPOS_/docker-f5fpc] [master]
-> % sudo ./f5fpc-client.py connect.something.com someuser
  File "./f5fpc-client.py", line 37
    if os.getuid() <> 0 and args.networks and len(args.networks) > 0:
                    ^
SyntaxError: invalid syntax

I actually care more about the linux version, because I want to switch from a macbook to a linux laptop.
Would that script for f5 vpn work there?

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

I'm using that script with Ubuntu 17.10 (and was also developed with this OS). It would be nice to get it also running with Mac, so if you are willing to test it there, i would appreciate that.

SyntaxError is fixed in 5332123 (python 3 related).

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

Of course, I'm happy to help you test it on a mac.
Can we also try to make it with my arch distro? ( I use antergos )

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

deleted

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

Can you please open a ticket for each problem? Handling multiple problems in a single ticket is quite difficult. Could you also pleas provide your python version? Thx!

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

sure.

-> #13

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

@AntouanK could you please test if this is working now? Thx!

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

@MatthiasLohr ok, so in the MacBook Pro, with docker running, this is what I get on this bugfix branch

➜  docker-f5fpc git:(bugfix/dockerpath) ./f5fpc-client.py connect.something.com Antonisk
Enter your VPN password:
2018-07-10 17:23:03,458 INFO (root) Connecting to connect.something.com...
2018-07-10 17:23:06,693 INFO (root) Logging in...
2018-07-10 17:23:07,814 ERROR (root) Login was denied.

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

To the error from your first post is gone?

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

Yes. On master I get it again.

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

Merged.

from docker-f5fpc.

AntouanK avatar AntouanK commented on September 23, 2024

Thank you @MatthiasLohr 👍

Let's hope we'll get the RSA part also done :D

from docker-f5fpc.

alex-golts avatar alex-golts commented on September 23, 2024

I got a similar "No such file or directory" error on Mac, but only when using the "network" flag. Not related to the docker installation issue.
Turned out I had to install iproute2mac (using homebrew) to fix it. FYI

from docker-f5fpc.

MatthiasLohr avatar MatthiasLohr commented on September 23, 2024

Added this info to README (b052030). Thx!

from docker-f5fpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.